Bug#802800: Passes -S unconditionally conflicting with '-g' when building the source package
Mattia Rizzolo
mattia at mapreri.org
Tue Nov 10 10:02:41 UTC 2015
On Tue, Nov 10, 2015 at 08:18:28AM +0100, Guido Günther wrote:
> > > 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" :)
>
> If you do so you also need to allow the valus to be surrounded by single
> quotes ('). That's why I added a second line, to show how the value gets
> passed in.
ah, i actually missed that.
I'm not that good at writing regex, but I tried to cook something that
works either with the quotes or without, but I failed.
perl -pe 's/(^|\s)(?:'\'')-[AbBFgG](?:'\'')(\s|$)/$1$2/g'
do you have a clue about what's wrong here?
worst case I can always pipe the two perl calls, one considering the
quotes and the other no.
--
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/20151110/2889f5ca/attachment.sig>
More information about the Pbuilder-maint
mailing list