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#71294 - makepkg: skip checks for write permissions when only running with '--printsrcinfo' option

Attached to Project: Pacman
Opened by Hunter Wittenborn (hwittenborn) - Saturday, 19 June 2021, 11:03 GMT
Last edited by Allan McRae (Allan) - Saturday, 19 June 2021, 12:03 GMT
Task Type Feature Request
Category makepkg
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 6.0.0
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

makepkg currently quits any time it's run under root or it can't get write permissions for the current directory.

This seems unnecessary when the only option I give it is '--printsrcinfo', as 1. It's not running any commands, and 2. It's not writing to anything.

If makepkg still sources the PKGBUILD, that would be a valid reason to avoid #1, but I don't see what would go against #2.

Any chance the checks could be skipped when only '--printsrcinfo' is ran?
This task depends upon

Comment by Eli Schwartz (eschwartz) - Sunday, 20 June 2021, 16:05 GMT
See also  FS#67158 

If you intend to build packages you regardless need:
- a non-root user
- a writable directory to work in

I believe I may have some WIP code somewhere to be less forward about requiring write permissions, but it's never been a high priority...

Loading...