[Templates] Developer Release 2.09c (Makefile.PL PATCH)

Axel Gerstmair Axel Gerstmair <anthill@web.de>
Thu, 1 May 2003 18:55:42 +0200


Hi Randal,

> Fails for me on Perl 5.6.1:

> red.stonehenge.com>> make test TEST_FILES=t/config.t TEST_VERBOSE=1
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/config.t
> t/config....1..44

this is the test which checks the installation directory. I suppose
you specified a path with a trailing slash, e.g. /usr/local/tt2/, as
installation directory for the optional extras. I could reproduce the
problem, if I did so myself.

I have appended a patch that should fix this problem (but you have to
run 'perl Makefile.PL' etc. again).

Best regards,
Axel


Index: Makefile.PL
===================================================================
RCS file: /template-toolkit/Template2/Makefile.PL,v
retrieving revision 2.39
diff -u -w -b -r2.39 Makefile.PL
--- Makefile.PL 2003/04/30 08:04:14     2.39
+++ Makefile.PL 2003/05/01 16:47:50
@@ -622,6 +622,7 @@
 
 EOF
        $TT_PREFIX = ttprompt('Installation directory', $TT_PREFIX || $PREFIX);
+        $TT_PREFIX =~ s[/$][];
     }
     else {
        $TT_PREFIX = '';