FS#68985 - [pacman] doas support for makepkg if sudo is not installed
Attached to Project:
Pacman
Opened by Callum Watson (khab) - Tuesday, 15 December 2020, 13:29 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 17 December 2020, 20:05 GMT
Opened by Callum Watson (khab) - Tuesday, 15 December 2020, 13:29 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 17 December 2020, 20:05 GMT
|
Details
If sudo is not installed, makepkg uses su for privilege
escalation.
I realise doas is somewhat rare as an installed package, but it would be nice to support it. I've had a go with makepkg and doas using the attached patch for pacman and it seems to work for me. Then again, this goes against the 'make sure base-devel is installed' advice for building packages. |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Thursday, 17 December 2020, 20:05 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#65186
FS#32621
Thursday, 17 December 2020, 20:05 GMT
Reason for closing: Duplicate
Additional comments about closing:
FS#65186Admittedly you're the first person to submit a patch for that -- thank you!
However, I don't like the implementation as it takes us from one hardcoded thing to two hardcoded things.
I have WIP code here: https://git.archlinux.org/users/eschwartz/pacman.git/commit/?h=queue2&id=549a8d8c081c3e6d87c3312bdd0539a672181da8
This would implement
FS#32621instead, which is more generic and reusable.