lang/perl: Add hack to make perl always use miniperl during build
authorMarcel Denia <naoir@gmx.net>
Fri, 4 Jul 2014 18:25:36 +0000 (20:25 +0200)
committerMarcel Denia <naoir@gmx.net>
Mon, 7 Jul 2014 20:54:14 +0000 (22:54 +0200)
Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl/patches/300-always_use_miniperl.patch [new file with mode: 0644]

diff --git a/lang/perl/patches/300-always_use_miniperl.patch b/lang/perl/patches/300-always_use_miniperl.patch
new file mode 100644 (file)
index 0000000..f8f8a65
--- /dev/null
@@ -0,0 +1,27 @@
+--- a/Makefile.SH
++++ b/Makefile.SH
+@@ -315,22 +315,11 @@ MINIPERL = \$(LDLIBPTH) ./miniperl\$(EXE
+ !GROK!THIS!
+-case "$usecrosscompile$perl" in
+-define?*)
+-      $spitshell >>$Makefile <<!GROK!THIS!
+-# Macros to invoke a copy of our fully operational perl during the build.
+-PERL_EXE = perl\$(EXE_EXT)
+-RUN_PERL = \$(LDLIBPTH) \$(RUN) $perl\$(EXE_EXT)
+-!GROK!THIS!
+-      ;;
+-*)
+-      $spitshell >>$Makefile <<!GROK!THIS!
++$spitshell >>$Makefile <<!GROK!THIS!
+ # Macros to invoke a copy of our fully operational perl during the build.
+ PERL_EXE = perl\$(EXE_EXT)
+-RUN_PERL = \$(LDLIBPTH) \$(RUN) ./perl\$(EXE_EXT) -Ilib
++RUN_PERL = \$(LDLIBPTH) \$(RUN) ./miniperl\$(EXE_EXT) -Ilib
+ !GROK!THIS!
+-      ;;
+-esac
+ $spitshell >>$Makefile <<!GROK!THIS!
+ # Macros to run our tests