summaryrefslogtreecommitdiff
path: root/Mk/Scripts/qa.sh
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2017-01-31 16:21:22 +0000
committerMathieu Arnold <mat@FreeBSD.org>2017-01-31 16:21:22 +0000
commita345c5cf11a8e516a8dfa0be19809270ca858e52 (patch)
tree1ac51e577ac231ed4e541100256dcf50303377ad /Mk/Scripts/qa.sh
parentIndent perl5.mk's .if/.for properly. (diff)
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/qa.sh')
-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) ;;