Hi,
On Thu, Dec 30, 2021 at 11:24:59AM +0100, Andrea Pappacoda wrote:
> Hi, thanks for the reply.
> 
> > Logs please.
> 
> Logs when running without sudo: https://paste.debian.net/1225228/
> Logs when running with sudo linked to doas:
> https://paste.debian.net/1225229/
> 
> > gbp itself isn't using sudo so this looks like an issue with the builder
> > you invoke. git-pbuilder uses sudo but its not using `sudo -E` (and not
> > inolved in the actual build step) so you likely want to reassign to the
> > builder you're using.
> 
> Sorry but I'm quite new to packaging, and I don't understand fully what you
> mean. By looking at the logs it seems that gbp is invoking git-pbuilder,
> which causes doas to throw an invalid option error; if nothing in the build
> process invokes `sudo -E` the build should complete successfully, as doas
> and sudo behave similarly when ran without options.

I didn't say *nothing* in the build invokes `sudo -E` - gbp and
git-pbuilder don't. git-pbuilder invokes pbuilder (which isn't part of
git-buildpackage) and that invokes `sudo -E`. See e.g.

PBUILDERROOTCMD in `man pbuilderrc`.

So I don't think there's anything to fix on the gbp side and the bug
should be reassigned to pbuilder.

> 
> Do you know how I could workaround this, and who should I report this bug
> to? Thanks :)

The pbuilder options should allow you to work around this but doas not
supporting `-E` looks like another bug to me.

Cheers,
 -- Guido

Reply via email to