[packages/binutils] up to 2.47; dropped gold (upstream plans to fully drop it)
arekm
arekm at pld-linux.org
Tue Aug 18 10:54:25 CEST 2026
commit 52a4ed48ab88dec42da30aa895c592e82433bd82
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Aug 18 10:53:36 2026 +0200
up to 2.47; dropped gold (upstream plans to fully drop it)
binutils-release-not-development.patch | 12 +++++++++++
binutils-sanity-check.patch | 10 ++++-----
binutils.spec | 38 +++++++++-------------------------
3 files changed, 27 insertions(+), 33 deletions(-)
---
diff --git a/binutils.spec b/binutils.spec
index 7872fe2..f272a39 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -4,17 +4,12 @@
# define addtargets x,y,z # build with additional targets x,y,z (e.g. x86_64-linux)
# http://sourceware.org/ml/binutils/2008-03/msg00162.html
%bcond_with pax # without PaX flags (for upstream bugreports)
-%bcond_without gold # don't build gold (no C++ dependencies)
-%bcond_without default_bfd # default ld.bfd instead of gold
%bcond_without debuginfod # debuginfo lokups with debuginfod
%bcond_without gprofng # gprofng
%bcond_without jansson # Package Metadata embedding support
%bcond_without msgpack # msgpack support
%bcond_with tests # check target
-%ifnarch %{ix86} %{x8664} x32 aarch64 %{arm}
-%undefine with_gold
-%endif
%ifnarch %{ix86} %{x8664} aarch64
%undefine with_gprofng 1
%endif
@@ -29,13 +24,13 @@ Summary(ru.UTF-8): Набор инструментов GNU для построе
Summary(tr.UTF-8): GNU geliştirme araçları
Summary(uk.UTF-8): Набір інструментів GNU для побудови виконуваних програм
Name: binutils
-Version: 2.46.1
+Version: 2.47
Release: 1
Epoch: 4
License: GPL v3+
Group: Development/Tools
-Source0: https://ftp.gnu.org/gnu/binutils/%{name}-with-gold-%{version}.tar.lz
-# Source0-md5: 5a366383473e1759d7a345e455833bc5
+Source0: https://ftp.gnu.org/gnu/binutils/%{name}-%{version}.tar.lz
+# Source0-md5: 98c7400eab9aca61fec160afe3b776c9
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
# Source1-md5: a717d9707ec77d82acb6ec9078c472d6
Patch1: %{name}-info.patch
@@ -46,6 +41,9 @@ Patch6: %{name}-absolute-gnu_debuglink-path.patch
Patch7: %{name}-libtool-m.patch
Patch9: %{name}-tooldir.patch
Patch10: %{name}-sanity-check.patch
+# upstream shipped the 2.47 release tarball with development.sh still in
+# development mode: appends a date to the soname and forces -Werror
+Patch11: %{name}-release-not-development.patch
URL: http://www.sourceware.org/binutils/
BuildRequires: autoconf >= 2.69
BuildRequires: automake >= 1:1.11
@@ -54,7 +52,7 @@ BuildRequires: bison
BuildRequires: flex
BuildRequires: gettext-tools
%{?with_jansson:BuildRequires: jansson-devel}
-%{?with_gold:BuildRequires: libstdc++-devel >= 6:4.8.1}
+%{?with_gprofng:BuildRequires: libstdc++-devel >= 6:4.8.1}
%{?with_tests:BuildRequires: libstdc++-static >= 6:4.8.1}
BuildRequires: lzip
%{?with_msgpack:BuildRequires: msgpack-devel}
@@ -222,7 +220,7 @@ GNU Next Generation profiler static libraries.
Biblioteki statyczne narzędzia profilującego GNU Next Generation.
%prep
-%setup -q -n %{name}-with-gold-%{version}
+%setup -q
%patch -P1 -p1
%patch -P2 -p1
%{?with_pax:%patch -P3 -p1}
@@ -231,6 +229,7 @@ Biblioteki statyczne narzędzia profilującego GNU Next Generation.
%patch -P7 -p1
%patch -P9 -p1
%patch -P10 -p1
+%patch -P11 -p1
%{__sed} -i -e '1s,.*env perl,#!%{__perl},' gprofng/gp-display-html/gp-display-html.in
@@ -309,9 +308,6 @@ sparc32 \
%{!?with_allarchs:`[ -n "${TARGETS}" ] && echo "--enable-targets=${TARGETS}"`} \
--with-tooldir=%{_prefix} \
--with-system-zlib \
-%if %{with gold}
- --enable-gold%{!?with_default_bfd:=default} --enable-ld%{?with_default_bfd:=default} \
-%endif
%{__with_without msgpack} \
%{__enable_disable jansson} \
%{__with_without debuginfod}
@@ -347,23 +343,14 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%{__rm} $RPM_BUILD_ROOT%{_libdir}/gprofng/libgp-collectorAPI.{a,la}
%endif
-%if %{with gold}
-install -d gold-doc
-cp -p gold/{README,ChangeLog,TODO} gold-doc
-%endif
-
%find_lang bfd
%find_lang binutils
%find_lang gas
%find_lang gprof
-touch ld.lang gold.lang
%find_lang ld
-%if %{with gold}
-%find_lang gold
-%endif
%find_lang opcodes
cat bfd.lang opcodes.lang > %{name}-libs.lang
-cat gas.lang gprof.lang ld.lang gold.lang >> %{name}.lang
+cat gas.lang gprof.lang ld.lang >> %{name}.lang
%clean
rm -rf $RPM_BUILD_ROOT
@@ -395,7 +382,6 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README
-%{?with_gold:%doc gold-doc}
%attr(755,root,root) %{_bindir}/addr2line
%attr(755,root,root) %{_bindir}/ar
%attr(755,root,root) %{_bindir}/as
@@ -404,10 +390,6 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/gprof
%attr(755,root,root) %{_bindir}/ld
%attr(755,root,root) %{_bindir}/ld.bfd
-%if %{with gold}
-%attr(755,root,root) %{_bindir}/ld.gold
-%attr(755,root,root) %{_bindir}/dwp
-%endif
%attr(755,root,root) %{_bindir}/nm
%attr(755,root,root) %{_bindir}/objcopy
%attr(755,root,root) %{_bindir}/objdump
diff --git a/binutils-release-not-development.patch b/binutils-release-not-development.patch
new file mode 100644
index 0000000..408e76a
--- /dev/null
+++ b/binutils-release-not-development.patch
@@ -0,0 +1,12 @@
+--- binutils-2.47/bfd/development.sh.orig
++++ binutils-2.47/bfd/development.sh
+@@ -16,7 +16,7 @@
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ # Controls whether to enable development-mode features by default.
+-development=true
++development=false
+
+ # Indicate whether this is a release branch.
+-experimental=true
++experimental=false
diff --git a/binutils-sanity-check.patch b/binutils-sanity-check.patch
index 479871d..8363ef7 100644
--- a/binutils-sanity-check.patch
+++ b/binutils-sanity-check.patch
@@ -1,6 +1,6 @@
---- binutils-2.22.52.0.4/bfd/bfd-in2.h.orig 2012-06-14 16:29:22.000000000 +0200
-+++ binutils-2.22.52.0.4/bfd/bfd-in2.h 2012-06-14 20:26:46.835857525 +0200
-@@ -32,11 +32,6 @@
+--- binutils-2.47/bfd/bfd-in2.h.orig
++++ binutils-2.47/bfd/bfd-in2.h
+@@ -30,11 +30,6 @@
#ifndef __BFD_H_SEEN__
#define __BFD_H_SEEN__
@@ -12,10 +12,10 @@
#ifdef __cplusplus
extern "C" {
#endif
-@@ -39,6 +39,7 @@
- #include <stdarg.h>
+@@ -49,6 +44,7 @@
#include <string.h>
#include <sys/stat.h>
+ #include <inttypes.h>
+#include <stddef.h>
#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/binutils.git/commitdiff/52a4ed48ab88dec42da30aa895c592e82433bd82
More information about the pld-cvs-commit
mailing list