Debian Bug report logs - #386246
debhelper: scripts silently succeed on nonexisting package build dir

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: Martin Pitt <mpitt@debian.org>

Date: Wed, 6 Sep 2006 09:48:05 UTC

Severity: normal

Found in version debhelper/5.0.37.3

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#386246; Package debhelper. (full text, mbox, link).


Acknowledgement sent to Martin Pitt <mpitt@debian.org>:
New Bug report received and forwarded. Copy sent to Joey Hess <joeyh@debian.org>. (full text, mbox, link).


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

From: Martin Pitt <mpitt@debian.org>
To: Debian BTS Submit <submit@bugs.debian.org>
Subject: debhelper: scripts silently succeed on nonexisting package build dir
Date: Wed, 6 Sep 2006 11:34:37 +0200
[Message part 1 (text/plain, inline)]
Package: debhelper
Version: 5.0.37.3

Hi!

While evaluating a curious kernel build failure in Ubuntu (where we
use a dh_strip wrapper to automatically generate debug symbol packages
for everything) I noticed a questionable behaviour: If the
package build directory does not exist, dh_* exits successfully rather
than failing (example in the built pmount source directory):

  $ ls -d debian/pmount debian/pmou
  ls: debian/pmou: No such file or directory
  debian/pmount

  $ dh_strip -ppmount --tmpdir=debian/pmou; echo $?
  Can't stat debian/pmou: No such file or directory
   at /usr/bin/dh_strip line 192
  0

This also happens without --tmpdir:
 
  $ dh_strip -ppmount; echo $?
  Can't stat debian/pmount: No such file or directory
   at /usr/bin/dh_strip line 192
  0

This also happens with dh_fixperms, so I guess dh_strip is not the
only affected script.

IMHO dh_* should really fail in that case. Otherwise packages with
typos or bugs debian/rules silently build and such failures might go
unnoticed. (in our kernel example, a make prerequisite was missing and
thus dh_strip did not have any effect; without our wrapper we would
never have noticed).

Thank you,

Martin

-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 5 16:33:51 2018; Machine Name: buxtehude

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.