diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-08-18 02:47:56 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-08-18 02:47:56 +0000 |
commit | edf4cd57c6006b3f534581ce79f86589e475ad56 (patch) | |
tree | 210a49bc90c9b820d0bb657cc354f1702b0fd49b /mk | |
parent | ee1855f9eae7c78c5b13d82ab8b26e9d02d7c2fc (diff) | |
download | pkgsrc-edf4cd57c6006b3f534581ce79f86589e475ad56.tar.gz |
check-shlibs: previous commit didn't work for pkgs using @cwd. Let
pkg_info evaluate this, and use the result
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index b97aeab110d..1a5ee05b46e 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.544 2000/08/17 14:13:56 wiz Exp $ +# $NetBSD: bsd.pkg.mk,v 1.545 2000/08/18 02:47:56 hubertf Exp $ # # This file is in the public domain. # @@ -1720,14 +1720,14 @@ root-install: # check-shlibs: ${_PKG_SILENT}${_PKG_DEBUG}\ - bins=`${PKG_INFO} -qf ${PKGNAME} | ( ${EGREP} -h '/(bin|sbin|libexec)/' || true )`; \ + bins=`${PKG_INFO} -qL ${PKGNAME} | ( ${EGREP} -h '/(bin|sbin|libexec)/' || true )`; \ if [ "${OBJECT_FMT}" = "ELF" ]; then \ - shlibs=`${PKG_INFO} -qf ${PKGNAME} | ( ${EGREP} -h '^lib/lib.*.so' || true )`; \ + shlibs=`${PKG_INFO} -qL ${PKGNAME} | ( ${EGREP} -h '/lib/lib.*.so' || true )`; \ else \ shlibs=""; \ fi ; \ for i in $${bins} $${shlibs} ; do \ - err=`( ldd ${PREFIX}/$$i 2>&1 || true ) | ( grep "not found" || true )`; \ + err=`( ldd $$i 2>&1 || true ) | ( grep "not found" || true )`; \ if [ "${PKG_VERBOSE}" != "" ]; then \ echo "ldd $$i" ; \ fi ; \ |