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.
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.
FS#72317 - Feature: Don't ask super user permissions for install-root that does not require sudo permissions
|
DetailsSummary and Info:
When the install root passed to pacman using -r/--root does not require super user permissions, pacman should not ask for sudo permissions. Rationale/Story:? I have worked in big tech, and the way all engineers are made to work is by logging into some shared machine that they don't have sudo permissions to. If one wishes to install a tool that they like locally in home directory (given they don't have sudo permissions), all they can do is download the source code and compile it themselves. That means finding and compiling all dependencies manually, and adjusting the configutation prefix, compiler/linker options for each compile, etc. Pacman already provides an option to specify an install root different from the default by passing -r <path> / --root <path>. But pacman asks for super user permissions even if the passed root does not require super user permission (like somewhere in ones home directory tree). Benefit: Ideally this will enable the users to maintain a local package directory where they can install tools that they care about, and their dependencies. Steps to Reproduce: Try passing --root <some path in user's home directory> to pacman, it still asks for sudo. |
This task depends upon
This is the problem. Packages are built expecting a given filesystem root. Installing them with "--root" and expecting them to work without that being the system root is not going to work. They will still search for libraries in /usr/lib etc.