Skip Menu |
 

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 54040
Status: open
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: jd [...] cpanel.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.36
Fixed in: (no value)

Attachments


Subject: Convert complex versions in Module::Build::Compat rather than dieing
Download (untitled) / with headers
text/plain 259b
It would be very helpful is Module::Build::Compat would convert complex versions to numeric form rather than just dieing when it sees them. This change made some modules like Mail::SPF uninstallable. Thanks for the great work you're doing with Module::Build
Subject: mbc_complex_versions.diff
diff -Nur Module-Build-0.3603.orig/lib/Module/Build/Compat.pm Module-Build-0.3603/lib/Module/Build/Compat.pm --- Module-Build-0.3603.orig/lib/Module/Build/Compat.pm 2010-01-18 21:30:59.000000000 -0600 +++ Module-Build-0.3603/lib/Module/Build/Compat.pm 2010-01-27 10:42:35.000000000 -0600 @@ -12,6 +12,7 @@ use Module::Build::ModuleInfo; use Module::Build::Version; use Data::Dumper; +use version; my %convert_installdirs = ( PERL => 'core', @@ -78,8 +79,10 @@ for my $p ( $req, $breq ) { for my $k (keys %$p) { next if $k eq 'perl'; - die "Prereq '$p->{$k}' for '$k' is not supported by Module::Build::Compat\n" - unless _simple_prereq($p->{$k}); + unless (_simple_prereq($p->{$k})) { + my $ver_obj = version->new($p->{$k}) || die "Prereq '$p->{$k}' for '$k' is not supported by Module::Build::Compat\n"; + $p->{$k} = $ver_obj->numify(); + } } } # merge
Download (untitled) / with headers
text/plain 474b
When Module::Build changes things authors write, we get complaints from authors, so this is kind of a no-win situation for maintainers. The "answer" is that people need to change CPAN/CPANPLUS to prefer Build.PL over Makefile.PL. For CPAN: Show quoted text
cpan> o conf prefer_installer MB cpan> o conf commit
For CPANPLUS CPAN Terminal> s reconfigure ... Section to configure [1]: 6 ... Prefer Makefile.PL over Build.PL? [y/N]: N ... Section to configure [1]: 9


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.