Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2017 14:06:42 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437734 - head/Mk/Scripts
Message-ID:  <201704041406.v34E6gkc005843@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Tue Apr  4 14:06:41 2017
New Revision: 437734
URL: https://svnweb.freebsd.org/changeset/ports/437734

Log:
  The lang/perl5* ports are allowed to have their shebangs pointing to the
  versionned binaries.
  
  Sponsored by:	Absolight

Modified:
  head/Mk/Scripts/qa.sh   (contents, props changed)

Modified: head/Mk/Scripts/qa.sh
==============================================================================
--- head/Mk/Scripts/qa.sh	Tue Apr  4 13:48:40 2017	(r437733)
+++ head/Mk/Scripts/qa.sh	Tue Apr  4 14:06:41 2017	(r437734)
@@ -46,9 +46,12 @@ shebangonefile() {
 	"") ;;
 	${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
+		# lang/perl5* are allowed to have these shebangs.
+		if ! expr ${PKGORIGIN} : '^lang/perl5.*' > /dev/null; then
+			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
+		fi
 		;;
 	${LOCALBASE}/*) ;;
 	${PREFIX}/*) ;;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704041406.v34E6gkc005843>