Bug#548950: dh-make-perl: Should check if "sample" is really a directory

Slaven Rezic slaven at rezic.de
Tue Sep 29 19:19:33 UTC 2009

Package: dh-make-perl
Version: 0.47
Severity: normal

When trying to build Devel::Trace:

$ dh-make-perl --build --cpan Devel::Trace     
Found: Devel-Trace 0.10 (libdevel-trace-perl arch=all)
Found examples: sample/*
dh_installexamples sample/*
cp: cannot stat `sample/*': Not a directory
dh_installexamples: command returned error code 256
make: *** [binary-indep] Error 1
make: Leaving directory `/tmp/Devel-Trace-0.10'
Cannot create deb package

Looking into the distribution I see a sample file, not a directory:

-rwxr-xr-x  1 eserte eserte   206 1998-07-19 02:20 sample

So I guess there is a "-d" check missing in the code.


-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages dh-make-perl depends on:
ii  debhelper                7.0.15          helper programs for debian/rules
ii  dpkg-dev                 1.14.25         Debian package development tools
ii  fakeroot                 1.11            Gives a fake root environment
ii  libemail-date-format-per 1.002-1         Module to generate RFC-2822-valid 
ii  libmodule-depends-perl   0.14-1          identify the dependencies of a dis
ii  libwww-mechanize-perl    1.34-2          Automate interaction with websites
ii  libyaml-perl             0.66-1          YAML Ain't Markup Language (tm)
ii  make                     3.81-5          The GNU version of the "make" util
ii  perl                     5.10.0-19lenny2 Larry Wall's Practical Extraction 
ii  perl-modules [libpod-par 5.10.0-19lenny2 Core Perl modules

Versions of packages dh-make-perl recommends:
ii  apt-file                 2.1.5           APT package searching utility -- c
ii  perl-modules [libmodule- 5.10.0-19lenny2 Core Perl modules

dh-make-perl suggests no packages.

-- no debconf information

More information about the pkg-perl-maintainers mailing list