Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Feature Request
Category
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

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

Closed by  Judd Vinet (judd)
Wednesday, 07 September 2005, 22:58 GMT
Reason for closing:  Implemented
Comment by Jan de Groot (JGC) - Thursday, 21 July 2005, 21:07 GMT
Judd, please implement this, I use sudo in my chroots to install dependencies by hand and use fakeroot to build my packages (some developers build as root because they miss this feature with fakeroot).
Comment by Judd Vinet (judd) - Tuesday, 09 August 2005, 18:13 GMT
Added for 2.9.7
Comment by Jürgen Hötzel (juergen) - Friday, 12 August 2005, 21:12 GMT
Why not just create a pacman wrapper script:

#!/bin/bash

sudo /usr/bin/pacman $*

(well makepkg still checks the current uid)
Comment by Miklos Vajna (vmiklos) - Saturday, 13 August 2005, 13:12 GMT
Updated the patch, fixed when a user used fakeroot and -Sr options.
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.
Comment by Judd Vinet (judd) - Wednesday, 24 August 2005, 22:24 GMT
Thank you, Miklos. This will be added for the next release.

Loading...