[Rpm-maint] [rpm-software-management/rpm] "setarch i386 rpmbuild ... " no longer working for building 32-bit packages on x86_64 host (Issue #2850)

Michal Domonkos notifications at github.com
Wed Jan 24 10:24:19 UTC 2024


This is caused by the [x86-64 architecture levels patch](https://github.com/rpm-software-management/rpm/commit/cd46c1704ccd8eeb9b600729a0a1c8738b66b847) shipped in 4.19.0. When determining the target architecture internally in `rpmPlatform()`, we use `uname(2)` to obtain the system architecture, however with the above patch, it gets overridden from `i386` (when using `setarch(8)`) to the respective `x86_64` level that's detected.

As a workaround, you can use `rpmbuild --target i386` which actually overrides native architecture detection as expected.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2850#issuecomment-1907837201
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2850/1907837201 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240124/2eaf593d/attachment.html>


More information about the Rpm-maint mailing list