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
This commit is contained in:
Mathieu Arnold 2017-01-31 16:21:22 +00:00
parent 4645dcd3e0
commit a345c5cf11
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432931
2 changed files with 7 additions and 1 deletions

View File

@ -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) ;;

View File

@ -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}