diff options
author | agc <agc@pkgsrc.org> | 2003-07-22 13:48:48 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2003-07-22 13:48:48 +0000 |
commit | e25f89bf13d88b11916f4c9d6e36b7e2d8d6b485 (patch) | |
tree | d084a3a07c28da4821ce4644827fa76cce00fea3 /mk | |
parent | 32674d72818eb33ddc740f3ddaf9b51cd477863e (diff) | |
download | pkgsrc-e25f89bf13d88b11916f4c9d6e36b7e2d8d6b485.tar.gz |
Ignore any errors from ldd when calculating reuires and provides
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 0738e28ea3a..945a17d4910 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1219 2003/07/22 10:12:47 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1220 2003/07/22 13:48:48 agc Exp $ # # This file is in the public domain. # @@ -4245,7 +4245,7 @@ fake-pkg: ${PLIST} ${DESCR} ${MESSAGE} *) ldd="${LDD}"; \ esac; \ if ${TEST} "$$bins" != "" -o "$$libs" != ""; then \ - requires=`($$ldd $$bins $$libs || ${TRUE}) | ${AWK} 'NF == 3 { print $$3 }' | ${SORT} -u`; \ + requires=`($$ldd $$bins $$libs 2>/dev/null || ${TRUE}) | ${AWK} 'NF == 3 { print $$3 }' | ${SORT} -u`; \ for req in "" $$requires; do \ ${TEST} "$$req" = "" && continue; \ ${ECHO} "REQUIRES=$$req" >> ${BUILD_INFO_FILE}; \ |