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#69561 - [pacman] makepkg should not run $PACMAN command as root

Attached to Project: Pacman
Opened by soloturn (soloturn) - Saturday, 06 February 2021, 12:23 GMT
Last edited by morganamilo (morganamilo) - Saturday, 06 February 2021, 12:44 GMT
Task Type Bug Report
Category Packages: Core
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 0
Private No

Details

Description:
can makepkg please not run commands passed in the $PACMAN environment variable as root
but only run the command itself?

Additional info:
when developing a AUR package it is convenient to run a command to install dependencies.
so i set
export PACMAN=paru

running package builds from AUR as root is (fortunately) prohibited by AUR helpsers
like yay and paru. but - that means - it does not work seamlessly with makepkg, as
it tries to call the command given by $PACMAN as root. much nicer it would be that
the command provided needs to make sure it has appropriate permissions, either via
a "sudo command" or something inside, like in yay and paru.
This task depends upon

Closed by  morganamilo (morganamilo)
Saturday, 06 February 2021, 12:44 GMT
Reason for closing:  Won't implement
Additional comments about closing:  If makepkg didn't run pacman as root then pacman would fail.
Plus AUR helpers are unsupported so don't expect makepkg to accommodate for them.

Loading...