svn commit: r364655 - head/Mk/Scripts

Bryan Drewery bdrewery at FreeBSD.org
Mon Aug 11 20:20:24 UTC 2014


Author: bdrewery
Date: Mon Aug 11 20:20:23 2014
New Revision: 364655
URL: http://svnweb.freebsd.org/changeset/ports/364655
QAT: https://qat.redports.org/buildarchive/r364655/

Log:
  - 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

Modified:
  head/Mk/Scripts/check-stagedir.sh

Modified: head/Mk/Scripts/check-stagedir.sh
==============================================================================
--- head/Mk/Scripts/check-stagedir.sh	Mon Aug 11 20:19:40 2014	(r364654)
+++ head/Mk/Scripts/check-stagedir.sh	Mon Aug 11 20:20:23 2014	(r364655)
@@ -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=


More information about the svn-ports-head mailing list