[packages/crossppc-binutils] Up to 2.46

arekm arekm at pld-linux.org
Tue Apr 7 18:24:47 CEST 2026


commit ca278d98fd76d6adad2abc95eda6e1a048e500c3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Apr 7 16:52:03 2026 +0200

    Up to 2.46

 crossppc-binutils.spec | 112 ++++++++++++++++---------------------------------
 1 file changed, 35 insertions(+), 77 deletions(-)
---
diff --git a/crossppc-binutils.spec b/crossppc-binutils.spec
index d2ea559..e2c7e74 100644
--- a/crossppc-binutils.spec
+++ b/crossppc-binutils.spec
@@ -1,5 +1,3 @@
-#
-
 Summary:	Cross PPC GNU binary utility development utilities - binutils
 Summary(es.UTF-8):	Utilitarios para desarrollo de binarios de la GNU - PPC binutils
 Summary(fr.UTF-8):	Utilitaires de développement binaire de GNU - PPC binutils
@@ -7,37 +5,21 @@ Summary(pl.UTF-8):	Skrośne narzędzia programistyczne GNU dla PPC - binutils
 Summary(pt_BR.UTF-8):	Utilitários para desenvolvimento de binários da GNU - PPC binutils
 Summary(tr.UTF-8):	GNU geliştirme araçları - PPC binutils
 Name:		crossppc-binutils
-Version:	2.20.51.0.3
-Release:	2
+Version:	2.46
+Release:	1
 License:	GPL v3+
 Group:		Development/Tools
-Source0:	ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
-# Source0-md5:	4d5cdcfa054e697ba92a37f55b125080
-Source1:	http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/binutils-non-english-man-pages.tar.bz2
-# Source1-md5:	a717d9707ec77d82acb6ec9078c472d6
-Patch0:		binutils-gasp.patch
-Patch1:		binutils-info.patch
-Patch2:		binutils-libtool-relink.patch
-Patch3:		binutils-pt_pax_flags.patch
-Patch5:		binutils-flex.patch
-Patch6:		binutils-discarded.patch
-Patch7:		binutils-absolute-gnu_debuglink-path.patch
-Patch8:		binutils-libtool-m.patch
-Patch9:		binutils-build-id.patch
-Patch10:	binutils-tooldir.patch
+Source0:	https://ftp.gnu.org/gnu/binutils/binutils-with-gold-%{version}.tar.lz
+# Source0-md5:	e221b6201b7234e3e7733e878ff476c4
 URL:		http://sources.redhat.com/binutils/
-BuildRequires:	autoconf >= 2.64
-BuildRequires:	automake >= 1:1.11
+BuildRequires:	automake
+BuildRequires:	bash
 BuildRequires:	bison
 BuildRequires:	flex
-BuildRequires:	gettext-tools
-BuildRequires:	libstdc++-devel >= 6:4.0-1
-BuildRequires:	perl-tools-pod
-%ifarch sparc sparc32
-BuildRequires:	sparc32
-%endif
-BuildRequires:	texinfo >= 4.2
-Conflicts:	gcc-c++ < 5:3.3
+BuildRequires:	lzip
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xxHash-devel
+BuildRequires:	zlib-devel
 ExcludeArch:	ppc
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -69,71 +51,47 @@ programów i bibliotek.
 Ten pakiet zawiera wersję skrośną generującą kod dla PPC.
 
 %prep
-%setup -q -n binutils-%{version}
-%patch -P0 -p1
-%patch -P1 -p1
-%patch -P2 -p1
-%{?with_pax:%patch3 -p1}
-%patch -P5 -p1
-%patch -P6 -p1
-%patch -P7 -p1
-%patch -P8 -p1
-%patch -P9 -p1
-%patch -P10 -p1
-
-# file contains hacks for ac 2.59 only
-rm config/override.m4
+%setup -q -n binutils-with-gold-%{version}
 
 %build
-%{__aclocal}
-%{__autoconf}
-
-# non-standard regeneration (needed because of gasp patch)
-# AM_BINUTILS_WARNINGS in bfd/warning.m4, ZW_GNU_GETTEXT_SISTER_DIR in config/gettext-sister.m4
-for dir in gas bfd; do
-	cd $dir || exit 1
-	%{__aclocal} -I .. -I ../config -I ../bfd
-	%{__automake} Makefile
-	%{__automake} doc/Makefile
-	%{__autoconf}
-	cd ..
-done
-
-cp -f /usr/share/automake/config.* .
 
-CFLAGS="%{rpmcflags}"; export CFLAGS
-CC="%{__cc}"; export CC
-%ifarch sparc
-sparc32 \
-%endif
-./configure %{_target_platform} \
-	--disable-debug \
-	--disable-werror \
-	--enable-build-warnings=,-Wno-missing-prototypes \
+# ldscripts won't be generated properly if SHELL is not bash...
+CFLAGS="%{rpmcflags} -fno-strict-aliasing" \
+LDFLAGS="%{rpmldflags}" \
+CONFIG_SHELL="/bin/bash" \
+./configure \
 	--disable-shared \
+	--disable-silent-rules \
 	--disable-nls \
 	--prefix=%{_prefix} \
 	--libdir=%{_libdir} \
-	--infodir=%{_infodir} \
 	--mandir=%{_mandir} \
-	--with-tooldir=%{arch} \
-	--enable-gold=both \
-	--target=%{target}
-
-%{__make}
+	--infodir=%{_infodir} \
+	--target=%{target} \
+	--with-sysroot=%{_libdir}/%{target} \
+	--with-debuginfod=no \
+	--with-msgpack=no \
+	--with-system-zlib \
+	--with-zstd=no \
+	--disable-jansson
+
+%{__make} all \
+	tooldir=%{_prefix} \
+	EXEEXT=""
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_prefix}
 
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
-
-rm $RPM_BUILD_ROOT%{_infodir}/standards.info*
+	prefix=$RPM_BUILD_ROOT%{_prefix} \
+	mandir=$RPM_BUILD_ROOT%{_mandir} \
+	infodir=$RPM_BUILD_ROOT%{_infodir} \
+	libdir=$RPM_BUILD_ROOT%{_libdir}
 
 # remove these man pages unless we cross-build for win*/netware platforms.
 # however, this should be done in Makefiles.
-rm $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
+rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{*dlltool,*nlmconv,*windres}.1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -146,5 +104,5 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{arch}/bin
 %attr(755,root,root) %{arch}/bin/*
 %dir %{arch}/lib
-%{arch}/lib/ldscripts
+%dir %{arch}/lib/*
 %{_mandir}/man?/%{target}-*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossppc-binutils.git/commitdiff/df2d1cdd1ba204262b5b5137bb672373fc011042



More information about the pld-cvs-commit mailing list