Package: debhelper
Version: 9.20120322
Severity: wishlist
File: /usr/bin/dh_install

Hi Joey!

dh_install in compat level 8+ has the nice feature to automatically
search for files in debian/tmp when no --sourcedir is specified.
Here's an example:

"
usr/bin/foo
usr/share/bar
debian/baz usr/bin
docs/*.html usr/share/doc/foo
"

dh_install will pick usr/bin/foo and usr/share/bar from debian/tmp and
install debian/baz and the documentation as expected. Simple and clean.

I have a package where I build multiple flavors, so I install them into
say

debian/install/deb
debian/install/udeb

and use dh_install --sourcedir=debian/install/deb resp.
debian/install/udeb.

In this case, the example above no longer works, dh_install will only
look for the files within the directory specified by sourcedir.

Imho it would be very useful, if dh_install could fallback to . if it
doesn't find the files in sourcedir.
It's basically the inverse behaviour from not using --sourcedir.

--sourcedir not set:
look in ., fallback to debian/tmp
--sourcedir set:
look in sourcedir, fallback to .

Do you think this makes sense, do you see a problem with this?


Michael

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils    2.22-6
ii  dpkg-dev    1.16.2
ii  file        5.11-1
ii  html2text   1.3.2a-15
ii  man-db      2.6.1-2
ii  perl        5.14.2-9
ii  po-debconf  1.0.16+nmu2

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  0.60

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to