Date: Sun, 19 Jul 2015 22:07:13 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r392538 - head/Mk/Scripts Message-ID: <201507192207.t6JM7DJ6097644@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Sun Jul 19 22:07:13 2015 New Revision: 392538 URL: https://svnweb.freebsd.org/changeset/ports/392538 Log: Add a QA check on some base libraries (for now only libedit and libarchive) Modified: head/Mk/Scripts/qa.sh Modified: head/Mk/Scripts/qa.sh ============================================================================== --- head/Mk/Scripts/qa.sh Sun Jul 19 22:04:44 2015 (r392537) +++ head/Mk/Scripts/qa.sh Sun Jul 19 22:07:13 2015 (r392538) @@ -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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507192207.t6JM7DJ6097644>