[git-buildpackage] Pass compression options to dpkg-source (using git-pbuilder)

Christopher Baines mail at cbaines.net
Tue Aug 18 16:11:15 CEST 2015


On 18/08/15 14:43, Guido Günther wrote:
> 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    
>     ...

Thanks, that has solved my problem. I was working up the chain, and was
trying to use --git-pbuilder-options, and had missed the line where it
talks about passing options through.

In hindsight, I should probably be avoiding git-pbuilder altogether
given that the --git-builder option exists.

Thanks again,

Chris



More information about the git-buildpackage mailing list