aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
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
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')
-rw-r--r--Mk/Scripts/qa.sh5
-rw-r--r--Mk/Uses/perl5.mk3
2 files changed, 7 insertions, 1 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) ;;
diff --git a/Mk/Uses/perl5.mk b/Mk/Uses/perl5.mk
index 3649ec73a8b4..b95490aa67e2 100644
--- a/Mk/Uses/perl5.mk
+++ b/Mk/Uses/perl5.mk
@@ -192,7 +192,8 @@ CONFIGURE_ARGS+=--install_path lib="${PREFIX}/${SITE_PERL_REL}" \
--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}