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
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
|
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
FS#67158If 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...