Bug#802800: Passes -S unconditionally conflicting with '-g' when building the source package

Mattia Rizzolo mattia at mapreri.org
Mon Nov 9 19:55:11 UTC 2015


control: tags -1 pending

On Fri, Nov 06, 2015 at 06:25:15PM +0100, Guido Günther wrote:
> Hi,
> we must not pass '-g' when building the source packge in pbuilder
> otherwise we fail like below. Prove of concept patch attached.
> 
> The issus is actually in pbuilder itself:
> 
> $ pdebuild --buildresult ../ --pbuilder cowbuilder --debbuildopts  '-g'  -- --hookdir /home/foo/.pbuilder/hooks --basepath /var/cache/pbuilder/base-sid.cow
> 0
> I: using cowbuilder as pbuilder
> dpkg-buildpackage: cannot combine -S and -g

Yeah, -g and -G are newer than pdebuild :P

>      echo "dpkg-buildpackage -S -d -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS" | \
>  	perl -pe 's/(^|\s)-[AbBF](\s|$)/$1$2/g' | \
> +	perl -pe 's/(^|\s)'\''-g'\''(\s|$)/$1$2/g' | \

I instead added 'G' and 'g' to that [AbBF] "array" :)


Committed locally, I wanted to upload a new pbuilder last week, guess
I'll do this one.

Thanks for the bug report! :)

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  http://mapreri.org                              : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20151109/432a822f/attachment.sig>


More information about the Pbuilder-maint mailing list