aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-07-19 22:07:13 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-07-19 22:07:13 +0000
commit81e9ad1fda978d8d8dae7f9fa2e3b198deba51ad (patch)
tree4936c888045b4395f70e367cd39b18a8cb54c923 /Mk
parentcd6ed676539d23edf601936e11a84989f19363e5 (diff)
downloadports-81e9ad1fda978d8d8dae7f9fa2e3b198deba51ad.tar.gz
ports-81e9ad1fda978d8d8dae7f9fa2e3b198deba51ad.zip
Notes
Diffstat (limited to 'Mk')
-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}