Bug#565436: pbuilder: new $HOME value broke my hook scripts

Francesco Poli (t1000) frx at firenze.linux.it
Fri Jan 15 18:50:51 UTC 2010


Package: pbuilder
Version: 0.196
Severity: normal

Hi!

The recent change in the $HOME value set by pdebuild-internal
(see commit 88e0052c7362c2c2a7841579f007ccabeae27c49 ) broke most of
my hook scripts, since they unfortunately rely on the fact that $HOME
ends with "/../"

Would it be possible to add a new environment variable to identify the
debianized source directory?

I think that adding the following simple line in pdebuild-internal just
before    export HOME=$(readlink -f $(pwd)/../) 
would suffice:

  export DEBSOURCEDIR=$(readlink -f $(pwd))

maybe with a comment that explains that this is useful for
hook scripts.


I think this would be harmless and very useful for many hook
scripts written by users in the future.
Please add this line as soon as possible, if you agree.

Thanks for your time.



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.5.5      Bootstrap a Debian system
ii  coreutils                     7.4-2      The GNU core utilities
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  debianutils                   3.2.2      Miscellaneous utilities specific t
ii  wget                          1.12-1.1   retrieves files from the web

Versions of packages pbuilder recommends:
ii  devscripts                    2.10.61    scripts to make the life of a Debi
ii  fakeroot                      1.14.4-1   Gives a fake root environment
ii  sudo                          1.7.2p1-1  Provide limited super user privile

Versions of packages pbuilder suggests:
pn  cowdancer                     <none>     (no description available)
pn  gdebi-core                    <none>     (no description available)
pn  pbuilder-uml                  <none>     (no description available)

-- debconf information excluded





More information about the Pbuilder-maint mailing list