aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-07-20 06:07:13 +0800
committerbapt <bapt@FreeBSD.org>2015-07-20 06:07:13 +0800
commita1ba2f312a8e664cd72838ebc2ee7919e012eaf2 (patch)
tree4936c888045b4395f70e367cd39b18a8cb54c923
parentaa8eec71600875a323d98c0f3bce478e51762f05 (diff)
downloadfreebsd-ports-gnome-a1ba2f312a8e664cd72838ebc2ee7919e012eaf2.tar.gz
freebsd-ports-gnome-a1ba2f312a8e664cd72838ebc2ee7919e012eaf2.tar.zst
freebsd-ports-gnome-a1ba2f312a8e664cd72838ebc2ee7919e012eaf2.zip
Add a QA check on some base libraries (for now only libedit and libarchive)
-rw-r--r--Mk/Scripts/qa.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index 5ed6d42acd2e..9a8011a6ba84 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -94,6 +94,28 @@ shebang() {
return ${rc}
}
+baselibs() {
+ local rc
+ [ "${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"
+ rc=1
+ ;;
+ /usr/lib/libedit*)
+ err "Bad linking on ${f} please add USES=libedit"
+ rc=1
+ ;;
+ esac
+ done <<-EOF
+ $(find ${STAGEDIR}${BIN} ${STAGEDIR}${PREFIX}/sbin \
+ ${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/libexec \
+ -type f -exec ldd -a {} + 2>/dev/null)
+ EOF
+ return ${rc}
+}
+
symlinks() {
local rc
@@ -271,7 +293,7 @@ prefixvar() {
fi
}
-checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles libtool libperl prefixvar"
+checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles libtool libperl prefixvar baselibs"
ret=0
cd ${STAGEDIR}