From owner-svn-ports-head@freebsd.org Tue Jan 31 16:21:24 2017 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 3B7C7CCA061; Tue, 31 Jan 2017 16:21:24 +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 0B45C1B9A; Tue, 31 Jan 2017 16:21:23 +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 v0VGLN6g040817; Tue, 31 Jan 2017 16:21:23 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0VGLNtA040815; Tue, 31 Jan 2017 16:21:23 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201701311621.v0VGLNtA040815@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Tue, 31 Jan 2017 16:21:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432931 - in head/Mk: Scripts Uses 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.23 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: Tue, 31 Jan 2017 16:21:24 -0000 Author: mat Date: Tue Jan 31 16:21:22 2017 New Revision: 432931 URL: https://svnweb.freebsd.org/changeset/ports/432931 Log: Tell Module::Build to use LOCALBASE/bin/perl and not LOCALBASE/bin/perl5.xx.y. Add a QA check to test for it. Sponsored by: Absolight Modified: head/Mk/Scripts/qa.sh (contents, props changed) head/Mk/Uses/perl5.mk Modified: head/Mk/Scripts/qa.sh ============================================================================== --- head/Mk/Scripts/qa.sh Tue Jan 31 16:21:18 2017 (r432930) +++ head/Mk/Scripts/qa.sh Tue Jan 31 16:21:22 2017 (r432931) @@ -45,6 +45,11 @@ shebangonefile() { case "${interp}" in "") ;; ${LINUXBASE}/*) ;; + ${LOCALBASE}/bin/perl5.* | ${PREFIX}/bin/perl5.*) + err "'${interp}' is an invalid shebang for '${f#${STAGEDIR}${PREFIX}/}' you must use ${LOCALBASE}/bin/perl." + err "Either pass \${PERL} to the build or use USES=shebangfix" + rc=1 + ;; ${LOCALBASE}/*) ;; ${PREFIX}/*) ;; /bin/csh) ;; Modified: head/Mk/Uses/perl5.mk ============================================================================== --- head/Mk/Uses/perl5.mk Tue Jan 31 16:21:18 2017 (r432930) +++ head/Mk/Uses/perl5.mk Tue Jan 31 16:21:22 2017 (r432931) @@ -192,7 +192,8 @@ CONFIGURE_ARGS+=--install_path lib="${PR --install_path script="${PREFIX}/bin" \ --install_path bin="${PREFIX}/bin" \ --install_path libdoc="${MAN3PREFIX}/man/man3" \ - --install_path bindoc="${MAN1PREFIX}/man/man1" + --install_path bindoc="${MAN1PREFIX}/man/man1" \ + --perl="${PERL}" CONFIGURE_SCRIPT?= Build.PL PL_BUILD?= Build CONFIGURE_ARGS+=--destdir ${STAGEDIR}