Quantcast
Viewing all articles
Browse latest Browse all 109

SRCINFO: Architecture overwrites in split packages may be less a superset of pkgbase's arch.

Hi! While investigating the possible valid input of PKGBUILD files, I stumbled over a missing lint in the SRCINFO generation. Right now, it's possible to have an `arch=(x86_64)` in a pkgbuild and an `arch=(aarch64)` override in a split package. This fails with `makepkg -s` but works just fine for `--printsrcinfo`. ``` pkgbase = base pkgdesc = A split package example pkgver = 0.1.0 pkgrel = 1 url = https://archlinux.org arch = x86_64 ... pkgname = bar pkgdesc = A split package example - bar arch = aarch64 ``` I.e. The following shouldn't would be valid ``` pkgname=(base bar) ... arch=(x86_64) ... package_bar(){ arch=(aarch64) } ``` Only this one should be valid. ``` pkgname=(base bar) ... arch=(x86_64) ... package_bar(){ arch+=(aarch64) } ```

Viewing all articles
Browse latest Browse all 109

Trending Articles