From e25f89bf13d88b11916f4c9d6e36b7e2d8d6b485 Mon Sep 17 00:00:00 2001 From: agc Date: Tue, 22 Jul 2003 13:48:48 +0000 Subject: Ignore any errors from ldd when calculating reuires and provides --- mk/bsd.pkg.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mk') 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}; \ -- cgit v1.2.3