[Rpm-maint] [rpm-software-management/rpm] Source RPMs should have ARCH set to src (Issue #2601)

Neil Hanlon notifications at github.com
Tue Aug 8 11:05:45 UTC 2023


> Actually, srpm are _almost_ arch-independent. I know of two issues: the ARCH tag, and BuildRequires. But Fedora packaging guidelines actually forbid archful BuildRequires (https://docs.fedoraproject.org/en-US/packaging-guidelines/#_buildrequires_and_isa, "SRPMs need to be architecture independent"). It is true that sometimes we get slightly different BuildRequires on different architectures, but in fact nobody wants this, this is just an unfortunate side effect of how the srpm is constructed. What we _want_ is srpms which are arch-independent and can be used to build the rpm on any other architecture. Is there some other dependency on the arch?

I have a similar question. I spent some time yesterday attempting to hunt down what build forge depends on this (undocumented) dependency on src RPMs being arch-dependent, and was not able to determine where any of Koji/OBS/Peridot/ALBS/mock/rpmbuild depend on the assumption that the srpm is built on a specific arch.

I am genuinely interested in learning more about this requirement as I am struggling to understand what components depend on a specific arch for srpms.

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

Message ID: <rpm-software-management/rpm/issues/2601/1669405911 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230808/f2f4c0af/attachment.html>


More information about the Rpm-maint mailing list