FS#2981 - install missing deps with sudo from makepkg
Attached to Project:
Pacman
Opened by Miklos Vajna (vmiklos) - Wednesday, 20 July 2005, 22:26 GMT
Last edited by Jan de Groot (JGC) - Thursday, 21 July 2005, 21:06 GMT
Opened by Miklos Vajna (vmiklos) - Wednesday, 20 July 2005, 22:26 GMT
Last edited by Jan de Groot (JGC) - Thursday, 21 July 2005, 21:06 GMT
|
Details
The attached patch adds dependency auto-resolution support
using sudo to makepkg. So that if you use -S rather than -s,
then the installation of missings deps with pacman -S and
(if requested) the removal of those pkgs will be done via
sudo. This is handy if you build as a user using fakeroot.
|
This task depends upon
pacman-2.9.6-sudo.diff
#!/bin/bash
sudo /usr/bin/pacman $*
(well makepkg still checks the current uid)
That was because pacman -R exited with an error as it detected that it was
running in fakeroot. So that I added a workaround to save and temporarily unset
the FAKEROOTKEY env var. This pacman -R + fakeroot + sudo problem pointed out
that till now it was alloved to run pacman -D as a user, but this is obsiously
bad. Fixed this, too.
Attached the updated patch, please comment it.