Bug#670188: dh-make-perl: incorrect creation of package version
Vincent Danjean
vdanjean at debian.org
Mon Apr 23 20:46:38 UTC 2012
Package: dh-make-perl
Version: 0.75-1
Severity: normal
Hi,
I tried to debianize the PDL-Stats Perl module. dh-make-perl correctly gets
PDL-Stats 0.6.0 from cpan. But then, it try to use version 0.6. (note the
missing 0) that fails because upstream/0.6. is not a valid tag for git...
Using --version does not fix anything. Looking at the code, it seems that
--version is used only when the version cannot be autodetected (another bug?)
But, looking into /usr/share/perl5/DhMakePerl/Command/Packaging.pm,
I found at line 304:
$ver =~ s/\.0+/./g; # 2.003.004 -> 2.3.4
I changed it to:
$ver =~ s/\.0+(.)/.$1/g; # 2.003.004 -> 2.3.4 but 0.6.0 -> 0.6.0
so that the last 0 is kept in my case.
But I not sure this is the real fix (2.000.000 will be changed into 2..0)
Perhaps something (not tested) as:
$ver =~ s/\.0+([0-9]|\$)/.$1/g;
In any case, if this is too difficult to fix all version number, then
--version should be used when provided.
Regards,
Vincent
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.3.0-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dh-make-perl depends on:
ii debhelper 9.20120419
ii dpkg-dev 1.16.3+0~1333384407.7~1.gbp45fe25
ii fakeroot 1.18.2-1
ii libapt-pkg-perl 0.1.26+b1
ii libarray-unique-perl 0.08-1
ii libclass-accessor-perl 0.34-1
ii libdpkg-perl 1.16.3+0~1333384407.7~1.gbp45fe25
ii libemail-address-perl 1.895-1
ii libemail-date-format-perl 1.002-1
ii libfile-which-perl 1.09-1
ii liblist-moreutils-perl 0.33-1+b1
ii libmodule-corelist-perl 2.65-1
ii libmodule-depends-perl 0.15-2
ii libparse-debcontrol-perl 2.005-3
ii libparse-debianchangelog-perl 1.2.0-1
ii libsoftware-license-perl 0.103004-2
ii libtie-ixhash-perl 1.21-2
ii libwww-mechanize-perl 1.71-1
ii libyaml-perl 0.80-1
ii make 3.81-8.2
ii perl 5.14.2-9
ii perl-modules [libmodule-corelist-perl] 5.14.2-9
Versions of packages dh-make-perl recommends:
ii apt-file 2.5.0
ii git 1:1.7.10-1
ii pristine-tar 1.24
dh-make-perl suggests no packages.
-- no debconf information
More information about the pkg-perl-maintainers
mailing list