<p>Reopening for further discussion / reconsideration:</p>
<p>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.</p>
<p>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 <em>after</em> 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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/issues/689?email_source=notifications&email_token=ADLPZU56X5XYK6ZZMMIHRKLP2NXADA5CNFSM4HKBQ23KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXWMWIY#issuecomment-502057763">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU6D23QDKKQ5QQYLEFTP2NXADANCNFSM4HKBQ23A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZU3ANOEDWMSZADELA73P2NXADA5CNFSM4HKBQ23KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXWMWIY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/issues/689?email_source=notifications\u0026email_token=ADLPZU56X5XYK6ZZMMIHRKLP2NXADA5CNFSM4HKBQ23KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXWMWIY#issuecomment-502057763",
"url": "https://github.com/rpm-software-management/rpm/issues/689?email_source=notifications\u0026email_token=ADLPZU56X5XYK6ZZMMIHRKLP2NXADA5CNFSM4HKBQ23KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXWMWIY#issuecomment-502057763",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>