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