Hi Russ,
On Mon, Jul 22, 2013 at 02:59:06PM -0700, Russ Allbery wrote:
> Package: git-buildpackage
> Version: 0.6.2
> Severity: wishlist
>
> Now that the buildds properly distinguish between arch-specific builds
> and arch-independent builds and support using build-arch, it would be
> nice to have a simple way of testing that such package builds work
> properly while still using git-buildpackage. However, at least when
> using git-buildpackage in conjunction with git-pbuilder, this doesn't
> seem to work. I just get various versions of invalid flag errors.
>
> pbuilder itself supports a --binary-arch flag that does the right things
> (calls dpkg-buildpackage with -B but also doesn't install things in
> Build-Depends-Indep, etc.), but that doesn't seem to make it down to
> pbuilder in the right fashion currently.
>
> I'm not sure if this is a problem with git-pbuilder or with something
> else, and haven't had a chance to investigate further. Filing this bug
> partly as a placeholder and partly to see if anyone else has already
> looked into this in more detail.
Since this is a option that needs to be passed to pbuilder and not to
dpkg-buildpackage one needs to use the --git-pbuilder-options command
line option:
# gbp buildpackage --git-pbuilder-options='--binary-arch'
-> Invoking pbuilder
forking: pbuilder build --debbuildopts --debbuildopts --binary-arch
--buildplace /var/scratch/pbuilder/build//cow.31843 --buildresult
/var/scratch/src/git-buildpackage --debbuildopts --binary-arch --no-targz
--internal-chrootexec chroot /var/scratch/pbuilder/build//cow.31843 cow-shell
/var/scratch/src/git-buildpackage/git-buildpackage_0.6.2.dsc
The current situation for prefixing gbp options with --git- , not
prefixing dpkg-buildpackage options and passing pbuilder options via
--git-pbuilder is confusing but I'm not sure how we can make it much
simpler.
Sorry for the late reply,
-- Guido
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]