Skip Menu |

This queue is for tickets about the B-Debug CPAN distribution.

Report information
The Basics
Id: 54455
Status: resolved
Worked: 10 min
Priority: 0/
Queue: B-Debug

People
Owner: RURBAN [...] cpan.org
Requestors: toddr [...] null.net
Cc:
AdminCc:

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



Subject: Makefile.PL installs to wrong place for perl 5.11+
I've attached a patch to fix Makefile.PL to do the right thing, depending on perl version.
Subject: BDebug.patch
diff --git a/Makefile.PL b/Makefile.PL index e6071fd..07b7062 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -18,20 +18,10 @@ WriteMakefile ) : ()), # Part of core perl since 5.005005 (?) 'INSTALLDIRS' => ( $] > 5.005005 ? "perl" : "site" ), - ); + # + ($] < 5.011) ?(PM => { + 'lib/B/Debug.pm' => '$(INST_ARCHLIB)/B/Debug.pm', + }) : (), + + ); -print "fix pm_to_blib to install into ARCHLIB\n"; -if ($^O eq 'MSWin32') { - system($^X,'-pi.bak','-e"s|\(INST_LIB\)\\\\B\\\\Debug.pm|(INST_ARCHLIB)\\\\B\\\\Debug.pm|"','Makefile'); -} else { - system("$^X -pi.bak -e's|\\(INST_LIB\\)/B/Debug.pm|(INST_ARCHLIB)/B/Debug.pm|;' Makefile"); -} - -#package MY; -# pm_to_blib cannot be overridden -# Force installation into archlib to override the core version there -#sub pm_to_blib { -# my $s = shift->SUPER::pm_to_blib(@_); -# $s =~ s/\(INST_LIB\)/\(INST_ARCH\)/g; -# $s; -#}
Fixed with 1.12 on CPAN, core patch to p5p soon -- Reini Urban