Skip Menu |

This queue is for tickets about the CPANPLUS-Dist-Deb CPAN distribution.

Report information
The Basics
Id: 46982
Status: new
Priority: 0/
Queue: CPANPLUS-Dist-Deb

People
Owner: Nobody in particular
Requestors: CRAKRJACK [...] cpan.org
Cc:
AdminCc:

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



Subject: breaks with perl modules that have an '_' in their version
cpan2dist Module-Build-0.2808_02 --format "CPANPLUS::Dist::Deb" --notest --skiptest {...} [ERROR] Failed to create debian package for 'Module::Build': 'dpkg-buildpackage: warning: using a gain-root-command while being root dpkg-buildpackage: set CFLAGS to default value: -g -O2 dpkg-buildpackage: set CPPFLAGS to default value: dpkg-buildpackage: set LDFLAGS to default value: dpkg-buildpackage: set FFLAGS to default value: -g -O2 dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 dpkg-buildpackage: error: version number contains illegal character `_' dpkg-buildpackage: source package cpan-libmodule-build-perl dpkg-buildpackage: source version 0.2808_02-1 ' [ERROR] Unable to create a new distribution object for 'Module::Build' -- cannot continue
*really* unideal workaround: my $old_ver = \&CPANPLUS::Module::package_version; local *CPANPLUS::Module::package_version = sub { my $self = shift; my $cur = $old_ver->($self, @_); $cur =~ s{_}{\.}g; return $cur; }; even if i had to hack around this, i would rather have done so in CPANPLUS::Dist::Deb instead of on CPANPLUS::Module itself... but CPANPLUS::Dist::Deb has huuuge methods :-(