public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/binutils] rawhide: Do not build cross binutils for RHEL.
@ 2026-09-17  8:15 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2026-09-17  8:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/binutils
Branch : rawhide
Commit : 209eb7c5ba6b34f5962c15768b33255da1bc3f6f
Author : Nick Clifton <nickc@redhat.com>
Date   : 2026-09-17T09:15:13+01:00
Stats  : +30/-14 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/binutils/c/209eb7c5ba6b34f5962c15768b33255da1bc3f6f?branch=rawhide

Log:
Do not build cross binutils for RHEL.

---
diff --git a/binutils.spec b/binutils.spec
index e062ce5..0503f07 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -7,7 +7,7 @@ Name: binutils%{?_with_debug:-debug}
 # The variable %%{source} (see below) should be set to indicate which of these
 # origins is being used.
 Version: 2.47.50
-Release: 9%{?dist}
+Release: 10%{?dist}
 License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND BSD-3-Clause AND GFDL-1.3-or-later AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later
 URL: https://sourceware.org/binutils
 
@@ -156,24 +156,29 @@ URL: https://sourceware.org/binutils
 # Default: Use the libztsd-devel library.
 %bcond zstd 1
 
-# For newer versions of RHEL and Fedora (ie RHEL-11+ and F46+) we build
-# cross-targeted versions of the binutils for the "major" architectures
-# (ie AArch64, PowerPC, S390X and X86_64).  Cross target builds for other
-# architectures are handled by the cross-binutils package.  There are
-# a couple of differences between the two packages however:
+# For newer versions of Fedora (ie F46+) we build cross-targeted versions of
+# the binutils for the "major" architectures (ie AArch64, PowerPC, S390X and
+# X86_64).  Cross target builds for other architectures are handled by the
+# cross-binutils package.  There are a couple of differences between the two
+# packages however:
 #
-# 1) The rpm names.  The binutils package builds rpms called
+# 1) The rpm names.  The binutils package builds rpms called:
 #       cross-binutils-<target_arch>-NVR.<host_arch>.rpm
-#    whereas the cross-binutils package creates rpms called
+#    whereas the cross-binutils package creates rpms called:
 #       binutils-<target_arch>-NVR.<host_arch>.rpm
 #
-# 2) The executable names.  The binutils package uses
-#     "<target_arch>-redhat-linux" as a prefix for executables, whereas
-#     the cross-binutils packge uses "<target_arch>=linux-gnu".
-#  eg:
+# 2) The executable names.  The binutils package uses:
+#        <target_arch>-redhat-linux
+#     as a prefix for executables, whereas the cross-binutils packge uses:
+#        <target_arch>=linux-gnu
+#
+#  eg: cross-binutils-s390x.rpm (from this project) contains:
+#
 #      /usr/bin/s390x-redhat-linux-readelf
 #      /usr/s390x-redhat-linux/bin/readelf
-#  vs:
+#
+#  whilst binutils-s390x.rpm (frpm the cross-binutils project) contains:
+#
 #      /usr/bin/s390x-linux-gnu-readelf
 #      /usr/s390x-linux-gnu/bin/readelf
 #
@@ -182,10 +187,18 @@ URL: https://sourceware.org/binutils
 # "ppc64le".
 
 %if 0%{?rhel} >= 11
-%bcond crossbuilds 1
+# The RHEL kernel team uses cross compilers, but they are a special case and
+# builds for them are handled separately.  In general we do not want to
+# expose cross-compiling capabilities to ordinary RHEL users as this is
+# not something that is supported by Red Hat.
+%bcond crossbuilds 0
 %elif 0%{?fedora} >= 46
+# Fedora users on the other hand do get cross compilation capability
+# by default.
 %bcond crossbuilds 1
 %else
+# Before F46 cross binutils builds were handled exclusively by the
+# cross-binutils package.
 %bcond crossbuilds 0
 %endif
 
@@ -1671,6 +1684,9 @@ exit 0
 
 #----------------------------------------------------------------------------
 %changelog
+* Wed Sep 16 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-10
+- Do not build cross binutils for RHEL.
+
 * Tue Sep 15 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-9
 - Add Provides: binutils-<arch> for cross binutils sub-packages, and update Obsolete targets.
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-17  8:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17  8:15 [rpms/binutils] rawhide: Do not build cross binutils for RHEL Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox