Skip Menu |

This queue is for tickets about the Template-Toolkit CPAN distribution.

Report information
The Basics
Id: 74748
Status: resolved
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: flichtenheld [...] astaro.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.23
Fixed in: (no value)



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; }
Thanks for the bug report and patch, but this bug has already been reported (#67918) and fixed. https://rt.cpan.org/Ticket/Display.html?id=67918