svn commit: r393878 - head/Mk/Scripts

Antoine Brodin antoine at FreeBSD.org
Mon Aug 10 17:06:51 UTC 2015


Author: antoine
Date: Mon Aug 10 17:06:50 2015
New Revision: 393878
URL: https://svnweb.freebsd.org/changeset/ports/393878

Log:
  Make baselibs QA check non recursive and activate it again
  
  Reviewed by:	bapt
  Differential Revision:	https://reviews.freebsd.org/D3352

Modified:
  head/Mk/Scripts/qa.sh

Modified: head/Mk/Scripts/qa.sh
==============================================================================
--- head/Mk/Scripts/qa.sh	Mon Aug 10 16:47:02 2015	(r393877)
+++ head/Mk/Scripts/qa.sh	Mon Aug 10 17:06:50 2015	(r393878)
@@ -99,19 +99,19 @@ baselibs() {
 	[ "${PKGBASE}" = "pkg" -o "${PKGBASE}" = "pkg-devel" ] && return
 	while read f; do
 		case ${f} in
-		/usr/lib/libarchive*)
-			err "Bad linking on ${f} please add USES=libarchive"
+		*NEEDED*\[libarchive.so.[56]])
+			err "Bad linking on ${f##* } please add USES=libarchive"
 			rc=1
 			;;
-		/lib/libedit*)
-			err "Bad linking on ${f} please add USES=libedit"
+		*NEEDED*\[libedit.so.7])
+			err "Bad linking on ${f##* } please add USES=libedit"
 			rc=1
 			;;
 		esac
 	done <<-EOF
 	$(find ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/sbin \
 		${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/libexec \
-		-type f -exec ldd -a {} + 2>/dev/null)
+		-type f -exec readelf -d {} + 2>/dev/null)
 	EOF
 	return ${rc}
 }
@@ -293,7 +293,7 @@ prefixvar() {
 	fi
 }
 
-checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles libtool libperl prefixvar" # baselibs"
+checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles libtool libperl prefixvar baselibs"
 
 ret=0
 cd ${STAGEDIR}


More information about the svn-ports-all mailing list