Hi,
On Thu, Dec 30, 2021 at 01:08:39AM +0100, Andrea Pappacoda wrote:
> Package: git-buildpackage
> Version: 0.9.25
> Severity: wishlist
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> - -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Dear Maintainer,
> 
> I'm trying to use gbp buildpackge to build one of my packages on my new system
> where I installed doas instead of sudo, but I noticed that git-buildpackage is
> unable to execute successfully because it relies on sudo for privilege
> escalation.

Logs please.

> Simply symlinking sudo to doas does not solve the issue, as the build process
> invokes sudo with the -E option, unsupported by doas.


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.

Cheers,
 -- Guido

> One possible solution would be to drop the -E usage and use sudo if found, and
> falling back to doas otherwise.
> 
> Thank you for maintaining git-buildpackage.
> 
> 
> - - -- System Information:
> Debian Release: bookworm/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 5.15.0-2-amd64 (SMP w/4 CPU threads)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
> TAINT_UNSIGNED_MODULE
> Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not
> set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages git-buildpackage depends on:
> ii  devscripts             2.21.7
> ii  git                    1:2.34.1-1
> ii  man-db                 2.9.4-2
> ii  python3                3.9.7-1
> ii  python3-dateutil       2.8.1-6
> ii  python3-pkg-resources  58.2.0-1
> ii  sensible-utils         0.0.17
> 
> Versions of packages git-buildpackage recommends:
> ii  cowbuilder        0.89
> ii  pbuilder          0.231
> ii  pristine-tar      1.49
> ii  python3-requests  2.25.1+dfsg-2
> 
> Versions of packages git-buildpackage suggests:
> pn  python3-notify2  <none>
> pn  sudo             <none>
> ii  unzip            6.0-26
> 
> - - -- no debconf information
> 
> - -----BEGIN PGP SIGNATURE-----
> 
> iIoEARYIADIWIQRm3vFSgpkMIZnvqAGooSioqxzuSQUCYcz3WxQcYW5kcmVhQHBh
> cHBhY29kYS5pdAAKCRCooSioqxzuSQdHAQC3UeZ6fEPTOrJ9NqYD8H8kG+lSxAzm
> /e2/Go4zU5paogD+LDbscJgYF4BIaf4bVrJJYZLpsliKV5r1PhHTEjDNNAk=
> =byB2
> 
> 
> -----BEGIN PGP SIGNATURE-----
> 
> iIoEARYIADIWIQRm3vFSgpkMIZnvqAGooSioqxzuSQUCYcz4hxQcYW5kcmVhQHBh
> cHBhY29kYS5pdAAKCRCooSioqxzuSVhlAP41tgTPwQ/0MI9DCsf5iOdk07KH5gqI
> 8fQVVFR9TjY1HQEAxBbjDoX81FST8z8C0VYgx+ZVdSNE754nr+oOH3Vn4ww=
> =6S6i
> -----END PGP SIGNATURE-----
> 

Reply via email to