Skip Menu |

This queue is for tickets about the IPC-ShareLite CPAN distribution.

Report information
The Basics
Id: 28724
Status: resolved
Priority: 0/
Queue: IPC-ShareLite

People
Owner: Nobody in particular
Requestors: cpan [...] punch.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Makefile.PL does not pay attention to PERL_MM_USE_DEFAULT, does not clean up after configure
Makefile.PL does not use defaults when PERL_MM_USE_DEFAULT is set to true. It also leaves some generated files after a 'make clean', and runs configure again during a make clean. The attached patch fixes this behavior.
Subject: no_questions_clean.patch
diff -Naur ../IPC-ShareLite-0.09.orig/Makefile.PL ../IPC-ShareLite-0.09/Makefile.PL --- ../IPC-ShareLite-0.09.orig/Makefile.PL 2000-04-14 02:23:54.000000000 -0700 +++ ../IPC-ShareLite-0.09/Makefile.PL 2007-08-07 14:22:21.000000000 -0700 @@ -1,17 +1,32 @@ use ExtUtils::MakeMaker; -system('./Configure'); # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( - 'NAME' => 'IPC::ShareLite', + 'NAME' => 'IPC::ShareLite', 'VERSION_FROM' => 'ShareLite.pm', # finds $VERSION - 'LIBS' => [''], # e.g., '-lm' - 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' - 'INC' => '', # e.g., '-I/usr/include/other' - 'OBJECT' => 'sharelite.o ShareLite.o', - 'dist' => { - COMPRESS => 'gzip', SUFFIX => 'gz', - }, + 'LIBS' => [''], # e.g., '-lm' + 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' + 'INC' => '', # e.g., '-I/usr/include/other' + 'OBJECT' => 'sharelite.o ShareLite.o', + 'dist' => { + COMPRESS => 'gzip', SUFFIX => 'gz', + }, + clean => { FILES => ".config config.h config.sh" }, + CONFIGURE => \&init, ); + + +sub init +{ + my $hash = $_[1]; + if ( $ENV{PERL_MM_USE_DEFAULT} ) { + system('./Configure -d -e'); + } + else + { + system('./Configure'); + } + $hash; +}
I've removed the Configure script entirely in 0.10. Thanks for the report.