Index: head/Mk/Scripts/qa.sh =================================================================== --- head/Mk/Scripts/qa.sh +++ head/Mk/Scripts/qa.sh @@ -99,19 +99,19 @@ [ "${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 @@ 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}