Subject: | Error in parsing Makefile.PL ARGV |
I tried to build Template-Toolkit-2.23 with
perl Makefile.PL INSTALLDIRS=site 'OPTIMIZE=-march=i686 -mtune=i686
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables'
(the OPTIMIZE value comes from RPM's %optflags but that is irrelevant here)
This failed to build because it parsed this as OPTIMIZE=-march
The attached bug fixes it to only split arguments on the first '=', not
every '='.
Gruesse,
Frank
Subject: | configure-parse-fix.patch |
--- Template-Toolkit-2.23/Makefile.PL 2011-12-20 08:41:35.000000000 +0100
+++ Template-Toolkit-2.23.new/Makefile.PL 2012-02-07 16:17:26.000000000 +0100
@@ -43,7 +43,7 @@
my (%config, %ttconfig);
while ($_ = shift) {
- my ($k, $v) = split(/=/);
+ my ($k, $v) = split(/=/,$_,2);
if ($k =~ /^TT/) {
$ttconfig{ $k } = $v || 0;
}