Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 37836
Status: resolved
Worked: 30 min
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors: mfxaub [...] tin.it
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 6.44
Fixed in: 7.05_01



Subject: makemaker fail to build the right DIRFILESEP under win32 affected file MM_Win32.pm (fix proposes too :-D)
the bad construction of DIRFILESEP path separator (DIRFILESEP = ^\ instead of DIRFILESEP = \\ issues (example): make: *** No rule to make target `C:\Perl\lib\ExtUtilsxsubpp', needed by `source.c'. Stop. ) by Makefile.PL persist for example also in last "activestate Perl 5.10" distribution and last updated version of ExtUtils-Makemaker (6.44) , and is related to: ..\Perl\lib\ExtUtils\MM_Win32.pm Or/And (depend on install zone..): ..\Perl\site\lib\ExtUtils\MM_Win32.pm I correct the code of this subroutine (in MM_Win32.pm): sub init_DIRFILESEP { my($self) = shift; my $make = $self->make; # The ^ makes sure its not interpreted as an escape in nmake # $self->{DIRFILESEP} = $make eq 'nmake' ? '^\\' : # above line fixed by Berardi Michele as: $self->{DIRFILESEP} = $make eq 'nmake' ? '\\\\' : $make eq 'dmake' ? '\\\\' : '\\'; } Hope this help. Michele --------------- Michele Berardi System Developer http://berardimichele.interfree.it
Your patch uses \ to escape the backslash for both nmake and dmake. This appears to be incorrect for nmake which is supposed to use ^ to escape a backslash. I'd need to reproduce the problem before adding this patch. What make are you using and what version?
Subject: R: [rt.cpan.org #37836] makemaker fail to build the right DIRFILESEP under win32 affected file MM_Win32.pm (fix proposes too :-D)
Date: Fri, 8 Aug 2008 09:11:22 +0200
To: <bug-ExtUtils-MakeMaker [...] rt.cpan.org>
From: "mfxaub \(tin.it\)" <mfxaub [...] tin.it>
Hi, i use both "nmake 1.5" and "mingw make 3.81" nmake or even make i use the modified version of MM_Win32.pm michele Show quoted text
-----Messaggio originale----- Da: Michael G Schwern via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org] Inviato: venerdì 8 agosto 2008 3.57 A: mfxaub@tin.it Oggetto: [rt.cpan.org #37836] makemaker fail to build the right DIRFILESEP under win32 affected file MM_Win32.pm (fix proposes too :-D) <URL: http://rt.cpan.org/Ticket/Display.html?id=37836 > Your patch uses \ to escape the backslash for both nmake and dmake. This appears to be incorrect for nmake which is supposed to use ^ to escape a backslash. I'd need to reproduce the problem before adding this patch. What make are you using and what version?
I've just run the test suite (including t/xs.t which exercises DFSEP and other things) against 7.05_01, and no failures. Closing.
(That was against Strawberry Perl 5.20.0 with nmake)