public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/golang-x-image] rawhide: Add __requires_exclude
@ 2026-09-25 18:08
0 siblings, 0 replies; only message in thread
From: @ 2026-09-25 18:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/golang-x-image
Branch : rawhide
Commit : 9a8ad374ca467f9c10052c98299899e243af9d96
Author : Álex Sáez <asm@redhat.com>
Date : 2026-09-25T19:49:57+02:00
Stats : +21/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/golang-x-image/c/9a8ad374ca467f9c10052c98299899e243af9d96?branch=rawhide
Log:
Add __requires_exclude
Since v0.46.0, vector/acc_amd64.go imports golang.org/x/sys/cpu for CPU
feature detection but it's amd64-only:
https://github.com/golang/image/commit/315273a91ff5
This cause the noarch package to be built differently on different
architectures and Koji emits the folowing message:
BuildError: The following noarch package built differently on different architectures: golang-x-image-devel-0.46.0-1.fc46.noarch.rpm rpmdiff output was:
added REQUIRES golang(golang.org/x/sys/cpu)
The solution is to exclude it from auto-requires and re-add it
unconditionally. Reference:
https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org/message/JT6QKHFRICFTJTUBRDK4JA6MZ36QTFAZ/
---
diff --git a/golang-x-image.spec b/golang-x-image.spec
index 4327b29..ca9e566 100644
--- a/golang-x-image.spec
+++ b/golang-x-image.spec
@@ -73,6 +73,27 @@ exposed via standard OpenType features in the main font family.}
%global common_description %{expand:
This package holds supplementary Go image libraries.}
+# Since v0.46.0, vector/acc_amd64.go imports golang.org/x/sys/cpu for CPU
+# feature detection but it's amd64-only:
+#
+# https://github.com/golang/image/commit/315273a91ff5
+#
+# This cause the noarch package to be built differently on different
+# architectures and Koji emits the folowing message:
+#
+# BuildError: The following noarch package built differently on different architectures: golang-x-image-devel-0.46.0-1.fc46.noarch.rpm rpmdiff output was:
+# added REQUIRES golang(golang.org/x/sys/cpu)
+#
+# The solution is to exclude it from auto-requires and re-add it
+# unconditionally. Reference:
+#
+# https://lists.fedoraproject.org/archives/list/golang@lists.fedoraproject.org/message/JT6QKHFRICFTJTUBRDK4JA6MZ36QTFAZ/
+#
+%global __requires_exclude golang\\(golang.org/x/sys/cpu\\)
+%global godevelheader %{expand:
+Requires: golang(golang.org/x/sys/cpu)
+}
+
%global golicenses LICENSE PATENTS
%global godocs example AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-25 18:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 18:08 [rpms/golang-x-image] rawhide: Add __requires_exclude
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox