[Rpm-maint] [rpm-software-management/rpm] %buildarch does not reflect architecture of current %package declaration (#689)

Panu Matilainen notifications at github.com
Fri Jun 14 10:27:13 UTC 2019


Reopening for further discussion / reconsideration:

It turns out that Fedora is widely depending on %{buildarch} macro being set to detect noarch sub-packages for at least Python packages. Relying on %{buildarch} is essentially broken as noted above, but it does work for noarch sub-packages. Kinda.

I figured maybe it's time to finally make it possible to query the actual headers from Lua to get accurate info on all cases. Adding that is not hard, but it runs into another gotcha - many things, including the package architecture, is not set in the header until *after* the package preamble has been parsed. And if we open up the header to (read-only) access from the spec, we expose the these sort of internals in a way that might make future changes even harder.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/689#issuecomment-502057763
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190614/562ba47f/attachment.html>


More information about the Rpm-maint mailing list