Bug#499358: pbuilder: fails when hooks are symlinks

Ben Finney ben+debian at benfinney.id.au
Thu Sep 18 05:06:39 UTC 2008


Package: pbuilder
Version: 0.181
Severity: normal
Tags: patch

I keep a number of different hooks in my $HOME/.pbuilder/hooks/ 
directory, and some are symlinks to files outside that directory.

When 'pbuilder-runhooks' copies the hooks, it copies them without 
dereference, which fails inside the chroot since the referenced files 
are not found.

The attached patch, generated using 'git format-patch', fixes this by 
using the '-L' ('--dereference') option to 'cp' when copying the hook 
files into the pbuilder chroot.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (90, 'unstable')
Architecture: powerpc (ppc64)

Kernel: Linux 2.6.25-2-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.5.3      Bootstrap a Debian system
ii  coreutils                     6.10-6     The GNU core utilities
ii  debconf [debconf-2.0]         1.5.22     Debian configuration management sy
ii  debianutils                   2.30       Miscellaneous utilities specific t
ii  debootstrap                   1.0.10     Bootstrap a basic Debian system
ii  gcc                           4:4.3.1-2  The GNU C compiler
ii  wget                          1.11.4-1   retrieves files from the web

Versions of packages pbuilder recommends:
ii  cowdancer                     0.47       Copy-on-write directory tree utili
ii  devscripts                    2.10.35    scripts to make the life of a Debi
ii  fakeroot                      1.9.5      Gives a fake root environment
ii  sudo                          1.6.9p17-1 Provide limited super user privile

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

-- debconf information:
  pbuilder/mirrorsite: http://cdn.debian.net/debian
  pbuilder/nomirror:
  pbuilder/rewrite: false

-- 
 \        “I spent a lot of money on wine and women, and like a fool I |
  `\                                 squandered the rest.” —Benny Hill |
_o__)                                                                  |
Ben Finney <ben at benfinney.id.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Dereference-symlinks-when-copying-hooks.patch
Type: text/x-diff
Size: 785 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20080918/51751f97/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20080918/51751f97/attachment.pgp 


More information about the Pbuilder-maint mailing list