[Pbuilder-maint] Bug#305432: pbuilder: Easier fix for the debsign
failure
Osamu Aoki
osamu at debian.org
Fri May 5 10:28:57 UTC 2006
Package: pbuilder
Version: 0.152
Followup-For: Bug #305432
I faced the similar issue as the bug #305432.
It looks to me the issue of debsign causing error does not seem to be -S
issue.
| Copying back the cached apt archive contents
| -> unmounting dev/pts filesystem
| -> unmounting proc filesystem
| Current time: Fri May 5 18:29:19 JST 2006
| pbuilder-time-stamp: 1146821359
| -> cleaning the build env
| -> removing directory /var/cache/pbuilder/build//15017 and its
| subdirectories signfile
| /var/cache/pbuilder/result//ipmasq_4.0.8.dsc A8061F32
| /usr/bin/debsign: line 119:
| /var/cache/pbuilder/result//ipmasq_4.0.8.dsc.asc: Permission
| denieddebsign: gpg error occurred! Aborting....
Here is my take.
Current pbuilder default does good job of chown created packages in
/var/cache/pbuilder/result/ but the directly itself are root:root 755 .
This makes it impossible to create any new file as user in this
directry. I changed /var/cache/pbuilder/result/ to 1001:1001 and it
start working fine to create source only (no-diff.gz) package when I am
1001 user.
| dh_clean
| dpkg-source -b ipmasq-4.0.8
| dpkg-source: building ipmasq in ipmasq_4.0.8.tar.gz
| dpkg-source: building ipmasq in ipmasq_4.0.8.dsc
| /home/osamu/Desktop/src/ipmasq/ipmasq-4.0.8
| dpkg-genchanges -S
| dpkg-genchanges: including full source code in upload
...
| dpkg-genchanges: including full source code in upload
| dpkg-buildpackage: full upload; Debian-native package (full source is included)
| Copying back the cached apt archive contents
| -> unmounting dev/pts filesystem
| -> unmounting proc filesystem
| Current time: Fri May 5 18:32:57 JST 2006
| pbuilder-time-stamp: 1146821577
| -> cleaning the build env
| -> removing directory /var/cache/pbuilder/build//16297 and its subdirectories
| signfile /var/cache/pbuilder/result//ipmasq_4.0.8.dsc A8061F32
|
| You need a passphrase to unlock the secret key for
| user: "Osamu Aoki <osamu at debian.org>"
| 1024-bit DSA key, ID A8061F32, created 2002-05-07
|
|
| signfile /var/cache/pbuilder/result//ipmasq_4.0.8_i386.changes A8061F32
|
| You need a passphrase to unlock the secret key for
| user: "Osamu Aoki <osamu at debian.org>"
| 1024-bit DSA key, ID A8061F32, created 2002-05-07
|
|
| Successfully signed dsc and changes files
I guess most reasonable fix is to make /var/cache/pbuilder/result/ as
root:src 775 and document the requirement to include user who use
pbuilder to be the part of src group. Alternative fix is to chown
/var/cache/pbuilder/result/ itself everytime pdebuild is run with the
user account just like I did.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages pbuilder depends on:
ii cdebootstrap 0.3.11 Bootstrap a Debian system
ii coreutils 5.94-1 The GNU core utilities
ii debianutils 2.16 Miscellaneous utilities specific t
ii gcc 4:4.0.3-3 The GNU C compiler
ii wget 1.10.2-1 retrieves files from the web
Versions of packages pbuilder recommends:
ii devscripts 2.9.19 Scripts to make the life of a Debi
ii fakeroot 1.5.8 Gives a fake root environment
ii sudo 1.6.8p12-4 Provide limited super user privile
-- no debconf information
--
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
Osamu Aoki <osamu at debian.org> Yokohama Japan, GPG-key: A8061F32
.''`. Debian Reference: post-installation user's guide for non-developers
: :' : http://qref.sf.net and http://people.debian.org/~osamu
`. `' "Our Priorities are Our Users and Free Software" --- Social Contract
More information about the Pbuilder-maint
mailing list