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
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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 
Comment by Eli Schwartz (eschwartz) - Tuesday, 15 December 2020, 14:47 GMT
Duplicate of  FS#65186 

Admittedly 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#32621  instead, which is more generic and reusable.

Loading...