Hello community,
here is the log from the commit of package binutils for openSUSE:Factory checked in at 2012-02-17 12:20:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/binutils (Old)
and /work/SRC/openSUSE:Factory/.binutils.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "binutils", Maintainer is "matz@suse.com"
Changes:
--------
--- /work/SRC/openSUSE:Factory/binutils/binutils.changes 2012-02-03 10:22:03.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.binutils.new/binutils.changes 2012-02-17 12:20:38.000000000 +0100
@@ -1,0 +2,14 @@
+Wed Feb 15 11:32:14 UTC 2012 - rguenther@suse.com
+
+- Drop the new spec files again, instead move the cross-$arch-binutils
+ contents to /usr, away from /opt.
+
+-------------------------------------------------------------------
+Tue Feb 14 17:53:08 UTC 2012 - max@suse.com
+
+- Add spec files that build variants for arm and avr that install
+ under /usr rather than /opt/cross.
+- Add avr-binutils-relocs.patch to fix a crash in avr-ld.
+ http://sourceware.org/bugzilla/show_bug.cgi?id=12161
+
+-------------------------------------------------------------------
cross-alpha-binutils.changes: same change
cross-arm-binutils.changes: same change
New Changes file:
--- /dev/null 2010-08-26 16:28:41.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.binutils.new/cross-avr-binutils.changes 2012-02-17 12:20:38.000000000 +0100
@@ -0,0 +1,2372 @@
+-------------------------------------------------------------------
+Wed Feb 15 11:32:14 UTC 2012 - rguenther@suse.com
+
+- Drop the new spec files again, instead move the cross-$arch-binutils
+ contents to /usr, away from /opt.
+
+-------------------------------------------------------------------
+Tue Feb 14 17:53:08 UTC 2012 - max@suse.com
+
+- Add spec files that build variants for arm and avr that install
+ under /usr rather than /opt/cross.
+- Add avr-binutils-relocs.patch to fix a crash in avr-ld.
+ http://sourceware.org/bugzilla/show_bug.cgi?id=12161
+
+-------------------------------------------------------------------
+Thu Jan 26 10:36:33 UTC 2012 - rguenther@suse.com
+
+- Fix package licenses to follow SPDX format, adjust to reality.
+
+-------------------------------------------------------------------
+Wed Jan 25 14:12:40 UTC 2012 - rguenther@suse.com
+
+- Amend patch to fix arm unwind table corruption. [bso#13449]
+
+-------------------------------------------------------------------
+Wed Jan 4 12:31:02 UTC 2012 - rguenther@suse.com
+
+- Add patch to fix arm unwind table corruption. [bso#13449]
+- Canonicalize arm targets.
+- Enable gold for arm.
+
+-------------------------------------------------------------------
+Tue Jan 3 14:42:59 UTC 2012 - rguenther@suse.com
+
+- Add patch to fix build-id issues. [bso#12451]
+
+-------------------------------------------------------------------
+Tue Dec 6 10:48:16 UTC 2011 - rguenther@suse.com
+
+- Update to final binutils 2.22 release.
+
+-------------------------------------------------------------------
+Wed Nov 2 09:27:38 UTC 2011 - rguenther@suse.com
+
+- Update to binutils-2_22-branch head.
+ * Adds support for LDPT_GET_SYMBOLS_V2.
+ * Drop patches that have been applied upstream.
+
+-------------------------------------------------------------------
+Fri Sep 30 11:25:38 UTC 2011 - tserong@suse.com
+
+- Fix --gc-sections failure with symbol versioning [bso#13195]
+
+-------------------------------------------------------------------
+Wed Sep 28 13:08:07 UTC 2011 - rguenther@suse.com
+
+- Update to binutils-2_22-branch head.
+ * Drop patches that have been applied upstream.
+ * Drop patches that no longer apply.
+
+-------------------------------------------------------------------
+Thu Sep 22 09:59:07 UTC 2011 - adrian@suse.de
+
+- use -gnueabi extension to switch to new abi for arm
+
+-------------------------------------------------------------------
+Thu Sep 22 06:54:34 CEST 2011 - dmueller@suse.de
+
+- Add support for arm-*-gnueabihf targets (PR ld/12643)
+
+-------------------------------------------------------------------
+Wed Sep 21 21:44:12 UTC 2011 - adrian@suse.de
+
+- add arm targets
+
+-------------------------------------------------------------------
+Tue Aug 23 11:39:25 UTC 2011 - rguenther@novell.com
+
+- Fix XLC object linker complaints. [bnc#713504]
+
+-------------------------------------------------------------------
+Sun Aug 21 14:14:41 UTC 2011 - aj@suse.de
+
+- Make --no-copy-dt-needed-entries the default for ld.
+
+-------------------------------------------------------------------
+Tue Jul 12 08:54:56 UTC 2011 - rguenther@novell.com
+
+- Add patch for bogus executable stack setting with -flto. [bso#12982]
+
+-------------------------------------------------------------------
+Mon Jul 11 08:42:13 UTC 2011 - rguenther@novell.com
+
+- BuildRequire glibc-devel-static to fix static linking tests.
+
+-------------------------------------------------------------------
+Tue Jul 5 12:42:10 UTC 2011 - saschpe@suse.de
+
+- Add patch to fix a readelf endless loop bug. [bso#12855]
+
+-------------------------------------------------------------------
+Tue Jun 28 08:12:12 UTC 2011 - rguenther@novell.com
+
+- Update to binutils 2.21.1 release.
+ * Add --interleave-width option to objcopy to allowing copying a range
+ of bytes from the input to the output with the --interleave option.
+ * Add support for the TMS320C6000 (TI C6X) processor family.
+ * Readelf can now display ARM unwind tables (.ARM.exidx / .ARM.extab)
+ using the -u / --unwind option.
+ * Add --dyn-syms to readelf to dump dynamic symbol table.
+ * A new tool - elfedit - has been added to directly manipulate ELF
+ format binaries.
+ * Add to dlltool .def file feature of aliasing PE internal symbol name
+ by '== <ID>' option.
+ * Add a new command line option -a / --addresses to addr2line to display
+ the address before function name or source filename.
+ * Add a new command line option -p / --pretty-print to addr2line to have
+ a more human readable output.
+ * The hppa/som targets can now be compiled on any host.
+- Add dependency to opcodes from gold.
+
+-------------------------------------------------------------------
+Fri Jun 17 15:23:21 CEST 2011 - matz@suse.de
+
+- Add support for x86_64-pep target [needed for Xen fate #311376]
+
+-------------------------------------------------------------------
+Thu Jun 9 14:20:07 UTC 2011 - matz@novell.com
+
+- Add patch to support AMD Bulldozer v2 [fate #312149]
+
+-------------------------------------------------------------------
+Tue Jun 7 11:03:12 UTC 2011 - rguenther@novell.com
+
+- Update to binutils-2_21-branch head. [bnc#698346]
+
+-------------------------------------------------------------------
+Fri May 27 13:46:53 UTC 2011 - rguenther@novell.com
+
+- Disable cross-sh4-binutils.
+
+-------------------------------------------------------------------
+Wed May 4 08:47:15 UTC 2011 - rguenther@novell.com
+
+- Update to binutils-2_21-branch head. [bnc#691290]
+
+-------------------------------------------------------------------
+Tue Apr 19 12:43:11 UTC 2011 - rguenther@novell.com
+
+- Update to binutils-2_21-branch head. [fate#311554] [fate#311972]
+
+-------------------------------------------------------------------
+Mon Jan 10 16:51:10 UTC 2011 - rguenther@novell.com
+
+- Update to binutils 2.21.
+ * linker plugin support
+ * AMD Bulldozer enablement
+- Disable package fail when testsuite failures occur for now
+ because of gold (testsuite) issues.
+
+-------------------------------------------------------------------
+Tue Jul 27 11:43:24 UTC 2010 - rguenther@novell.com
+
+- drop cross-avr-binutils
+
+-------------------------------------------------------------------
+Tue Jul 27 11:23:20 UTC 2010 - coolo@novell.com
+
+- split the gold build into 2 make steps to avoid random
+ build failures (ugly work around in fact)
+
+-------------------------------------------------------------------
+Thu Jul 8 05:28:53 UTC 2010 - jengelh@medozas.de
+
+- Default to creating ELF64 objects under sparc64
+
+-------------------------------------------------------------------
+Mon Jun 28 06:38:35 UTC 2010 - jengelh@medozas.de
+
+- use %_smp_mflags
+
+-------------------------------------------------------------------
+Mon Apr 12 13:34:27 CEST 2010 - matz@suse.de
+
+- Initialize memory for MALLOC_PERTURB on ppc. [PR gas/11486]
+
+ Rewrite history by including this:
+ Wed Mar 24 17:23:32 CET 2010 - matz@suse.de
+
+ - Fix testcase breaking with MALLOC_PERTURB. [bnc #590820]
+
+ Sat Feb 13 17:52:11 CET 2010 - rguenther@suse.de
+
+ - Drop build counter from the libbfd and libopcode SONAMEs.
+
+ Fri Jan 22 15:31:06 CET 2010 - matz@suse.de
+
++++ 2175 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:Factory/.binutils.new/cross-avr-binutils.changes
--- /work/SRC/openSUSE:Factory/binutils/cross-hppa-binutils.changes 2012-02-03 10:22:03.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.binutils.new/cross-hppa-binutils.changes 2012-02-17 12:20:39.000000000 +0100
@@ -1,0 +2,14 @@
+Wed Feb 15 11:32:14 UTC 2012 - rguenther@suse.com
+
+- Drop the new spec files again, instead move the cross-$arch-binutils
+ contents to /usr, away from /opt.
+
+-------------------------------------------------------------------
+Tue Feb 14 17:53:08 UTC 2012 - max@suse.com
+
+- Add spec files that build variants for arm and avr that install
+ under /usr rather than /opt/cross.
+- Add avr-binutils-relocs.patch to fix a crash in avr-ld.
+ http://sourceware.org/bugzilla/show_bug.cgi?id=12161
+
+-------------------------------------------------------------------
cross-hppa64-binutils.changes: same change
cross-i386-binutils.changes: same change
cross-ia64-binutils.changes: same change
cross-mips-binutils.changes: same change
cross-ppc-binutils.changes: same change
cross-ppc64-binutils.changes: same change
cross-s390-binutils.changes: same change
cross-s390x-binutils.changes: same change
cross-sparc-binutils.changes: same change
cross-spu-binutils.changes: same change
cross-x86_64-binutils.changes: same change
New:
----
avr-binutils-relocs.patch
cross-avr-binutils.changes
cross-avr-binutils.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ binutils.spec ++++++
--- /var/tmp/diff_new_pack.LpNGf3/_old 2012-02-17 12:20:46.000000000 +0100
+++ /var/tmp/diff_new_pack.LpNGf3/_new 2012-02-17 12:20:46.000000000 +0100
@@ -94,12 +94,8 @@
Patch20: bso13449.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
+Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if "%{name}" != "binutils"
-%define _prefix /opt/cross
-%else
-%define _prefix /usr
-%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
@@ -107,104 +103,22 @@
to compile a program or kernel.
-
-Authors:
---------
- Alan Modra
- Andreas Jaeger
- Andreas Schwab
- Bill Cox
- Brendan Kehoe
- D. V. Henkel-Wallace
- DJ Delorie
- David D "Zoo" Zuhn
- David J. Mackenzie
- Denis Chertykov
- Diego Novillo
- Doug Evans
- Eric Christopher
- Eric Youngdale
- Fred Fish
- Geoff Keating
- H.J.Lu
- Hans-Peter Nilsson
- Ian Dall
- Ian Taylor
- J.T. Conklin
- Jakub Jelinek
- Jan Hubicka
- Jason Eckhardt
- Jason Merrill
- Jeff Law
- Jeffrey Osier
- Jeffrey Wheat
- Jim Kingdon
- Jim Wilson
- John Gilmore
- J�rn Rennecke
- K. Richard Pixley
- Ken Raeburn
- Kung Hsu
- Mark Eichin
- Michael Meissner
- Michael Tiemann
- Mike Werner
- Nick Clifton
- Per Bothner
- Peter Schauer
- Richard Earnshaw
- Richard Henderson
- Richard Stallman
- Rob Savoye
- Roland H. Pesch
- Sean Eric Fagan
- Stan Shebs
- Stephane Carrez
- Steve Chamberlain
- Stu Grossman
- Torbjorn Granlund
- Ulf Carlsson
-
%package gold
Summary: The gold linker
License: GPL-3.0+
Group: Development/Tools/Building
Requires: binutils = %{version}-%{release}
%if 0%{suse_version} > 1100
+%if 0%{!?cross:1}
%define gold_archs %ix86 %arm x86_64 ppc ppc64 %sparc
%endif
+%endif
%description gold
gold is an ELF linker. It is intended to have complete support for ELF
and to run as fast as possible on modern systems. For normal use it is
a drop-in replacement for the older GNU linker.
-The existing GNU linker manual is intended to be accurate
- documentation for features which gold supports. gold supports
- most of the features of the GNU linker for ELF targets. Notable
- omissions--features of the GNU linker not currently supported in
- gold--are: * MEMORY regions in linker scripts
-
-* MRI compatible linker scripts
-
-* linker map files (-M, -Map)
-
-* cross-reference reports (--cref)
-
-* linker garbage collection (--gc-sections)
-
-* position independent executables (-pie)
-
-* various other minor options
-
-
-
-Authors:
---------
- Ian Lance Taylor
- Cary Coutant
- Craig Silverstein
- Andrew Chatham
%package devel
Summary: GNU binutils (BFD development files)
@@ -219,67 +133,6 @@
binutils.
-
-Authors:
---------
- Alan Modra
- Andreas Jaeger
- Andreas Schwab
- Bill Cox
- Brendan Kehoe
- D. V. Henkel-Wallace
- DJ Delorie
- David D "Zoo" Zuhn
- David J. Mackenzie
- Denis Chertykov
- Diego Novillo
- Doug Evans
- Eric Christopher
- Eric Youngdale
- Fred Fish
- Geoff Keating
- H.J.Lu
- Hans-Peter Nilsson
- Ian Dall
- Ian Taylor
- J.T. Conklin
- Jakub Jelinek
- Jan Hubicka
- Jason Eckhardt
- Jason Merrill
- Jeff Law
- Jeffrey Osier
- Jeffrey Wheat
- Jim Kingdon
- Jim Wilson
- John Gilmore
- J�rn Rennecke
- K. Richard Pixley
- Ken Raeburn
- Kung Hsu
- Mark Eichin
- Michael Meissner
- Michael Tiemann
- Mike Werner
- Nick Clifton
- Per Bothner
- Peter Schauer
- Richard Earnshaw
- Richard Henderson
- Richard Stallman
- Rob Savoye
- Roland H. Pesch
- Sean Eric Fagan
- Stan Shebs
- Stephane Carrez
- Steve Chamberlain
- Stu Grossman
- Torbjorn Granlund
- Ulf Carlsson
-
-%if "%{name}" != "binutils"
-%define TARGET %(echo %{name} | sed -e "s/cross-\\(.*\\)-binutils/\\1/;s/-/_/g;s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/")
-%endif
%ifarch %arm
%define HOST %{_target_cpu}-suse-linux-gnueabi
%else
@@ -309,6 +162,7 @@
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
+%patch93 -p1
%endif
#
# test_vanilla
@@ -317,7 +171,7 @@
%build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
-%if "%{name}" == "binutils"
+%if 0%{!?cross:1}
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
@@ -368,13 +222,6 @@
rm bfd/Makefile
make %{?_smp_mflags}
-%check
-export SUSE_ASNEEDED=0
-cd build-dir
-make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
-#
-#
-#
%else
# building cross-TARGET-binutils
echo "Building cross binutils."
@@ -430,16 +277,20 @@
make -C gas-nesc clean
make -C gas-nesc %{?_smp_mflags}
%endif
+%endif
%check
unset SUSE_ASNEEDED
cd build-dir
+%if 0%{?cross:1}
+make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
+%else
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%install
cd build-dir
-%if "%name" == "binutils"
+%if 0%{!?cross:1}
# installing native binutils
%ifarch %gold_archs
make DESTDIR=$RPM_BUILD_ROOT install-gold
@@ -486,8 +337,13 @@
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
install -m 644 ld/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-ld
%else
-# installing cross-TARGET-binutils
+# installing cross-TARGET-binutils and TARGET-binutils
make DESTDIR=$RPM_BUILD_ROOT install
+# Replace hard links by symlinks, so that rpmlint doesn't complain
+T=$(basename %buildroot/usr/%{TARGET}*)
+for f in %buildroot/usr/$T/bin/* ; do
+ ln -sf /usr/bin/$T-$(basename $f) $f
+done
%if "%{TARGET}" == "avr"
install -c gas-nesc/as-new $RPM_BUILD_ROOT%{_prefix}/bin/%{TARGET}-nesc-as
ln -sf ../../bin/%{TARGET}-nesc-as $RPM_BUILD_ROOT%{_prefix}/%{TARGET}/bin/nesc-as
@@ -502,8 +358,8 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%if "%name" == "binutils"
+%if 0%{!?cross:1}
%post
%install_info --info-dir=%{_infodir} %{_infodir}/as.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz
@@ -521,7 +377,7 @@
%files -f binutils.lang
%defattr(-,root,root)
-%if "%name" == "binutils"
+%if 0%{!?cross:1}
%{_docdir}/%{name}
%{_prefix}/%{HOST}/bin/*
%{_prefix}/%{HOST}/lib/ldscripts
@@ -535,10 +391,11 @@
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
-%{_prefix}
+%{_prefix}/%{TARGET}*
+%{_prefix}/bin/*
%endif
-%ifarch %gold_archs
+%ifarch %gold_archs
%files gold -f binutils-gold.lang
%defattr(-,root,root)
%doc gold/NEWS gold/README
@@ -546,9 +403,11 @@
%{_bindir}/ld.gold
%endif
+%if 0%{!?cross:1}
%files devel
%defattr(-,root,root)
%{_prefix}/include/*.h
%{_libdir}/lib*.*a
+%endif
%changelog
++++++ cross-alpha-binutils.spec ++++++
--- /var/tmp/diff_new_pack.LpNGf3/_old 2012-02-17 12:20:46.000000000 +0100
+++ /var/tmp/diff_new_pack.LpNGf3/_new 2012-02-17 12:20:46.000000000 +0100
@@ -14,6 +14,23 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
+%define cross 1
+%define TARGET alpha
+#
+# spec file for package binutils
+#
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
Name: cross-alpha-binutils
BuildRequires: bison
@@ -94,12 +111,8 @@
Patch20: bso13449.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
+Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if "%{name}" != "binutils"
-%define _prefix /opt/cross
-%else
-%define _prefix /usr
-%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
@@ -107,153 +120,36 @@
to compile a program or kernel.
+%package gold
+Summary: The gold linker
+License: GPL-3.0+
+Group: Development/Tools/Building
+Requires: binutils = %{version}-%{release}
+%if 0%{suse_version} > 1100
+%if 0%{!?cross:1}
+%define gold_archs %ix86 %arm x86_64 ppc ppc64 %sparc
+%endif
+%endif
+
+%description gold
+gold is an ELF linker. It is intended to have complete support for ELF
+and to run as fast as possible on modern systems. For normal use it is
+a drop-in replacement for the older GNU linker.
+
+
+%package devel
+Summary: GNU binutils (BFD development files)
+License: GPL-3.0+
+Group: Development/Libraries/C and C++
+Requires: binutils = %{version}-%{release}, zlib-devel
+Provides: binutils:/usr/include/bfd.h
+
+%description devel
+This package includes header files and static libraries necessary to
+build programs which use the GNU BFD library, which is part of
+binutils.
-Authors:
---------
- Alan Modra
- Andreas Jaeger
- Andreas Schwab
- Bill Cox
- Brendan Kehoe
- D. V. Henkel-Wallace
- DJ Delorie
- David D "Zoo" Zuhn
- David J. Mackenzie
- Denis Chertykov
- Diego Novillo
- Doug Evans
- Eric Christopher
- Eric Youngdale
- Fred Fish
- Geoff Keating
- H.J.Lu
- Hans-Peter Nilsson
- Ian Dall
- Ian Taylor
- J.T. Conklin
- Jakub Jelinek
- Jan Hubicka
- Jason Eckhardt
- Jason Merrill
- Jeff Law
- Jeffrey Osier
- Jeffrey Wheat
- Jim Kingdon
- Jim Wilson
- John Gilmore
- J�rn Rennecke
- K. Richard Pixley
- Ken Raeburn
- Kung Hsu
- Mark Eichin
- Michael Meissner
- Michael Tiemann
- Mike Werner
- Nick Clifton
- Per Bothner
- Peter Schauer
- Richard Earnshaw
- Richard Henderson
- Richard Stallman
- Rob Savoye
- Roland H. Pesch
- Sean Eric Fagan
- Stan Shebs
- Stephane Carrez
- Steve Chamberlain
- Stu Grossman
- Torbjorn Granlund
- Ulf Carlsson
-
-The existing GNU linker manual is intended to be accurate
- documentation for features which gold supports. gold supports
- most of the features of the GNU linker for ELF targets. Notable
- omissions--features of the GNU linker not currently supported in
- gold--are: * MEMORY regions in linker scripts
-
-* MRI compatible linker scripts
-
-* linker map files (-M, -Map)
-
-* cross-reference reports (--cref)
-
-* linker garbage collection (--gc-sections)
-
-* position independent executables (-pie)
-
-* various other minor options
-
-
-
-Authors:
---------
- Ian Lance Taylor
- Cary Coutant
- Craig Silverstein
- Andrew Chatham
-
-
-
-Authors:
---------
- Alan Modra
- Andreas Jaeger
- Andreas Schwab
- Bill Cox
- Brendan Kehoe
- D. V. Henkel-Wallace
- DJ Delorie
- David D "Zoo" Zuhn
- David J. Mackenzie
- Denis Chertykov
- Diego Novillo
- Doug Evans
- Eric Christopher
- Eric Youngdale
- Fred Fish
- Geoff Keating
- H.J.Lu
- Hans-Peter Nilsson
- Ian Dall
- Ian Taylor
- J.T. Conklin
- Jakub Jelinek
- Jan Hubicka
- Jason Eckhardt
- Jason Merrill
- Jeff Law
- Jeffrey Osier
- Jeffrey Wheat
- Jim Kingdon
- Jim Wilson
- John Gilmore
- J�rn Rennecke
- K. Richard Pixley
- Ken Raeburn
- Kung Hsu
- Mark Eichin
- Michael Meissner
- Michael Tiemann
- Mike Werner
- Nick Clifton
- Per Bothner
- Peter Schauer
- Richard Earnshaw
- Richard Henderson
- Richard Stallman
- Rob Savoye
- Roland H. Pesch
- Sean Eric Fagan
- Stan Shebs
- Stephane Carrez
- Steve Chamberlain
- Stu Grossman
- Torbjorn Granlund
- Ulf Carlsson
-%if "%{name}" != "binutils"
-%define TARGET %(echo %{name} | sed -e "s/cross-\\(.*\\)-binutils/\\1/;s/-/_/g;s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/")
-%endif
%ifarch %arm
%define HOST %{_target_cpu}-suse-linux-gnueabi
%else
@@ -283,6 +179,7 @@
cp gas/config/tc-avr.h gas/config/tc-avr-nesc.h
%patch90
%patch92
+%patch93 -p1
%endif
#
# test_vanilla
@@ -291,7 +188,7 @@
%build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error"
-%if "%{name}" == "binutils"
+%if 0%{!?cross:1}
# Building native binutils
echo "Building native binutils."
%if %build_multitarget
@@ -333,19 +230,15 @@
../configure %common_flags \
${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} \
--enable-plugins \
+%ifarch %gold_archs
+ --enable-gold \
+%endif
--enable-shared
make %{?_smp_mflags} all-bfd TARGET-bfd=headers
# force reconfiguring (???)
rm bfd/Makefile
make %{?_smp_mflags}
-%check
-export SUSE_ASNEEDED=0
-cd build-dir
-make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
-#
-#
-#
%else
# building cross-TARGET-binutils
echo "Building cross binutils."
@@ -401,17 +294,25 @@
make -C gas-nesc clean
make -C gas-nesc %{?_smp_mflags}
%endif
+%endif
%check
unset SUSE_ASNEEDED
cd build-dir
+%if 0%{?cross:1}
+make -k check CFLAGS="-O2 -g" CXXFLAGS="-O2 -g" || %{make_check_handling}
+%else
make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || :
%endif
%install
cd build-dir
-%if "%name" == "binutils"
+%if 0%{!?cross:1}
# installing native binutils
+%ifarch %gold_archs
+make DESTDIR=$RPM_BUILD_ROOT install-gold
+ln -sf ld.gold $RPM_BUILD_ROOT%{_bindir}/gold
+%endif
make DESTDIR=$RPM_BUILD_ROOT install-info install
make -C gas/doc DESTDIR=$RPM_BUILD_ROOT install-info-am install-am
make DESTDIR=$RPM_BUILD_ROOT install-bfd install-opcodes
@@ -445,13 +346,21 @@
%find_lang ld binutils.lang
%find_lang opcodes binutils.lang
%find_lang gprof binutils.lang
+%ifarch %gold_archs
+%find_lang gold binutils-gold.lang
+%endif
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 binutils/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-binutils
install -m 644 gas/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-gas
install -m 644 ld/NEWS $RPM_BUILD_ROOT%{_docdir}/%{name}/NEWS-ld
%else
-# installing cross-TARGET-binutils
+# installing cross-TARGET-binutils and TARGET-binutils
make DESTDIR=$RPM_BUILD_ROOT install
+# Replace hard links by symlinks, so that rpmlint doesn't complain
+T=$(basename %buildroot/usr/%{TARGET}*)
+for f in %buildroot/usr/$T/bin/* ; do
+ ln -sf /usr/bin/$T-$(basename $f) $f
+done
%if "%{TARGET}" == "avr"
install -c gas-nesc/as-new $RPM_BUILD_ROOT%{_prefix}/bin/%{TARGET}-nesc-as
ln -sf ../../bin/%{TARGET}-nesc-as $RPM_BUILD_ROOT%{_prefix}/%{TARGET}/bin/nesc-as
@@ -466,8 +375,8 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%if "%name" == "binutils"
+%if 0%{!?cross:1}
%post
%install_info --info-dir=%{_infodir} %{_infodir}/as.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz
@@ -485,17 +394,37 @@
%files -f binutils.lang
%defattr(-,root,root)
-%if "%name" == "binutils"
+%if 0%{!?cross:1}
%{_docdir}/%{name}
%{_prefix}/%{HOST}/bin/*
%{_prefix}/%{HOST}/lib/ldscripts
%{_libdir}/ldscripts
%{_bindir}/*
+%ifarch %gold_archs
+%exclude %{_bindir}/gold
+%exclude %{_bindir}/ld.gold
+%endif
%doc %{_infodir}/*.gz
%{_libdir}/lib*-%{version}*.so
%doc %{_mandir}/man1/*.1.gz
%else
-%{_prefix}
+%{_prefix}/%{TARGET}*
+%{_prefix}/bin/*
+%endif
+
+%ifarch %gold_archs
+%files gold -f binutils-gold.lang
+%defattr(-,root,root)
+%doc gold/NEWS gold/README
+%{_bindir}/gold
+%{_bindir}/ld.gold
+%endif
+
+%if 0%{!?cross:1}
+%files devel
+%defattr(-,root,root)
+%{_prefix}/include/*.h
+%{_libdir}/lib*.*a
%endif
%changelog
++++++ cross-arm-binutils.spec ++++++
--- /var/tmp/diff_new_pack.LpNGf3/_old 2012-02-17 12:20:46.000000000 +0100
+++ /var/tmp/diff_new_pack.LpNGf3/_new 2012-02-17 12:20:46.000000000 +0100
@@ -14,6 +14,23 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
+%define cross 1
+%define TARGET arm
+#
+# spec file for package binutils
+#
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
Name: cross-arm-binutils
BuildRequires: bison
@@ -94,12 +111,8 @@
Patch20: bso13449.diff
Patch90: cross-avr-nesc-as.patch
Patch92: cross-avr-omit_section_dynsym.patch
+Patch93: avr-binutils-relocs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if "%{name}" != "binutils"
-%define _prefix /opt/cross
-%else
-%define _prefix /usr
-%endif
%description
C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib,
@@ -107,153 +120,36 @@
to compile a program or kernel.
+%package gold
+Summary: The gold linker
+License: GPL-3.0+
+Group: Development/Tools/Building
+Requires: binutils = %{version}-%{release}
+%if 0%{suse_version} > 1100
+%if 0%{!?cross:1}
+%define gold_archs %ix86 %arm x86_64 ppc ppc64 %sparc
+%endif
+%endif
+
+%description gold
+gold is an ELF linker. It is intended to have complete support for ELF
+and to run as fast as possible on modern systems. For normal use it is
+a drop-in replacement for the older GNU linker.
+
+
+%package devel
+Summary: GNU binutils (BFD development files)
+License: GPL-3.0+
+Group: Development/Libraries/C and C++
+Requires: binutils = %{version}-%{release}, zlib-devel
+Provides: binutils:/usr/include/bfd.h
+
+%description devel
+This package includes header files and static libraries necessary to
+build programs which use the GNU BFD library, which is part of
+binutils.
-Authors:
---------
- Alan Modra
- Andreas Jaeger
- Andreas Schwab
- Bill Cox
- Brendan Kehoe
- D. V. Henkel-Wallace
- DJ Delorie
- David D "Zoo" Zuhn
- David J. Mackenzie
- Denis Chertykov
- Diego Novillo
- Doug Evans
- Eric Christopher
- Eric Youngdale
- Fred Fish
- Geoff Keating
- H.J.Lu
- Hans-Peter Nilsson
- Ian Dall
- Ian Taylor
- J.T. Conklin
- Jakub Jelinek
- Jan Hubicka
- Jason Eckhardt
- Jason Merrill