fedora-copr / copr

RPM build system - upstream for https://copr.fedorainfracloud.org/
115 stars 58 forks source link

COPR appears to handle specfiles with multiple ExclusiveArch tags incorrectly #3114

Open kb-1000 opened 7 months ago

kb-1000 commented 7 months ago

See https://copr.fedorainfracloud.org/coprs/kb1000/renderdoc/build/6941552/ and https://copr.fedorainfracloud.org/coprs/kb1000/renderdoc/build/6942494/ The first build used

ExclusiveArch: x86_64
ExclusiveArch: aarch64

while the second build used

ExclusiveArch: x86_64 aarch64

If I try building the SRPM I generated from this spec locally using mock, it will treat both the same and let me build it on x86_64 and aarch64, but not on ppc64le. COPR however ignores the second tag and only builds it on x86_64 if I don't write both in the same line.

praiskup commented 7 months ago

Thank you for the report. Yes, I think only the first occurrence of ExclusiveArch is taken into account ATM.