public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/binutils] rawhide: Rename cross-binutils-x86_64 to cross-binutils-i686 when built on an i686 host.
Date: Sat, 10 Oct 2026 07:05:18 GMT [thread overview]
Message-ID: <179161591896.1.3143605692532603824.rpms-binutils-96abea9d05a4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/binutils
Branch : rawhide
Commit : 96abea9d05a4e30fdc09039dff4baca60f9955a6
Author : Nick Clifton <nickc@redhat.com>
Date : 2026-10-10T08:04:55+01:00
Stats : +77/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/binutils/c/96abea9d05a4e30fdc09039dff4baca60f9955a6?branch=rawhide
Log:
Rename cross-binutils-x86_64 to cross-binutils-i686 when built on an i686 host.
---
diff --git a/binutils.spec b/binutils.spec
index d4ab524..058577b 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: 14%{?dist}
+Release: 15%{?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
@@ -595,7 +595,7 @@ of Linux applications.
%global linux_system linux-gnu
# The list of cross targets to build.
-%global cross_targets aarch64-%{redhat_system} ppc64le-%{redhat_system} s390x-%{redhat_system} x86_64-%{redhat_system}
+%global cross_targets aarch64-%{redhat_system} ppc64le-%{redhat_system} s390x-%{redhat_system} x86_64-%{redhat_system} i686-%{redhat_system}
%package -n cross-binutils-aarch64
Summary: Cross targeted AArch64 binutils for developer use. Not intended for production.
@@ -663,6 +663,31 @@ BuildRequires: autoconf automake perl sed coreutils make gcc findutils gcc-c++
This package contains a S390X cross targeted version of the binutils for
use by developers. It is NOT INTENDED FOR PRODUCTION use.
+%ifarch %{ix86}
+%package -n cross-binutils-i686
+Summary: Cross targeted i686 binutils for developer use. Not intended for production.
+Provides: cross-binutils-i686 = %{version}-%{release}
+Provides: binutils-i686-linux-gnu = %{version}-%{release}
+Obsoletes: binutils-i686-linux-gnu < %{version}-%{release}
+Requires: coreutils
+%if %{with systemzlib}
+Requires: zlib-devel
+%endif
+BuildRequires: autoconf automake perl sed coreutils make gcc findutils gcc-c++
+
+# We build host == target versions of the cross binutils as this simplifies
+# the build mechanisms of other packages. Ie they can use "i686-linux-gnu-ld"
+# in their build machinery and not have to worry about whether they are building
+# natively or in a cross environment.
+# Note however that for x86 hosts we want to make sure that we do not build the
+# i686 cross binutils as these will be 32-bit only.
+ExcludeArch: x86_64-%{linux_system} x86_64-%{redhat_system}
+
+%description -n cross-binutils-i686
+This package contains a i686 cross targeted version of the binutils for
+use by developers. It is NOT INTENDED FOR PRODUCTION use.
+
+%else
%package -n cross-binutils-x86_64
Summary: Cross targeted X86_64 binutils for developer use. Not intended for production.
@@ -679,11 +704,14 @@ BuildRequires: autoconf automake perl sed coreutils make gcc findutils gcc-c++
# the build mechanisms of other packages. Ie they can use "x86_64-linux-gnu-ld"
# in their build machinery and not have to worry about whether they are building
# natively or in a cross environment.
-# ExcludeArch: x86_64-%%{linux_system} x86_64-%%{redhat_system} i686-%%{linux_system} i686-%%{redhat_system}
+# Note however that for x86 hosts we want to make sure that we do not build the
+# i686 cross binutils as these will be 32-bit only.
+ExcludeArch: i686-%{linux_system} i686-%{redhat_system}
%description -n cross-binutils-x86_64
This package contains a X86_64 cross targeted version of the binutils for
use by developers. It is NOT INTENDED FOR PRODUCTION use.
+%endif
%endif
@@ -1460,6 +1488,19 @@ done
popd > /dev/null
exit 0
+%ifarch %{ix86}
+%post -n cross-binutils-i686
+ln -s %{_prefix}/i686-%{redhat_system} %{_prefix}/i686-%{linux_system}
+
+pushd %{_bindir} > /dev/null
+for x in i686-%{redhat_system}-*; do
+ ln -s $x ${x/%{redhat_system}/%{linux_system}};
+done
+popd > /dev/null
+exit 0
+
+%else
+
%post -n cross-binutils-x86_64
ln -s %{_prefix}/x86_64-%{redhat_system} %{_prefix}/x86_64-%{linux_system}
@@ -1469,6 +1510,7 @@ for x in x86_64-%{redhat_system}-*; do
done
popd > /dev/null
exit 0
+%endif
%endif
@@ -1550,6 +1592,23 @@ done
popd > /dev/null
exit 0
+%ifarch %{ix86}
+%postun -n cross-binutils-i686
+if [ -L %{_prefix}/i686-%{linux_system} ] ; then
+ %__rm %{_prefix}/i686-%{linux_system}
+fi
+
+pushd %{_bindir} > /dev/null
+for x in i686-%{linux_system}-*; do
+ if [ -L $x ] ; then
+ %__rm $x
+ fi
+done
+popd > /dev/null
+exit 0
+
+%else
+
%postun -n cross-binutils-x86_64
if [ -L %{_prefix}/x86_64-%{linux_system} ] ; then
%__rm %{_prefix}/x86_64-%{linux_system}
@@ -1565,6 +1624,8 @@ popd > /dev/null
exit 0
%endif
+
+%endif
#----------------------------------------------------------------------------
%files -f build-%{_target_platform}/binutils.lang
@@ -1690,14 +1751,27 @@ exit 0
/usr/s390x-%{redhat_system}/
/usr/bin/s390x-%{redhat_system}-*
+%ifarch %{ix86}
+
+%files -n cross-binutils-i686
+/usr/i686-%{redhat_system}/
+/usr/bin/i686-%{redhat_system}-*
+
+%else
+
%files -n cross-binutils-x86_64
/usr/x86_64-%{redhat_system}/
/usr/bin/x86_64-%{redhat_system}-*
%endif
+%endif
+
#----------------------------------------------------------------------------
%changelog
+* Sat Oct 10 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-15
+- Rename cross-binutils-x86_64 to cross-binutils-i686 when built on an i686 host.
+
* Thu Oct 08 2026 Nick Clifton <nickc@redhat.com> - 2.47.50-14
- Rebase to commit 2c4ccb8103d
reply other threads:[~2026-10-10 7:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179161591896.1.3143605692532603824.rpms-binutils-96abea9d05a4@fedoraproject.org \
--to=nickc@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox