aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-08-12 04:20:23 +0800
committerbdrewery <bdrewery@FreeBSD.org>2014-08-12 04:20:23 +0800
commit6d6a4a65b2153c207ed4261da9ff9667ff1e8d46 (patch)
tree3d0362e2ed4c026f0dba0ce8cb15cad8dee1c79b
parentde943ed4b15245902116d83c248ada009d34b92e (diff)
downloadfreebsd-ports-gnome-6d6a4a65b2153c207ed4261da9ff9667ff1e8d46.tar.gz
freebsd-ports-gnome-6d6a4a65b2153c207ed4261da9ff9667ff1e8d46.tar.zst
freebsd-ports-gnome-6d6a4a65b2153c207ed4261da9ff9667ff1e8d46.zip
- Fix 'make check-plist' incorrectly considering all installed packages as
run dependencies if the port being checked has no RUN_DEPENDS. This could cause false-positive "Possibly owned by dependency" warnings. With hat: portmgr
-rw-r--r--Mk/Scripts/check-stagedir.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/Mk/Scripts/check-stagedir.sh b/Mk/Scripts/check-stagedir.sh
index 012b18dcc30c..940cce24e80d 100644
--- a/Mk/Scripts/check-stagedir.sh
+++ b/Mk/Scripts/check-stagedir.sh
@@ -193,11 +193,13 @@ pkg_get_recursive_deps() {
lookup_dependency_dirs() {
: >${WRKDIR}/.run-depends-dirs
if [ -n "${WITH_PKGNG}" ]; then
- echo "${PACKAGE_DEPENDS}" | while read pkg; do \
- PKG_CHECKED= pkg_get_recursive_deps "${pkg}"; done | \
- sort -u | \
- xargs ${PKG_QUERY} "%D" | sed -e 's,/$,,' | sort -u \
- >>${WRKDIR}/.run-depends-dirs
+ if [ -n "${PACKAGE_DEPENDS}" ]; then
+ echo "${PACKAGE_DEPENDS}" | while read pkg; do \
+ PKG_CHECKED= pkg_get_recursive_deps "${pkg}"; \
+ done | sort -u | xargs ${PKG_QUERY} "%D" | \
+ sed -e 's,/$,,' | sort -u \
+ >>${WRKDIR}/.run-depends-dirs
+ fi
else
# Evaluate ACTUAL-PACKAGE-DEPENDS
packagelist=