Package: dh-make-perl Version: 0.23 Severity: normal Tags: patch Hi,
running dh-make-perl results in % dh-make-perl RT-Extension-CommandByMail-0.05 cut: option requires an argument -- d Try `cut --help' for more information. and the perl version in the resulting debian/control is empty: Build-Depends-Indep: perl (>= ) The attached patch fixes this. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.8-3-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages dh-make-perl depends on: ii debhelper 5.0.37.3 helper programs for debian/rules ii dpkg-dev 1.13.22 package building tools for Debian ii fakeroot 1.5.10 Gives a fake root environment ii libmodule-depends-perl 0.10-1 identify the dependencies of a dis ii libyaml-perl 0.62-1 YAML Ain't Markup Language (tm) ii make 3.81-2 The GNU version of the "make" util ii perl 5.8.8-6.1 Larry Wall's Practical Extraction ii perl-modules [libpod-parser-p 5.8.8-6.1 Core Perl modules Versions of packages dh-make-perl recommends: pn apt-file <none> (no description available) pn libmodule-build-perl <none> (no description available) -- no debconf information
--- /tmp/M7vrA0X6dc/dh-make-perl-0.23/dh-make-perl 2006-08-29 04:59:19.000000000 +0300 +++ /tmp/hfqyi2hAZw/dh-make-perl-0.23+perlversion/dh-make-perl 2006-09-05 11:21:59.000000000 +0300 @@ -143,7 +143,11 @@ #my $section = 'interpreters'; my $section = 'perl'; my $depends = '${perl:Depends}'; -my $bdependsi = 'perl (>= ' . `dpkg -p perl|grep ^Version:|cut -f 2 -d \ ` . ')'; + +my $perlversion = `dpkg -p perl|grep ^Version:|cut -f 2 -d \\ `; +chomp $perlversion; + +my $bdependsi = "perl (>= $perlversion)"; my $bdepends = 'debhelper (>= 5.0.0)'; my $maintainer = get_maintainer(); my $arch = 'all';