[git-buildpackage] Pass compression options to dpkg-source (using git-pbuilder)
Guido Günther
agx at sigxcpu.org
Tue Aug 18 15:43:56 CEST 2015
On Tue, Aug 18, 2015 at 10:03:46AM +0100, Christopher Baines wrote:
> On 18/08/15 09:33, Guido Günther wrote:
> > On Mon, Aug 17, 2015 at 10:23:52PM +0100, Christopher Baines wrote:
> >> So I have been trying to figure out for a while how to do this, but even
> >> after spending several hours working through the source code of
> >> git-buildpackage, git-pbuilder and pdebuild, I still cannot work out how
> >> to do this successfully...
> >>
> >> All I would like to do is pass the --source-option=--compression=gzip to
> >> dpkg-buildpackage, as invoked by pdebuild, through running git-pbuilder,
> >> through running gbp buildpackage.
> >>
> >> Can anyone help?
> >
> > dpkg-source is invoked via:
> >
> > gbp buildpackage
> > -> git-pbuilder
> > -> pdebuild
> > -> dpkg-buildpackage
> > -> dpkg-source
> >
> > It just passes on all options you give from gbp buildpackge to
> > dpkg-buildpackage. See the man page of dpkg-buildpackage, I don't think
> > you can pass arbitrary option from dpkg-buildpackage to dpkg-source
> > there.
>
> As I say above, you can pass options to dpkg-source via --source-option
> which I have tested, and it works. The problem I think is with
> git-pbuilder/pdebuild as I can't seem to get the option through to
> dpkg-buildpackage.
But it still holds, the options are simply passed down the chain (didn't know there's a
--source-option though):
$ gbp buildpackage --git-verbose --source-option=--compression=gzip
...
dpkg-source --compression=gzip -b libvirt
...
Maybe you can give some more details how it is failing or provide a log?
Cheers,
-- Guido
More information about the git-buildpackage
mailing list