From owner-svn-ports-head@freebsd.org Sun Jul 19 22:07:14 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20B879A42DA; Sun, 19 Jul 2015 22:07:14 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D8F0103F; Sun, 19 Jul 2015 22:07:14 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6JM7D1m097645; Sun, 19 Jul 2015 22:07:13 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6JM7DJ6097644; Sun, 19 Jul 2015 22:07:13 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201507192207.t6JM7DJ6097644@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sun, 19 Jul 2015 22:07:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r392538 - head/Mk/Scripts X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2015 22:07:14 -0000 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}