aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Scripts
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2017-02-01 00:21:22 +0800
committermat <mat@FreeBSD.org>2017-02-01 00:21:22 +0800
commitfe7cc3a16adbefd86d48de018ba798402368e6c1 (patch)
tree1ac51e577ac231ed4e541100256dcf50303377ad /Mk/Scripts
parentc1fef570aa9312bb92c84a9a8b2226239a19b809 (diff)
downloadfreebsd-ports-gnome-fe7cc3a16adbefd86d48de018ba798402368e6c1.tar.gz
freebsd-ports-gnome-fe7cc3a16adbefd86d48de018ba798402368e6c1.tar.zst
freebsd-ports-gnome-fe7cc3a16adbefd86d48de018ba798402368e6c1.zip
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
Diffstat (limited to 'Mk/Scripts')
-rw-r--r--Mk/Scripts/qa.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index 3330bdb7db51..004c56fec5cc 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -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) ;;