On Thu, 3 Jul 2025 at 19:01, kpcyrd <[email protected]> wrote: > On 7/3/25 12:09 PM, Campbell Jones wrote: > > That may be something worth considering in the future. As much as I > > dislike Fedora's package format, their decision to make architectures > > opt-*out* instead of opt-in has apparently reduced the friction of > > adding new architectures quite a bit. We should consider adopting that > > approach. > > This is also how alpine does it, looks like this in the APKBUILD: > > > https://gitlab.alpinelinux.org/alpine/aports/-/blob/8a6b5840955a28cc5c24f4c806865aba01c6e684/community/vaultwarden/APKBUILD#L12 >
Maybe makepkg should warn instead of fail when attempting to build for an architecture that's not in $arch. This would be less complicated than implementing "all" with exclusions. It would also make it easier to consume the often poorly-maintained packages of the AUR. With this, $arch remains useful for test/build/release automation to decide which arches to build for, and to check whether the package is arch-independent. Maybe arch-independent packages should even be using "arch=any" instead of "arch=(any)" to emphasize that "arch" can't contain any other elements.
