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#46108 - [makepkg] Add support for --root to be passed to pacman on --install

Attached to Project: Pacman
Opened by Jon Gjengset (Jonhoo) - Tuesday, 25 August 2015, 21:54 GMT
Last edited by Allan McRae (Allan) - Monday, 14 December 2015, 14:08 GMT
Task Type Feature Request
Category makepkg
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Unless I'm mistaken, makepkg does not have a flag similar to pacman's --root that will cause built packages to be installed (when --install is given) into a particular rooted environment. This is extremely useful when, for example, building virtual machine images, or when trying to install custom (or AUR) packages onto other installs. While it is possible to build the package first, and then install the built package(s) manually using pacman -U --root, this seems unnecessary given the presence of the --install flag.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 14 December 2015, 14:08 GMT
Reason for closing:  Won't implement
Comment by Allan McRae (Allan) - Tuesday, 25 August 2015, 23:02 GMT
I am not keen on adding more flags from pacman to makepkg - especially when they can be done in a separate pacman call.
Comment by Jon Gjengset (Jonhoo) - Tuesday, 25 August 2015, 23:07 GMT
Yeah, I thought that might be the case. Any particular reason why makepkg still has --install? It seems like it is completely unnecessary, and merely a shortcut to avoid calling pacman afterwards? I'm inclined to argue that if --install is there, then --root is a fairly natural thing to also have.

This came up because of a feature request in pacaur: https://github.com/rmarquis/pacaur/issues/338 (see especially the later comments). Would you recommend that an application like pacaur (or yaourt for that matter) do building and installing separately, and simply ignore the existence of --install?
Comment by Allan McRae (Allan) - Monday, 14 December 2015, 14:08 GMT
So your use case is to build locally and the install in another root. So --root would only be passed to pacman during the install step and not in the other pacman calls to pacman (determining if dependencies are installed, etc). That is not something I think should be supported.

Loading...