|
Lines 663-669
proxydeps() {
Link Here
|
| 663 |
|
663 |
|
| 664 |
# Check that the .so we need has a SONAME |
664 |
# Check that the .so we need has a SONAME |
| 665 |
if [ "${dep_file_pkg}" != "${PKGORIGIN}" ]; then |
665 |
if [ "${dep_file_pkg}" != "${PKGORIGIN}" ]; then |
| 666 |
if ! readelf -d "${dep_file}" | grep -q SONAME; then |
666 |
if ! (set +o pipefail; readelf -d "${dep_file}" | grep -q SONAME); then |
| 667 |
err "${file} is linked to ${dep_file} which does not have a SONAME. ${dep_file_pkg} needs to be fixed." |
667 |
err "${file} is linked to ${dep_file} which does not have a SONAME. ${dep_file_pkg} needs to be fixed." |
| 668 |
fi |
668 |
fi |
| 669 |
fi |
669 |
fi |
|
Lines 713-719
sonames() {
Link Here
|
| 713 |
[ -z "${f}" ] && continue |
713 |
[ -z "${f}" ] && continue |
| 714 |
# Ignore symlinks |
714 |
# Ignore symlinks |
| 715 |
[ -f "${f}" -a ! -L "${f}" ] || continue |
715 |
[ -f "${f}" -a ! -L "${f}" ] || continue |
| 716 |
if ! readelf -d ${f} | grep -q SONAME; then |
716 |
if ! (set +o pipefail; readelf -d ${f} | grep -q SONAME); then |
| 717 |
warn "${f} doesn't have a SONAME." |
717 |
warn "${f} doesn't have a SONAME." |
| 718 |
warn "pkg(8) will not register it as being provided by the port." |
718 |
warn "pkg(8) will not register it as being provided by the port." |
| 719 |
warn "If another port depend on it, pkg will not be able to know where it comes from." |
719 |
warn "If another port depend on it, pkg will not be able to know where it comes from." |