[Build-common-hackers] debhelper: dh_installdocs doesn't handle paths with more than one component

Robert Millan zeratul2@wanadoo.es
Fri, 14 Nov 2003 13:45:04 +0100

Package: debhelper
Version: 4.1.80
Severity: normal


When a path passed to dh_installdocs has more than one component, it will
strip the basename instead of using the full path. This breaks CDBS when being
used as tar-in-tar mode, which invokes dh_installdocs in that particular way.

For example, if debian/docs includes "README", this is how CDBS will invoke
dh_installdocs (I added the -v):

$ LC_ALL=C dh_installdocs -v -pgrub2 build-tree/pupa-0.6+20031114/README
  cp -a README debian/grub2/usr/share/doc/grub2
cp: cannot stat `README': No such file or directory
dh_installdocs: command returned error code 256

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux aragorn 2.4.22-1 #1 dj nov 13 23:57:32 CET 2003 i686
Locale: LANG=ca_ES@euro, LC_CTYPE=ca_ES@euro

Versions of packages debhelper depends on:
ii  binutils          The GNU assembler, linker and bina
ii  coreutils [fileutils]      5.0.91-2      The GNU core utilities
ii  debconf-utils              1.3.20        debconf utilities
ii  dpkg-dev                   1.10.18       Package building tools for Debian
ii  file                       4.06-1        Determines file type using "magic"
ii  html2text                  1.3.1-2       An advanced HTML to text converter
ii  perl                       5.8.2-1       Larry Wall's Practical Extraction 
ii  po-debconf                 0.8.6         Manage translated Debconf template

-- no debconf information

Robert Millan

"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."

 -- J.R.R.T, Ainulindale (Silmarillion)