[Rpm-maint] [rpm-software-management/rpm] %_build_cpu is untranslated in macros file (#791)
Michael Schroeder
notifications at github.com
Fri Jul 12 13:25:03 UTC 2019
Commit d53499d1565dd7ba6d93939e552cc604b26dccd7 makes rpmbuild use %_build_cpu instead of %_target_cpu for valid architecture testing if the target_cpu is noarch.
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
```
ExclusiveArch: ppc64le
```
to work, it currently returns `error: Architecture is not included: powerpc64le`.
There are two ways to fix this:
1) 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.
2) We can change the rpmReadConfigFiles() code so that it adds a _build_cpu_translated macro and use that in the valid arch check.
Which solution do you prefer?
--
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/791
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190712/b311f7d0/attachment.html>
More information about the Rpm-maint
mailing list