[Pbuilder-maint] Bug#349394: pbuilder: here's a patch for that
Sean Finney
seanius at debian.org
Tue Jan 24 17:21:04 UTC 2006
Package: pbuilder
Version: 0.145
Followup-For: Bug #349394
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
tags 349394 + patch
thanks
i took a look at the code, and it was clean and readable enough that
i threw together a patch to do this. it's a fairly small change that
only effects the filename passed to debsign, so i hope that you will
consider it :)
sean
- -- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-amd64-k8
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.9 Bootstrap a Debian system
ii coreutils 5.93-5 The GNU core utilities
ii debianutils 2.15.2 Miscellaneous utilities specific t
ii debootstrap 0.3.3 Bootstrap a basic Debian system
ii gcc 4:4.0.2-2 The GNU C compiler
ii wget 1.10.2-1 retrieves files from the web
Versions of packages pbuilder recommends:
ii devscripts 2.9.10 Scripts to make the life of a Debi
ii fakeroot 1.5.6 Gives a fake root environment
ii sudo 1.6.8p12-1 Provide limited super user privile
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD1mIAynjLPm522B0RAh1yAJ9ndDKOudtyT8c6HzgsZK79Nqh0twCbB8Vf
tGVlBwlsdPPuw1x4E5ODZNc=
=GpV9
-----END PGP SIGNATURE-----
-------------- next part --------------
--- pdebuild 2005-12-21 12:48:49.000000000 +0100
+++ /usr/bin/pdebuild 2006-01-24 18:08:57.000000000 +0100
@@ -31,7 +31,10 @@
PKG_SOURCENAME=$(dpkg-parsechangelog|sed -n 's/^Source: //p')
PKG_VERSION=$(dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p')
-ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH)
+
+if [ ! "$ARCHITECTURE" ]; then
+ ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH)
+fi
export BUILDRESULTUID=$(id -u)
export BUILDRESULTGID=$(id -g)
--- pdebuild-checkparams 2005-12-21 12:48:49.000000000 +0100
+++ /usr/lib/pbuilder/pdebuild-checkparams 2006-01-24 18:11:07.000000000 +0100
@@ -83,6 +83,10 @@
exec 2>&1
shift; shift;
;;
+ --arch)
+ ARCHITECTURE="$2"
+ shift; shift;
+ ;;
--help)
showhelp
;;
More information about the Pbuilder-maint
mailing list