Bug#571632: dh-make-perl: META.yml dependency numbers with > or >= breaks the control
Jozef Kutej
jozef at kutej.net
Fri Feb 26 16:23:48 UTC 2010
Package: dh-make-perl
Version: 0.63
Severity: minor
some META.yml files contains > or >= in front of the version numbers. for example:
http://cpansearch.perl.org/src/JPEACOCK/version-0.80/META.yml
The fast work around would be to clean up the version numbers from non-version characters:
--- cut ---
--- a/lib/DhMakePerl.pm
+++ b/lib/DhMakePerl.pm
@@ -1056,6 +1056,11 @@ sub run_depends {
$mod_dep->find_modules();
my $deps = $build_deps ? $mod_dep->build_requires : $mod_dep->requires;
+
+ # clean-up module versions from non-version characters
+ foreach my $module_name (keys %{$deps}) {
+ $deps->{$module_name} =~ s/[^_.0-9]//g;
+ }
my $error = $mod_dep->error();
die "Error: $error\n" if $error;
--- cut ---
but it will result in versions like "> 5.005" become ">= 5.005". should only rarely
cause troubles. and if can be resolved manualy. or?
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (700, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 'oldstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dh-make-perl depends on:
ii debhelper 7.4.13 helper programs for debian/rules
ii dpkg-dev 1.15.5.6 Debian package development tools
ii fakeroot 1.14.4-1 Gives a fake root environment
ii libapt-pkg-perl 0.1.24 Perl interface to libapt-pkg
ii libarray-unique-perl 0.08-1 Tie-able array that allows only un
ii libclass-accessor-perl 0.34-1 Perl module that automatically gen
ii libemail-date-format-perl 1.002-1 Module to generate RFC-2822-valid
ii liblist-moreutils-perl 0.25~02-1 Perl module with additional list f
ii libmodule-corelist-perl 2.25-1 module to determine modules shippe
ii libmodule-depends-perl 0.14-3 identify the dependencies of a dis
ii libparse-debcontrol-perl 2.005-2 Easy OO parsing of Debian control-
ii libparse-debianchangelog-perl 1.1.1-2 parse Debian changelogs and output
ii libtie-ixhash-perl 1.21-2 ordered associative arrays for Per
ii libwww-mechanize-perl 1.58-1 module to automate interaction wit
ii libyaml-perl 0.71-1 YAML Ain't Markup Language
ii make 3.81-7 An utility for Directing compilati
ii perl 5.10.1-11 Larry Wall's Practical Extraction
ii perl-modules [libmodule-corel 5.10.1-11 Core Perl modules
Versions of packages dh-make-perl recommends:
ii apt-file 2.3.3 search for files within Debian pac
dh-make-perl suggests no packages.
-- no debconf information
More information about the pkg-perl-maintainers
mailing list