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

Robert Millan zeratul2@wanadoo.es
Tue, 18 Nov 2003 13:35:11 +0100

On Mon, Nov 17, 2003 at 08:53:23PM -0500, Joey Hess wrote:
> I'm not able to reproduce it:
> [...]
> Can you help me reproduce it, preferably outside the context of
> cdbs and at the command line?

After some investigation, it seems the bug can't be reproduced outside the
context of CDBS, so it might well be a bug in CDBS. This should clarify the

$ cat debian/docs
$ mkdir foo
$ touch foo/README
$ dh_installdocs --no-act -v foo/README
        cp -a README debian/grub2/usr/share/doc/grub2
        cp -a foo/README debian/grub2/usr/share/doc/grub2

When operating in tarball mode, CDBS reads the filename in debian/docs,
prefixes it with the build-tree path, and passes it as argument to

But dh_installdocs still honours the filename in debian/docs, which has
incomplete path. Hence it attempts to copy the file from both locations,
and fails.

Is that the expected behaviour in dh_installdocs? If it is, then I'd like to
find a way (maybe an extra option) to override this for CDBS to work properly.

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)