From owner-svn-ports-head@freebsd.org Mon Jan 18 16:16:40 2016 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 75F6DA86C45; Mon, 18 Jan 2016 16:16:40 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 47A9D17C5; Mon, 18 Jan 2016 16:16:40 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0IGGdXt016947; Mon, 18 Jan 2016 16:16:39 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0IGGdTK016946; Mon, 18 Jan 2016 16:16:39 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201601181616.u0IGGdTK016946@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Mon, 18 Jan 2016 16:16:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r406593 - 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: Mon, 18 Jan 2016 16:16:40 -0000 Author: mat Date: Mon Jan 18 16:16:39 2016 New Revision: 406593 URL: https://svnweb.freebsd.org/changeset/ports/406593 Log: Rework the logic of the libperl detection, making it a bit more simple, and also a bit more verbose. With hat: perl Sponsored by: Absolight Modified: head/Mk/Scripts/qa.sh Modified: head/Mk/Scripts/qa.sh ============================================================================== --- head/Mk/Scripts/qa.sh Mon Jan 18 16:04:22 2016 (r406592) +++ head/Mk/Scripts/qa.sh Mon Jan 18 16:16:39 2016 (r406593) @@ -251,26 +251,24 @@ libperl() { /RUNPATH.*perl.*CORE/ { runpath = 0 } END {print libperl+rpath+runpath} "` - # FIXME When 8.4 goes out of commission, replace the ;; - # with ;& in the case below. Also, change the logic on - # detecting if there was a file with libperl.so - if [ "$found" -ne "0" ]; then - case "$found" in - *1) - warn "${f} is not linked with ${LIBPERL}, not respecting lddlflags?" - ;; #;& - *1?) - has_some_libperl_so=1 - warn "${f} does not have a rpath to ${LIBPERL}, not respecting lddlflags?" - ;; #;& - 1??) - has_some_libperl_so=1 - warn "${f} does not have a runpath to ${LIBPERL}, not respecting lddlflags?" - ;; #;& - esac - else - has_some_libperl_so=1 - fi + case "${found}" in + *1) + warn "${f} is not linked with ${LIBPERL}, not respecting lddlflags?" + ;; + *0) + has_some_libperl_so=1 + case "${found}" in + *1?) + warn "${f} does not have a rpath to ${LIBPERL}, not respecting lddlflags?" + ;; + esac + case "${found}" in + 1??) + warn "${f} does not have a runpath to ${LIBPERL}, not respecting lddlflags?" + ;; + esac + ;; + esac # Use heredoc to avoid losing rc from find|while subshell done <<-EOT $(find ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL} -name '*.so')