Debian Bug report logs - #666741
dh_install: fallback to . when --sourcedir is used

version graph

Package: debhelper; Maintainer for debhelper is Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>; Source for debhelper is src:debhelper (PTS, buildd, popcon).

Reported by: Michael Biebl <biebl@debian.org>

Date: Sun, 1 Apr 2012 13:09:02 UTC

Severity: wishlist

Tags: patch

Found in versions debhelper/9.20120322, debhelper/9.20151220, debhelper/9.20151225

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#666741; Package debhelper. (Sun, 01 Apr 2012 13:09:04 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Biebl <biebl@debian.org>:
New Bug report received and forwarded. Copy sent to Joey Hess <joeyh@debian.org>. (Sun, 01 Apr 2012 13:09:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Michael Biebl <biebl@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dh_install: fallback to . when --sourcedir is used
Date: Sun, 01 Apr 2012 15:06:33 +0200
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




Information forwarded to debian-bugs-dist@lists.debian.org, Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>:
Bug#666741; Package debhelper. (Sat, 26 Dec 2015 22:57:09 GMT) (full text, mbox, link).


Acknowledgement sent to Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>. (Sat, 26 Dec 2015 22:57:09 GMT) (full text, mbox, link).


Message #10 received at 666741@bugs.debian.org (full text, mbox, reply):

From: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
To: 666741@bugs.debian.org
Subject: Another solution: multiple sourcedir
Date: Sat, 26 Dec 2015 23:33:35 +0100
Package: debhelper
Version: 9.20151220

Hi,

Another solution will be to specify multiple sourcedir. 
	dh_install  --sourcedir=debian/tmp-indep --sourcedir=debian/prebuilt --autodest

Will first found something in debian/tmp-indep then in debian/prebuilt

Note that autodest will remove the prefix in both case.

You could allow . as a special dir

It will be really useful for imagemagick for instance

Bastien



Information forwarded to debian-bugs-dist@lists.debian.org, Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>:
Bug#666741; Package debhelper. (Sun, 31 Jan 2016 13:39:07 GMT) (full text, mbox, link).


Acknowledgement sent to Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>. (Sun, 31 Jan 2016 13:39:07 GMT) (full text, mbox, link).


Message #15 received at 666741@bugs.debian.org (full text, mbox, reply):

From: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
To: 666741@bugs.debian.org
Subject: [debhelper] Attempted patch
Date: Sun, 31 Jan 2016 14:34:24 +0100
[Message part 1 (text/plain, inline)]
Package: debhelper
Version: 9.20151225
control: tags -1 + patch

Hi niel,

could you get a glimpse at this attemped patch ?

They are some failure on test suite that I could not fix

Bastien
[atempt.diff (text/x-patch, attachment)]

Added tag(s) patch. Request was from Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com> to 666741-submit@bugs.debian.org. (Sun, 31 Jan 2016 13:39:07 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 14 05:35:44 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.