Skip Menu |

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

Report information
The Basics
Id: 25180
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors: olivier.boudry [...] gmail.com
Cc:
AdminCc:

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



Subject: subdirs Makefile section not generated properly
In my WriteMakefile section I have a DIR instruction like this: 'DIR' => [ 'lib/SAPNW' ], Generated subdirs Makefile section looks like this: subdirs :: $(NOECHO) cd lib/SAPNW $(MAKE) $(USEMAKEFILE) $(FIRST_MAKEFILE) all $(PASTHRU) cd .. cd lib/SAPNW is balanced by cd .. for the build to work it should be ../.. In fact the build works, but it crashes in the test (tests failed for an unknown reason) I solved this adding the following to my Makefile.PL but that's not clean: sub MY::subdirs { my $self = shift; my $section = $self->MM::subdirs; if ($^O =~ /MSWin32/i) { $section =~ s|(cd \.\.)(\s*$)|$1/..$2|m; } return $section; } On Linux this problem is not present as there is no cd instruction. Cheers, Olivier.
On Tue Feb 27 10:19:04 2007, olivier.boudry@gmail.com wrote: Show quoted text
> In my WriteMakefile section I have a DIR instruction like this: > > 'DIR' => [ 'lib/SAPNW' ],
Putting a subproject into lib is probably not a good idea as lib is normally reserved for modules. I'd suggest putting it in the copy level so just DIR => [ "SAPNW" ] Show quoted text
> Generated subdirs Makefile section looks like this: > > subdirs :: > $(NOECHO) cd lib/SAPNW > $(MAKE) $(USEMAKEFILE) $(FIRST_MAKEFILE) all $(PASTHRU) > cd .. > > cd lib/SAPNW is balanced by cd .. > > for the build to work it should be ../..
The cd() logic for Windows in MakeMaker only handles one directory down. 6.33 will handle more.