Package: git-buildpackage Version: 0.5.7 Severity: wishlist Tags: patch There is no way to specify the architecture when running "git-pbuilder create". If additional arguments were passed to cowbuilder, one could run "git-pbuilder create --architecture i386" to create an i386 image on an amd64 system. The attached patch allows this.
-- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-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/dash Versions of packages git-buildpackage depends on: ii devscripts 2.10.67 scripts to make the life of a Debi ii git [git-core] 1:1.7.1-1.1 fast, scalable, distributed revisi ii git-core 1:1.7.1-1.1 fast, scalable, distributed revisi ii python 2.6.5-13 interactive high-level object-orie ii python-dateutil 1.4.1-3 powerful extensions to the standar ii python-support 1.0.9 automated rebuilding support for P Versions of packages git-buildpackage recommends: ii cowbuilder 0.62 pbuilder running on cowdancer ii pristine-tar 1.10 regenerate pristine tarballs Versions of packages git-buildpackage suggests: pn git-load-dirs <none> (no description available) -- no debconf information
>From 2a4ef2ec630db5196e457558cccf456ec9f42eef Mon Sep 17 00:00:00 2001 From: Svend Sorensen <sv...@ciffer.net> Date: Tue, 31 Aug 2010 11:23:35 -0700 Subject: [PATCH] git-pbuilder: Pass arguments to update|create|login to cowbuilder Pass additional aguments to git-pbuilder (update | create | login) to cowbuilder. For example, this allows setting the architecture by running "git-pbuilder create --architecture i386". diff --git a/git-pbuilder b/git-pbuilder index afc0f65..913911e 100755 --- a/git-pbuilder +++ b/git-pbuilder @@ -78,7 +78,9 @@ fi # cowbuilder with the corresponding option under sudo rather than proceeding. case $1 in update|create|login) - sudo cowbuilder --"$1" --basepath "$BASE" --dist "$DIST" $OPTIONS + ACTION="$1" + shift + sudo cowbuilder --"$ACTION" --basepath "$BASE" --dist "$DIST" $OPTIONS "$@" exit $? ;; esac @@ -105,7 +107,7 @@ git-pbuilder - Wrapper around pbuilder for git-buildpackage DIST=I<distribution> B<git-pbuilder> I<debbuild-options> -DIST=I<distribution> B<git-pbuilder> (update | create | login) +DIST=I<distribution> B<git-pbuilder> (update | create | login) I<cowbuilder-options> =head1 DESCRIPTION @@ -147,7 +149,8 @@ passing parameters through B<git-buildpackage>. Alternately, B<git-pbuilder> may be called with an argument of C<update>, C<create>, or C<login>. In this case, it calls B<cowbuilder> using B<sudo> and passes the corresponding command to B<cowbuilder>, using the -same logic as above to determine the base directory and distribution. +same logic as above to determine the base directory and distribution. Any +arguments are passed as-is to cowbuilder. =head1 ENVIRONMENT -- 1.7.1