<p>Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rpm-software-management/rpm/commit/d53499d1565dd7ba6d93939e552cc604b26dccd7/hovercard" href="https://github.com/rpm-software-management/rpm/commit/d53499d1565dd7ba6d93939e552cc604b26dccd7"><tt>d53499d</tt></a> makes rpmbuild use %_build_cpu instead of %_target_cpu for valid architecture testing if the target_cpu is noarch.</p>
<p>On most architecture this works well, but there are cases with unexpected results. Our ppc64le rpm has _host_cpu and thus _build_cpu set to "powerpc64le". But users expect</p>
<pre><code>ExclusiveArch: ppc64le
</code></pre>
<p>to work, it currently returns <code>error: Architecture is not included: powerpc64le</code>.</p>
<p>There are two ways to fix this:</p>
<ol>
<li>
<p>We can change the configure script so that the _host_cpu value is translated. This would also "fix" the _target_cpu setting that is also done in the file, because _target_cpu needs also to be translated.</p>
</li>
<li>
<p>We can change the rpmReadConfigFiles() code so that it adds a _build_cpu_translated macro and use that in the valid arch check.</p>
</li>
</ol>
<p>Which solution do you prefer?</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/791?email_source=notifications&email_token=ADLPZU5PEJM7ITFRLTUSUGLP7CA27A5CNFSM4ICJ2NKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G64E4GA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZUYIHETC6A5O6XN434TP7CA27ANCNFSM4ICJ2NKA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZWIISCQYZQZTB5WXLP7CA27A5CNFSM4ICJ2NKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G64E4GA.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/791?email_source=notifications\u0026email_token=ADLPZU5PEJM7ITFRLTUSUGLP7CA27A5CNFSM4ICJ2NKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G64E4GA",
"url": "https://github.com/rpm-software-management/rpm/issues/791?email_source=notifications\u0026email_token=ADLPZU5PEJM7ITFRLTUSUGLP7CA27A5CNFSM4ICJ2NKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G64E4GA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>