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#74176 - Separate makepkg exit code for unsupported architecture

Attached to Project: Pacman
Opened by Florian Hülsmann (CBiX) - Sunday, 20 March 2022, 19:07 GMT
Task Type Feature Request
Category makepkg
Status Unconfirmed
Assigned To No-one
Architecture arm
Severity Low
Priority Normal
Reported Version 6.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Summary and Info:
We'd like to automate building packages for the aarch64 architecture based on the information in the PKGBUILD.
Ideally, makepkg would return with an individual error code indicating that the PKGBUILD does not support the architecture so we can ignore those packages instead of failing the process. Currently the exit code for that case is 12 (Error parsing PKGBUILD) which is assumed to be an actual error.

The same applies for any architecture.

Steps to Reproduce:
- create a PKGBUILD with arch=(i686)
- run makepkg on a x86_64 machine and check the exit code
This task depends upon

Comment by Andrew Gregory (andrewgregory) - Sunday, 20 March 2022, 20:18 GMT
Why not check the available architectures before trying to build it?
Comment by Florian Hülsmann (CBiX) - Sunday, 20 March 2022, 20:35 GMT
I could do that manually, but still I would not consider checking the host architecture against a perfectly valid PKGBUILD a "linting" step, as it currently is, hence my feature request.

Loading...