Bug#852264: gbp buildpackage: doesn't pass options correctly anymore

Guido Günther agx at sigxcpu.org
Mon Jan 23 20:21:22 UTC 2017


control: tags -1 -unreproducible
control: gbp buildpackage quotes arguments twice with GIT_PBUILDER_AUTOCONF=no

On Mon, Jan 23, 2017 at 11:26:44AM +0100, Raphaël Halimi wrote:
> Le 23/01/2017 à 08:29, Guido Günther a écrit :
> >> A couples of lines above, I can see:
> >>
> >> I: Generating source changes file for original dsc
> >> dpkg-genchanges: error: unknown option ''-v0.9-1''
> > 
> > I'm not seeing double quotes here. We changed quoting in 80a1c39
> > (0.8.10) so there might be a bug but I can't reproduce this with
> > pbuilder 0.227 and 0.228.1.
> 
> Sorry if I wasn't clear. Those are not double quotes, but two pairs of
> single quotes.

I meant doubled quotes - sorry for the confusion ;)

[..snip..]
> raph at arche:~/Divers/dev/debian/mine/official/tlp$ DIST=jessie gbp buildpackage -v0.9-1
> Building with pbuilder
> I: Distribution set to jessie (environment variable)
> I: using pbuilder as pbuilder
> dpkg-checkbuilddeps: error: Unmet build dependencies: dh-systemd
> W: Unmet build-dependency in source
> dh_testdir
> dh_testroot
> # add here commands to clean up after the build process.
> /usr/bin/make clean
> make[1]: Entering directory '/home/raph/Divers/dev/debian/mine/official/tlp'
> rm -f tlp tlp-functions tlp-nop tlp-rdw-nm tlp-rdw.rules tlp-rdw-udev tlp-rf tlp.rules tlp-run-on tlp.service tlp-sleep.service tlp-stat tlp.upstart tlp-usb-udev
> make[1]: Leaving directory '/home/raph/Divers/dev/debian/mine/official/tlp'
> dh_clean
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building tlp using existing ./tlp_0.9.orig.tar.gz
> dpkg-source: info: building tlp in tlp_0.9-2~bpo8+1.debian.tar.xz
> dpkg-source: info: building tlp in tlp_0.9-2~bpo8+1.dsc
> I: Generating source changes file for original dsc
> dpkg-genchanges: error: unknown option ''-v0.9-1''    
> 
> Use --help for program usage information.
> gbp:error: 'BUILDER=pbuilder GIT_PBUILDER_AUTOCONF=no /usr/bin/git-pbuilder -v0.9-1' failed: it exited with 2
> ----->%-----

That's the difference. You're using 'GIT_PBUILDER_AUTOCONF=no' (which
then used pbuilder instead of cowbuilder):

With GIT_PBUILDER_AUTOCONF=no git-pbuilder invokes pdebuild like

    pdebuild --pbuilder cowbuilder --debbuildopts ' '\''-v1.0'\''' -- --hookdir /home/agx/.pbuilder/hooks

and without GIT_PBUILDER_AUTOCONF=no:

    pdebuild --buildresult ../ --pbuilder cowbuilder --debbuildopts ' '\''-v1.0'\''' -- --hookdir /home/agx/.pbuilder/hooks --basepath /var/cache/pbuilder/tmpbuild//base-sid.cow

The quoting looks indentical to me so it seems cowbuilder is happy with
the quoting while pbuilder isn't. I'm cc'ing the the pbuilder
maintainers for their input since I think pbuilder should accept the
input (and it did in 0.227). Note that unqoted doesn't work either:

    pdebuild --pbuilder cowbuilder --debbuildopts -v1.0 -- --hookdir /home/agx/.pbuilder/hooks

which I think it should. Raphaël, could you check if downgrading
pbuilder 0.227 works for you too.
Cheers,
 -- Guido



More information about the Pbuilder-maint mailing list