[arch-commits] Commit in binutils/repos (6 files)

2018-08-02 Thread Bartłomiej Piotrowski via arch-commits
Date: Thursday, August 2, 2018 @ 06:30:15
  Author: bpiotrowski
Revision: 330458

archrelease: copy trunk to testing-x86_64

Added:
  binutils/repos/testing-x86_64/
  
binutils/repos/testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
(from rev 330457, 
binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch)
  
binutils/repos/testing-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch
(from rev 330457, 
binutils/trunk/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch)
  
binutils/repos/testing-x86_64/0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch
(from rev 330457, 
binutils/trunk/0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch)
  
binutils/repos/testing-x86_64/0004-PR22868-Fix-case-where-IR-file-provides-symbol-visibility.patch
(from rev 330457, 
binutils/trunk/0004-PR22868-Fix-case-where-IR-file-provides-symbol-visibility.patch)
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 330457, binutils/trunk/PKGBUILD)

--+
 0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch|   29 +
 0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch  |  145 
+
 0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch   |  233 

 0004-PR22868-Fix-case-where-IR-file-provides-symbol-visibility.patch |  275 
++
 PKGBUILD |   79 ++
 5 files changed, 761 insertions(+)

Copied: 
binutils/repos/testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
 (from rev 330457, 
binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch)
===
--- testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
(rev 0)
+++ testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
2018-08-02 06:30:15 UTC (rev 330458)
@@ -0,0 +1,29 @@
+From eb77f6a4621795367a39cdd30957903af9dbb815 Mon Sep 17 00:00:00 2001
+From: Alan Modra 
+Date: Sat, 27 Jan 2018 08:19:33 +1030
+Subject: [PATCH] PR22741, objcopy segfault on fuzzed COFF object
+
+   PR 22741
+   * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
+   range before converting to a symbol table pointer.
+---
+ bfd/coffgen.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/bfd/coffgen.c b/bfd/coffgen.c
+index b2410873d0..4f90eaddd9 100644
+--- a/bfd/coffgen.c
 b/bfd/coffgen.c
+@@ -1555,7 +1555,8 @@ coff_pointerize_aux (bfd *abfd,
+ }
+   /* A negative tagndx is meaningless, but the SCO 3.2v4 cc can
+  generate one, so we must be careful to ignore it.  */
+-  if (auxent->u.auxent.x_sym.x_tagndx.l > 0)
++  if ((unsigned long) auxent->u.auxent.x_sym.x_tagndx.l
++  < obj_raw_syment_count (abfd))
+ {
+   auxent->u.auxent.x_sym.x_tagndx.p =
+   table_base + auxent->u.auxent.x_sym.x_tagndx.l;
+-- 
+2.16.2
+

Copied: 
binutils/repos/testing-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch
 (from rev 330457, 
binutils/trunk/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch)
===
--- 
testing-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch  
(rev 0)
+++ 
testing-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch  
2018-08-02 06:30:15 UTC (rev 330458)
@@ -0,0 +1,145 @@
+From 3b56a1358768563d9cf320559ebdedfb30f122dd Mon Sep 17 00:00:00 2001
+From: Alan Modra 
+Date: Mon, 12 Feb 2018 13:06:07 +1030
+Subject: [PATCH] PR22829, objcopy/strip removes PT_GNU_RELRO from lld binaries
+
+lld lays out the relro segment differently to GNU ld, not bothering to
+include the first few bytes of .got.plt and padding out to a page at
+the end of the segment.  This patch teaches binutils to recognize the
+different (and somewhat inferior) layout as valid.
+
+bfd/
+   PR 22829
+   * elf.c (assign_file_positions_for_non_load_sections): Rewrite
+   PT_GNU_RELRO setup.
+ld/
+   * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
+
+(cherry picked from commit f2731e0c374e5323ce4cdae2bcc7b7fe22da1a6f)
+---
+ bfd/elf.c| 78 ++--
+ ld/testsuite/ld-x86-64/pr14207.d |  2 +-
+ 2 files changed, 52 insertions(+), 28 deletions(-)
+
+diff --git a/bfd/elf.c b/bfd/elf.c
+index bbaab26918..f5a230cd77 100644
+--- a/bfd/elf.c
 b/bfd/elf.c
+@@ -5826,50 +5826,74 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
+ {
+   if (p->p_type == PT_GNU_RELRO)
+   {
+-const Elf_Internal_Phdr *lp;
+-struct elf_segment_map *lm;
++bfd_vma start, end;
+ 
+ if (link_info != NULL)
+   {
+ /* During linking the range of the RELRO 

[arch-commits] Commit in binutils/repos (6 files)

2018-06-01 Thread Bartłomiej Piotrowski via arch-commits
Date: Friday, June 1, 2018 @ 10:24:58
  Author: bpiotrowski
Revision: 325491

archrelease: copy trunk to testing-x86_64

Added:
  binutils/repos/testing-x86_64/
  
binutils/repos/testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
(from rev 325490, 
binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch)
  
binutils/repos/testing-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch
(from rev 325490, 
binutils/trunk/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch)
  
binutils/repos/testing-x86_64/0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch
(from rev 325490, 
binutils/trunk/0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch)
  
binutils/repos/testing-x86_64/0004-PR22868-Fix-case-where-IR-file-provides-symbol-visibility.patch
(from rev 325490, 
binutils/trunk/0004-PR22868-Fix-case-where-IR-file-provides-symbol-visibility.patch)
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 325490, binutils/trunk/PKGBUILD)

--+
 0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch|   29 +
 0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch  |  145 
+
 0003-PR22836-r-s-doesnt-work-with-g3-using-GCC-7.patch   |  233 

 0004-PR22868-Fix-case-where-IR-file-provides-symbol-visibility.patch |  275 
++
 PKGBUILD |   99 +++
 5 files changed, 781 insertions(+)

Copied: 
binutils/repos/testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
 (from rev 325490, 
binutils/trunk/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch)
===
--- testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
(rev 0)
+++ testing-x86_64/0001-PR22741-objcopy-segfault-on-fuzzed-COFF-object.patch
2018-06-01 10:24:58 UTC (rev 325491)
@@ -0,0 +1,29 @@
+From eb77f6a4621795367a39cdd30957903af9dbb815 Mon Sep 17 00:00:00 2001
+From: Alan Modra 
+Date: Sat, 27 Jan 2018 08:19:33 +1030
+Subject: [PATCH] PR22741, objcopy segfault on fuzzed COFF object
+
+   PR 22741
+   * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
+   range before converting to a symbol table pointer.
+---
+ bfd/coffgen.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/bfd/coffgen.c b/bfd/coffgen.c
+index b2410873d0..4f90eaddd9 100644
+--- a/bfd/coffgen.c
 b/bfd/coffgen.c
+@@ -1555,7 +1555,8 @@ coff_pointerize_aux (bfd *abfd,
+ }
+   /* A negative tagndx is meaningless, but the SCO 3.2v4 cc can
+  generate one, so we must be careful to ignore it.  */
+-  if (auxent->u.auxent.x_sym.x_tagndx.l > 0)
++  if ((unsigned long) auxent->u.auxent.x_sym.x_tagndx.l
++  < obj_raw_syment_count (abfd))
+ {
+   auxent->u.auxent.x_sym.x_tagndx.p =
+   table_base + auxent->u.auxent.x_sym.x_tagndx.l;
+-- 
+2.16.2
+

Copied: 
binutils/repos/testing-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch
 (from rev 325490, 
binutils/trunk/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch)
===
--- 
testing-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch  
(rev 0)
+++ 
testing-x86_64/0002-PR22829-objcopy-strip-removes-PT_GNU_RELRO-from-lld-.patch  
2018-06-01 10:24:58 UTC (rev 325491)
@@ -0,0 +1,145 @@
+From 3b56a1358768563d9cf320559ebdedfb30f122dd Mon Sep 17 00:00:00 2001
+From: Alan Modra 
+Date: Mon, 12 Feb 2018 13:06:07 +1030
+Subject: [PATCH] PR22829, objcopy/strip removes PT_GNU_RELRO from lld binaries
+
+lld lays out the relro segment differently to GNU ld, not bothering to
+include the first few bytes of .got.plt and padding out to a page at
+the end of the segment.  This patch teaches binutils to recognize the
+different (and somewhat inferior) layout as valid.
+
+bfd/
+   PR 22829
+   * elf.c (assign_file_positions_for_non_load_sections): Rewrite
+   PT_GNU_RELRO setup.
+ld/
+   * testsuite/ld-x86-64/pr14207.d: Adjust relro p_filesz.
+
+(cherry picked from commit f2731e0c374e5323ce4cdae2bcc7b7fe22da1a6f)
+---
+ bfd/elf.c| 78 ++--
+ ld/testsuite/ld-x86-64/pr14207.d |  2 +-
+ 2 files changed, 52 insertions(+), 28 deletions(-)
+
+diff --git a/bfd/elf.c b/bfd/elf.c
+index bbaab26918..f5a230cd77 100644
+--- a/bfd/elf.c
 b/bfd/elf.c
+@@ -5826,50 +5826,74 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
+ {
+   if (p->p_type == PT_GNU_RELRO)
+   {
+-const Elf_Internal_Phdr *lp;
+-struct elf_segment_map *lm;
++bfd_vma start, end;
+ 
+ if (link_info != NULL)
+   {
+ /* During linking the range of the RELRO 

[arch-commits] Commit in binutils/repos (6 files)

2017-10-09 Thread Bartłomiej Piotrowski
Date: Monday, October 9, 2017 @ 09:09:21
  Author: bpiotrowski
Revision: 307218

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  
binutils/repos/testing-i686/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch
(from rev 307217, 
binutils/trunk/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch)
  binutils/repos/testing-i686/PKGBUILD
(from rev 307217, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/
  
binutils/repos/testing-x86_64/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch
(from rev 307217, 
binutils/trunk/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch)
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 307217, binutils/trunk/PKGBUILD)

---+
 testing-i686/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch   
|   29 +++
 testing-i686/PKGBUILD 
|   84 ++
 testing-x86_64/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch 
|   29 +++
 testing-x86_64/PKGBUILD   
|   84 ++
 4 files changed, 226 insertions(+)

Copied: 
binutils/repos/testing-i686/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch
 (from rev 307217, 
binutils/trunk/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch)
===
--- testing-i686/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch 
(rev 0)
+++ testing-i686/0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch 
2017-10-09 09:09:21 UTC (rev 307218)
@@ -0,0 +1,29 @@
+From 7a7431ddc2332ddc3753330a8dd815bb5f7193c0 Mon Sep 17 00:00:00 2001
+From: "H.J. Lu" 
+Date: Tue, 26 Sep 2017 14:41:22 -0700
+Subject: [PATCH] x86-64: Don't pass output_bfd to info->callbacks->minfo
+
+Don't pass output_bfd to info->callbacks->minfo when dumping local IFUNC
+functions in the map file.
+
+   PR ld/22199
+   * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't pass
+   output_bfd to info->callbacks->minfo.
+
+(cherry picked from commit ac69a0d75bf472a140e5405c8a90420d5f63a998)
+
+diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
+index d9225ad..1f6dfb8 100644
+--- a/bfd/elf64-x86-64.c
 b/bfd/elf64-x86-64.c
+@@ -6133,7 +6133,6 @@ elf_x86_64_finish_dynamic_symbol (bfd *output_bfd,
+ if (SYMBOL_REFERENCES_LOCAL (info, h))
+   {
+ info->callbacks->minfo (_("Local IFUNC function `%s' in 
%B\n"),
+-output_bfd,
+ h->root.root.string,
+ h->root.u.def.section->owner);
+ 
+-- 
+2.9.3
+

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 307217, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2017-10-09 09:09:21 UTC (rev 307218)
@@ -0,0 +1,84 @@
+# $Id$
+# Maintainer: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=binutils
+pkgver=2.29.1
+pkgrel=1
+pkgdesc='A set of programs to assemble and manipulate binary and object files'
+arch=(i686 x86_64)
+url='http://www.gnu.org/software/binutils/'
+license=(GPL)
+groups=('base-devel')
+depends=('glibc>=2.26' zlib)
+makedepends=(git)
+checkdepends=(dejagnu bc)
+conflicts=(binutils-multilib)
+replaces=(binutils-multilib)
+options=(staticlibs !distcc !ccache)
+#_commit=d1a6e7195b9bb0255fa77588985b969ad8aaacf5
+#source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit}
+source=(https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz{,.sig}
+0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch)
+validpgpkeys=(3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F)
+md5sums=('acc9cd826edb9954ac7cecb81c727793'
+ 'SKIP'
+ 'e4be936139ef46122cb3841881c432b2')
+
+prepare() {
+  mkdir -p binutils-build
+
+  #cd binutils-gdb
+  cd binutils-$pkgver
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+  # https://bugs.archlinux.org/task/55741
+  git apply ../0001-x86-64_Dont_pass_output_bfd_to_info-callbacks-minfo.patch
+}
+
+build() {
+  cd binutils-build
+
+  "$srcdir/binutils-$pkgver/configure" \
+--prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-threads \
+--enable-shared \
+--enable-ld=default \
+--enable-gold \
+--enable-plugins \
+--enable-relro \
+--enable-deterministic-archives \
+--with-pic \
+--disable-werror \
+

[arch-commits] Commit in binutils/repos (6 files)

2017-03-22 Thread Anatol Pomozov
Date: Wednesday, March 22, 2017 @ 08:22:10
  Author: anatolik
Revision: 291202

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 291201, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils-e9c1bdad.patch
(from rev 291201, binutils/trunk/binutils-e9c1bdad.patch)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 291201, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils-e9c1bdad.patch
(from rev 291201, binutils/trunk/binutils-e9c1bdad.patch)

+
 testing-i686/PKGBUILD  |   75 +
 testing-i686/binutils-e9c1bdad.patch   |   78 +++
 testing-x86_64/PKGBUILD|   75 +
 testing-x86_64/binutils-e9c1bdad.patch |   78 +++
 4 files changed, 306 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 291201, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2017-03-22 08:22:10 UTC (rev 291202)
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=binutils
+pkgver=2.28.0
+pkgrel=2
+_commit=a7b47925683a22c9819c23cb18b99bd74014d066
+pkgdesc="A set of programs to assemble and manipulate binary and object files"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc>=2.25' 'zlib')
+makedepends=('git')
+checkdepends=('dejagnu' 'bc')
+conflicts=('binutils-multilib')
+replaces=('binutils-multilib')
+options=('staticlibs' '!distcc' '!ccache')
+source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit})
+md5sums=('SKIP')
+
+prepare() {
+  cd binutils-gdb
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+  mkdir ${srcdir}/binutils-build
+}
+
+build() {
+  cd binutils-build
+
+  ../binutils-gdb/configure \
+--prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-threads \
+--enable-shared \
+--enable-ld=default \
+--enable-gold \
+--enable-plugins \
+--enable-deterministic-archives \
+--with-pic \
+--disable-werror \
+--disable-gdb
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=/usr
+}
+
+check() {
+  cd binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # ignore failures in gold testsuite...
+  make -k LDFLAGS="" check || true
+}
+
+package() {
+  cd binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+
+  # Remove unwanted files
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # No shared linking to these files outside binutils
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > 
"$pkgdir"/usr/lib/libbfd.so
+  echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > 
"$pkgdir"/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils-e9c1bdad.patch (from rev 291201, 
binutils/trunk/binutils-e9c1bdad.patch)
===
--- testing-i686/binutils-e9c1bdad.patch(rev 0)
+++ testing-i686/binutils-e9c1bdad.patch2017-03-22 08:22:10 UTC (rev 
291202)
@@ -0,0 +1,78 @@
+diff --git a/gold/layout.cc b/gold/layout.cc
+index bcdaac8..7836640 100644
+--- a/gold/layout.cc
 b/gold/layout.cc
+@@ -4873,7 +4873,8 @@ Layout::finish_dynamic_section(const Input_objects* 
input_objects,
+ flags |= elfcpp::DF_STATIC_TLS;
+   if (parameters->options().origin())
+ flags |= elfcpp::DF_ORIGIN;
+-  if (parameters->options().Bsymbolic())
++  if (parameters->options().Bsymbolic()
++  && !parameters->options().have_dynamic_list())
+ {
+   flags |= elfcpp::DF_SYMBOLIC;
+   // Add DT_SYMBOLIC for compatibility with older loaders.
+diff --git a/gold/options.cc b/gold/options.cc
+index 7eb8f27..7f1f69e 100644
+--- a/gold/options.cc
 b/gold/options.cc
+@@ -1200,13 +1200,6 @@ General_options::finalize()
+   // in the path, as appropriate.
+   this->add_sysroot();
+ 
+-  // --dynamic-list overrides -Bsymbolic and -Bsymbolic-functions.
+-  if (this->have_dynamic_list())
+-{
+-  this->set_Bsymbolic(false);
+-  this->set_Bsymbolic_functions(false);
+-}
+-
+   // Now that we've normalized the options, check for contradictory ones.
+   if (this->shared() && this->is_static())
+ 

[arch-commits] Commit in binutils/repos (6 files)

2017-03-06 Thread Allan McRae
Date: Tuesday, March 7, 2017 @ 02:18:29
  Author: allan
Revision: 290071

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  binutils/repos/staging-i686/
  binutils/repos/staging-i686/PKGBUILD
(from rev 290070, binutils/trunk/PKGBUILD)
  binutils/repos/staging-i686/binutils-e9c1bdad.patch
(from rev 290070, binutils/trunk/binutils-e9c1bdad.patch)
  binutils/repos/staging-x86_64/
  binutils/repos/staging-x86_64/PKGBUILD
(from rev 290070, binutils/trunk/PKGBUILD)
  binutils/repos/staging-x86_64/binutils-e9c1bdad.patch
(from rev 290070, binutils/trunk/binutils-e9c1bdad.patch)

+
 staging-i686/PKGBUILD  |   74 +
 staging-i686/binutils-e9c1bdad.patch   |   78 +++
 staging-x86_64/PKGBUILD|   74 +
 staging-x86_64/binutils-e9c1bdad.patch |   78 +++
 4 files changed, 304 insertions(+)

Copied: binutils/repos/staging-i686/PKGBUILD (from rev 290070, 
binutils/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2017-03-07 02:18:29 UTC (rev 290071)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=binutils
+pkgver=2.28
+pkgrel=1
+_commit=7fa393306ed8b93019d225548474c0540b8928f7
+pkgdesc="A set of programs to assemble and manipulate binary and object files"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc>=2.25' 'zlib')
+makedepends=('git')
+checkdepends=('dejagnu' 'bc')
+conflicts=('binutils-multilib')
+replaces=('binutils-multilib')
+options=('staticlibs' '!distcc' '!ccache')
+source=(git+https://sourceware.org/git/binutils-gdb.git#commit=${_commit})
+md5sums=('SKIP')
+
+prepare() {
+  cd binutils-gdb
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+  mkdir ${srcdir}/binutils-build
+}
+
+build() {
+  cd binutils-build
+
+  ../binutils-gdb/configure \
+--prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-threads \
+--enable-shared \
+--enable-ld=default \
+--enable-gold \
+--enable-plugins \
+--enable-deterministic-archives \
+--disable-werror \
+--disable-gdb
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=/usr
+}
+
+check() {
+  cd binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # ignore failures in gold testsuite...
+  make -k LDFLAGS="" check || true
+}
+
+package() {
+  cd binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+
+  # Remove unwanted files
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # No shared linking to these files outside binutils
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > 
"$pkgdir"/usr/lib/libbfd.so
+  echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > 
"$pkgdir"/usr/lib/libopcodes.so
+}

Copied: binutils/repos/staging-i686/binutils-e9c1bdad.patch (from rev 290070, 
binutils/trunk/binutils-e9c1bdad.patch)
===
--- staging-i686/binutils-e9c1bdad.patch(rev 0)
+++ staging-i686/binutils-e9c1bdad.patch2017-03-07 02:18:29 UTC (rev 
290071)
@@ -0,0 +1,78 @@
+diff --git a/gold/layout.cc b/gold/layout.cc
+index bcdaac8..7836640 100644
+--- a/gold/layout.cc
 b/gold/layout.cc
+@@ -4873,7 +4873,8 @@ Layout::finish_dynamic_section(const Input_objects* 
input_objects,
+ flags |= elfcpp::DF_STATIC_TLS;
+   if (parameters->options().origin())
+ flags |= elfcpp::DF_ORIGIN;
+-  if (parameters->options().Bsymbolic())
++  if (parameters->options().Bsymbolic()
++  && !parameters->options().have_dynamic_list())
+ {
+   flags |= elfcpp::DF_SYMBOLIC;
+   // Add DT_SYMBOLIC for compatibility with older loaders.
+diff --git a/gold/options.cc b/gold/options.cc
+index 7eb8f27..7f1f69e 100644
+--- a/gold/options.cc
 b/gold/options.cc
+@@ -1200,13 +1200,6 @@ General_options::finalize()
+   // in the path, as appropriate.
+   this->add_sysroot();
+ 
+-  // --dynamic-list overrides -Bsymbolic and -Bsymbolic-functions.
+-  if (this->have_dynamic_list())
+-{
+-  this->set_Bsymbolic(false);
+-  this->set_Bsymbolic_functions(false);
+-}
+-
+   // Now that we've normalized the options, check for contradictory ones.
+   if (this->shared() && this->is_static())
+ gold_fatal(_("-shared and -static are 

[arch-commits] Commit in binutils/repos (6 files)

2016-08-06 Thread Allan McRae
Date: Saturday, August 6, 2016 @ 12:47:06
  Author: allan
Revision: 273398

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 273397, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils-e9c1bdad.patch
(from rev 273397, binutils/trunk/binutils-e9c1bdad.patch)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 273397, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils-e9c1bdad.patch
(from rev 273397, binutils/trunk/binutils-e9c1bdad.patch)

+
 testing-i686/PKGBUILD  |   69 +++
 testing-i686/binutils-e9c1bdad.patch   |   78 +++
 testing-x86_64/PKGBUILD|   69 +++
 testing-x86_64/binutils-e9c1bdad.patch |   78 +++
 4 files changed, 294 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 273397, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2016-08-06 12:47:06 UTC (rev 273398)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=binutils
+pkgver=2.27
+pkgrel=1
+_commit=2870b1ba
+pkgdesc="A set of programs to assemble and manipulate binary and object files"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc>=2.24' 'zlib')
+makedepends=('git')
+checkdepends=('dejagnu' 'bc')
+conflicts=('binutils-multilib')
+replaces=('binutils-multilib')
+options=('staticlibs' '!distcc' '!ccache')
+source=(git://sourceware.org/git/binutils-gdb.git#commit=${_commit})
+md5sums=('SKIP')
+
+prepare() {
+  cd binutils-gdb
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+  mkdir ${srcdir}/binutils-build
+}
+
+build() {
+  cd binutils-build
+
+  ../binutils-gdb/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-threads --enable-shared --with-pic \
+--enable-ld=default --enable-gold --enable-plugins \
+--enable-deterministic-archives \
+--disable-werror --disable-gdb
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=/usr
+}
+
+check() {
+  cd binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # ignore failures in gold testsuite...
+  make -k LDFLAGS="" check || true
+}
+
+package() {
+  cd binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+
+  # Remove unwanted files
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # No shared linking to these files outside binutils
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > 
"$pkgdir"/usr/lib/libbfd.so
+  echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > 
"$pkgdir"/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils-e9c1bdad.patch (from rev 273397, 
binutils/trunk/binutils-e9c1bdad.patch)
===
--- testing-i686/binutils-e9c1bdad.patch(rev 0)
+++ testing-i686/binutils-e9c1bdad.patch2016-08-06 12:47:06 UTC (rev 
273398)
@@ -0,0 +1,78 @@
+diff --git a/gold/layout.cc b/gold/layout.cc
+index bcdaac8..7836640 100644
+--- a/gold/layout.cc
 b/gold/layout.cc
+@@ -4873,7 +4873,8 @@ Layout::finish_dynamic_section(const Input_objects* 
input_objects,
+ flags |= elfcpp::DF_STATIC_TLS;
+   if (parameters->options().origin())
+ flags |= elfcpp::DF_ORIGIN;
+-  if (parameters->options().Bsymbolic())
++  if (parameters->options().Bsymbolic()
++  && !parameters->options().have_dynamic_list())
+ {
+   flags |= elfcpp::DF_SYMBOLIC;
+   // Add DT_SYMBOLIC for compatibility with older loaders.
+diff --git a/gold/options.cc b/gold/options.cc
+index 7eb8f27..7f1f69e 100644
+--- a/gold/options.cc
 b/gold/options.cc
+@@ -1200,13 +1200,6 @@ General_options::finalize()
+   // in the path, as appropriate.
+   this->add_sysroot();
+ 
+-  // --dynamic-list overrides -Bsymbolic and -Bsymbolic-functions.
+-  if (this->have_dynamic_list())
+-{
+-  this->set_Bsymbolic(false);
+-  this->set_Bsymbolic_functions(false);
+-}
+-
+   // Now that we've normalized the options, check for contradictory ones.
+   if (this->shared() && this->is_static())
+ gold_fatal(_("-shared and -static are incompatible"));
+diff --git a/gold/symtab.h b/gold/symtab.h
+index 

[arch-commits] Commit in binutils/repos (6 files)

2016-08-02 Thread Allan McRae
Date: Tuesday, August 2, 2016 @ 11:53:24
  Author: allan
Revision: 272846

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  binutils/repos/staging-i686/
  binutils/repos/staging-i686/PKGBUILD
(from rev 272845, binutils/trunk/PKGBUILD)
  binutils/repos/staging-i686/binutils-e9c1bdad.patch
(from rev 272845, binutils/trunk/binutils-e9c1bdad.patch)
  binutils/repos/staging-x86_64/
  binutils/repos/staging-x86_64/PKGBUILD
(from rev 272845, binutils/trunk/PKGBUILD)
  binutils/repos/staging-x86_64/binutils-e9c1bdad.patch
(from rev 272845, binutils/trunk/binutils-e9c1bdad.patch)

+
 staging-i686/PKGBUILD  |   69 +++
 staging-i686/binutils-e9c1bdad.patch   |   78 +++
 staging-x86_64/PKGBUILD|   69 +++
 staging-x86_64/binutils-e9c1bdad.patch |   78 +++
 4 files changed, 294 insertions(+)

Copied: binutils/repos/staging-i686/PKGBUILD (from rev 272845, 
binutils/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2016-08-02 11:53:24 UTC (rev 272846)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=binutils
+pkgver=2.26.1
+pkgrel=2
+_commit=c29838e7
+pkgdesc="A set of programs to assemble and manipulate binary and object files"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc>=2.24' 'zlib')
+makedepends=('git')
+checkdepends=('dejagnu' 'bc')
+conflicts=('binutils-multilib')
+replaces=('binutils-multilib')
+options=('staticlibs' '!distcc' '!ccache')
+source=(git://sourceware.org/git/binutils-gdb.git#commit=${_commit})
+md5sums=('SKIP')
+
+prepare() {
+  cd binutils-gdb
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+  mkdir ${srcdir}/binutils-build
+}
+
+build() {
+  cd binutils-build
+
+  ../binutils-gdb/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-threads --enable-shared --with-pic \
+--enable-ld=default --enable-gold --enable-plugins \
+--enable-deterministic-archives \
+--disable-werror --disable-gdb
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=/usr
+}
+
+check() {
+  cd binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # ignore failures in gold testsuite...
+  make -k LDFLAGS="" check || true
+}
+
+package() {
+  cd binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+
+  # Remove unwanted files
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # No shared linking to these files outside binutils
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > 
"$pkgdir"/usr/lib/libbfd.so
+  echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > 
"$pkgdir"/usr/lib/libopcodes.so
+}

Copied: binutils/repos/staging-i686/binutils-e9c1bdad.patch (from rev 272845, 
binutils/trunk/binutils-e9c1bdad.patch)
===
--- staging-i686/binutils-e9c1bdad.patch(rev 0)
+++ staging-i686/binutils-e9c1bdad.patch2016-08-02 11:53:24 UTC (rev 
272846)
@@ -0,0 +1,78 @@
+diff --git a/gold/layout.cc b/gold/layout.cc
+index bcdaac8..7836640 100644
+--- a/gold/layout.cc
 b/gold/layout.cc
+@@ -4873,7 +4873,8 @@ Layout::finish_dynamic_section(const Input_objects* 
input_objects,
+ flags |= elfcpp::DF_STATIC_TLS;
+   if (parameters->options().origin())
+ flags |= elfcpp::DF_ORIGIN;
+-  if (parameters->options().Bsymbolic())
++  if (parameters->options().Bsymbolic()
++  && !parameters->options().have_dynamic_list())
+ {
+   flags |= elfcpp::DF_SYMBOLIC;
+   // Add DT_SYMBOLIC for compatibility with older loaders.
+diff --git a/gold/options.cc b/gold/options.cc
+index 7eb8f27..7f1f69e 100644
+--- a/gold/options.cc
 b/gold/options.cc
+@@ -1200,13 +1200,6 @@ General_options::finalize()
+   // in the path, as appropriate.
+   this->add_sysroot();
+ 
+-  // --dynamic-list overrides -Bsymbolic and -Bsymbolic-functions.
+-  if (this->have_dynamic_list())
+-{
+-  this->set_Bsymbolic(false);
+-  this->set_Bsymbolic_functions(false);
+-}
+-
+   // Now that we've normalized the options, check for contradictory ones.
+   if (this->shared() && this->is_static())
+ gold_fatal(_("-shared and -static are incompatible"));
+diff --git a/gold/symtab.h b/gold/symtab.h
+index 

[arch-commits] Commit in binutils/repos (6 files)

2016-07-03 Thread Allan McRae
Date: Sunday, July 3, 2016 @ 13:01:36
  Author: allan
Revision: 270888

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 270887, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils-e9c1bdad.patch
(from rev 270887, binutils/trunk/binutils-e9c1bdad.patch)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 270887, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils-e9c1bdad.patch
(from rev 270887, binutils/trunk/binutils-e9c1bdad.patch)

+
 testing-i686/PKGBUILD  |   69 +++
 testing-i686/binutils-e9c1bdad.patch   |   78 +++
 testing-x86_64/PKGBUILD|   69 +++
 testing-x86_64/binutils-e9c1bdad.patch |   78 +++
 4 files changed, 294 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 270887, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2016-07-03 13:01:36 UTC (rev 270888)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=binutils
+pkgver=2.26.1
+pkgrel=1
+_commit=c29838e7
+pkgdesc="A set of programs to assemble and manipulate binary and object files"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc>=2.23' 'zlib')
+makedepends=('git')
+checkdepends=('dejagnu' 'bc')
+conflicts=('binutils-multilib')
+replaces=('binutils-multilib')
+options=('staticlibs' '!distcc' '!ccache')
+source=(git://sourceware.org/git/binutils-gdb.git#commit=${_commit})
+md5sums=('SKIP')
+
+prepare() {
+  cd binutils-gdb
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+  mkdir ${srcdir}/binutils-build
+}
+
+build() {
+  cd binutils-build
+
+  ../binutils-gdb/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-threads --enable-shared --with-pic \
+--enable-ld=default --enable-gold --enable-plugins \
+--enable-deterministic-archives \
+--disable-werror --disable-gdb
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=/usr
+}
+
+check() {
+  cd binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # ignore failures in gold testsuite...
+  make -k LDFLAGS="" check || true
+}
+
+package() {
+  cd binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+
+  # Remove unwanted files
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # No shared linking to these files outside binutils
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > 
"$pkgdir"/usr/lib/libbfd.so
+  echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > 
"$pkgdir"/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils-e9c1bdad.patch (from rev 270887, 
binutils/trunk/binutils-e9c1bdad.patch)
===
--- testing-i686/binutils-e9c1bdad.patch(rev 0)
+++ testing-i686/binutils-e9c1bdad.patch2016-07-03 13:01:36 UTC (rev 
270888)
@@ -0,0 +1,78 @@
+diff --git a/gold/layout.cc b/gold/layout.cc
+index bcdaac8..7836640 100644
+--- a/gold/layout.cc
 b/gold/layout.cc
+@@ -4873,7 +4873,8 @@ Layout::finish_dynamic_section(const Input_objects* 
input_objects,
+ flags |= elfcpp::DF_STATIC_TLS;
+   if (parameters->options().origin())
+ flags |= elfcpp::DF_ORIGIN;
+-  if (parameters->options().Bsymbolic())
++  if (parameters->options().Bsymbolic()
++  && !parameters->options().have_dynamic_list())
+ {
+   flags |= elfcpp::DF_SYMBOLIC;
+   // Add DT_SYMBOLIC for compatibility with older loaders.
+diff --git a/gold/options.cc b/gold/options.cc
+index 7eb8f27..7f1f69e 100644
+--- a/gold/options.cc
 b/gold/options.cc
+@@ -1200,13 +1200,6 @@ General_options::finalize()
+   // in the path, as appropriate.
+   this->add_sysroot();
+ 
+-  // --dynamic-list overrides -Bsymbolic and -Bsymbolic-functions.
+-  if (this->have_dynamic_list())
+-{
+-  this->set_Bsymbolic(false);
+-  this->set_Bsymbolic_functions(false);
+-}
+-
+   // Now that we've normalized the options, check for contradictory ones.
+   if (this->shared() && this->is_static())
+ gold_fatal(_("-shared and -static are incompatible"));
+diff --git a/gold/symtab.h b/gold/symtab.h
+index 

[arch-commits] Commit in binutils/repos (6 files)

2016-05-02 Thread Allan McRae
Date: Monday, May 2, 2016 @ 13:56:00
  Author: allan
Revision: 266748

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  binutils/repos/staging-i686/
  binutils/repos/staging-i686/PKGBUILD
(from rev 266747, binutils/trunk/PKGBUILD)
  binutils/repos/staging-i686/binutils-e9c1bdad.patch
(from rev 266747, binutils/trunk/binutils-e9c1bdad.patch)
  binutils/repos/staging-x86_64/
  binutils/repos/staging-x86_64/PKGBUILD
(from rev 266747, binutils/trunk/PKGBUILD)
  binutils/repos/staging-x86_64/binutils-e9c1bdad.patch
(from rev 266747, binutils/trunk/binutils-e9c1bdad.patch)

+
 staging-i686/PKGBUILD  |   69 +++
 staging-i686/binutils-e9c1bdad.patch   |   78 +++
 staging-x86_64/PKGBUILD|   69 +++
 staging-x86_64/binutils-e9c1bdad.patch |   78 +++
 4 files changed, 294 insertions(+)

Copied: binutils/repos/staging-i686/PKGBUILD (from rev 266747, 
binutils/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2016-05-02 11:56:00 UTC (rev 266748)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Allan McRae 
+
+# toolchain build order: 
linux-api-headers->glibc->binutils->gcc->binutils->glibc
+
+pkgname=binutils
+pkgver=2.26
+pkgrel=4
+_commit=43e2c3de
+pkgdesc="A set of programs to assemble and manipulate binary and object files"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc>=2.23' 'zlib')
+makedepends=('git')
+checkdepends=('dejagnu' 'bc')
+conflicts=('binutils-multilib')
+replaces=('binutils-multilib')
+options=('staticlibs' '!distcc' '!ccache')
+source=(git://sourceware.org/git/binutils-gdb.git#commit=${_commit})
+md5sums=('SKIP')
+
+prepare() {
+  cd binutils-gdb
+
+  # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+
+  mkdir ${srcdir}/binutils-build
+}
+
+build() {
+  cd binutils-build
+
+  ../binutils-gdb/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-threads --enable-shared --with-pic \
+--enable-ld=default --enable-gold --enable-plugins \
+--enable-deterministic-archives \
+--disable-werror --disable-gdb
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=/usr
+}
+
+check() {
+  cd binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # ignore failures in gold testsuite...
+  make -k LDFLAGS="" check || true
+}
+
+package() {
+  cd binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+
+  # Remove unwanted files
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # No shared linking to these files outside binutils
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo "INPUT ( /usr/lib/libbfd.a -liberty -lz -ldl )" > 
"$pkgdir"/usr/lib/libbfd.so
+  echo "INPUT ( /usr/lib/libopcodes.a -lbfd )" > 
"$pkgdir"/usr/lib/libopcodes.so
+}

Copied: binutils/repos/staging-i686/binutils-e9c1bdad.patch (from rev 266747, 
binutils/trunk/binutils-e9c1bdad.patch)
===
--- staging-i686/binutils-e9c1bdad.patch(rev 0)
+++ staging-i686/binutils-e9c1bdad.patch2016-05-02 11:56:00 UTC (rev 
266748)
@@ -0,0 +1,78 @@
+diff --git a/gold/layout.cc b/gold/layout.cc
+index bcdaac8..7836640 100644
+--- a/gold/layout.cc
 b/gold/layout.cc
+@@ -4873,7 +4873,8 @@ Layout::finish_dynamic_section(const Input_objects* 
input_objects,
+ flags |= elfcpp::DF_STATIC_TLS;
+   if (parameters->options().origin())
+ flags |= elfcpp::DF_ORIGIN;
+-  if (parameters->options().Bsymbolic())
++  if (parameters->options().Bsymbolic()
++  && !parameters->options().have_dynamic_list())
+ {
+   flags |= elfcpp::DF_SYMBOLIC;
+   // Add DT_SYMBOLIC for compatibility with older loaders.
+diff --git a/gold/options.cc b/gold/options.cc
+index 7eb8f27..7f1f69e 100644
+--- a/gold/options.cc
 b/gold/options.cc
+@@ -1200,13 +1200,6 @@ General_options::finalize()
+   // in the path, as appropriate.
+   this->add_sysroot();
+ 
+-  // --dynamic-list overrides -Bsymbolic and -Bsymbolic-functions.
+-  if (this->have_dynamic_list())
+-{
+-  this->set_Bsymbolic(false);
+-  this->set_Bsymbolic_functions(false);
+-}
+-
+   // Now that we've normalized the options, check for contradictory ones.
+   if (this->shared() && this->is_static())
+ gold_fatal(_("-shared and -static are incompatible"));
+diff --git a/gold/symtab.h b/gold/symtab.h
+index 

[arch-commits] Commit in binutils/repos (6 files)

2014-12-26 Thread Allan McRae
Date: Saturday, December 27, 2014 @ 03:50:02
  Author: allan
Revision: 228066

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  binutils/repos/staging-i686/
  binutils/repos/staging-i686/PKGBUILD
(from rev 228065, binutils/trunk/PKGBUILD)
  binutils/repos/staging-i686/binutils.install
(from rev 228065, binutils/trunk/binutils.install)
  binutils/repos/staging-x86_64/
  binutils/repos/staging-x86_64/PKGBUILD
(from rev 228065, binutils/trunk/PKGBUILD)
  binutils/repos/staging-x86_64/binutils.install
(from rev 228065, binutils/trunk/binutils.install)

-+
 staging-i686/PKGBUILD   |   67 ++
 staging-i686/binutils.install   |   17 +
 staging-x86_64/PKGBUILD |   67 ++
 staging-x86_64/binutils.install |   17 +
 4 files changed, 168 insertions(+)

Copied: binutils/repos/staging-i686/PKGBUILD (from rev 228065, 
binutils/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2014-12-27 02:50:02 UTC (rev 228066)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.25
+pkgrel=1
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.20' 'zlib')
+checkdepends=('dejagnu' 'bc')
+conflicts=('binutils-multilib')
+replaces=('binutils-multilib')
+options=('staticlibs' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig})
+md5sums=('d9f3303f802a5b6b0bb73a335ab89d66'
+ 'SKIP')
+validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93')  # Tristan Gingold
+
+prepare() {
+  cd ${srcdir}/binutils-${pkgver}
+
+  # hack! - libiberty configure tests for header files using $CPP $CPPFLAGS
+  sed -i /ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/ libiberty/configure
+
+  mkdir ${srcdir}/binutils-build
+}
+
+build() {
+  cd ${srcdir}/binutils-build
+
+  ${srcdir}/binutils-${pkgver}/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-threads --enable-shared --with-pic \
+--enable-ld=default --enable-gold --enable-plugins \
+--disable-werror
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=/usr
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # ignore failures in gold testsuite...
+  make -k LDFLAGS= check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+
+  # Remove unwanted files
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # No shared linking to these files outside binutils
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+}

Copied: binutils/repos/staging-i686/binutils.install (from rev 228065, 
binutils/trunk/binutils.install)
===
--- staging-i686/binutils.install   (rev 0)
+++ staging-i686/binutils.install   2014-12-27 02:50:02 UTC (rev 228066)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info gprof.info ld.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+

Copied: binutils/repos/staging-x86_64/PKGBUILD (from rev 228065, 
binutils/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2014-12-27 02:50:02 UTC (rev 228066)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.25
+pkgrel=1
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.20' 'zlib')
+checkdepends=('dejagnu' 'bc')
+conflicts=('binutils-multilib')
+replaces=('binutils-multilib')
+options=('staticlibs' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig})
+md5sums=('d9f3303f802a5b6b0bb73a335ab89d66'
+ 

[arch-commits] Commit in binutils/repos (6 files)

2013-01-03 Thread Allan McRae
Date: Thursday, January 3, 2013 @ 07:50:31
  Author: allan
Revision: 174264

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 174263, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils.install
(from rev 174263, binutils/trunk/binutils.install)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 174263, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils.install
(from rev 174263, binutils/trunk/binutils.install)

-+
 testing-i686/PKGBUILD   |   65 ++
 testing-i686/binutils.install   |   17 +
 testing-x86_64/PKGBUILD |   65 ++
 testing-x86_64/binutils.install |   17 +
 4 files changed, 164 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 174263, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2013-01-03 12:50:31 UTC (rev 174264)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.23.1
+pkgrel=3
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.17' 'zlib')
+checkdepends=('dejagnu' 'bc')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig})
+md5sums=('33adb18c3048d057ac58d07a3f1adb38'
+ '1869b37216e7d7eff7e335a69e0882fd')
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  ${srcdir}/binutils-${pkgver}/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads \
+--with-pic --enable-shared \
+--disable-werror --disable-multilib
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # do not abort on errors - manually check log files
+  make LDFLAGS= -k check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils-${pkgver}/include/libiberty.h 
${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils-${pkgver}/include/demangle.h 
${pkgdir}/usr/include
+
+  # Install PIC libiberty.a
+  install -m644 libiberty/pic/libiberty.a ${pkgdir}/usr/lib
+
+  # Remove unwanted files
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+  rm ${pkgdir}/usr/share/info/{configure,standards}.info
+
+  # No shared linking to these files outside binutils
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+}

Copied: binutils/repos/testing-i686/binutils.install (from rev 174263, 
binutils/trunk/binutils.install)
===
--- testing-i686/binutils.install   (rev 0)
+++ testing-i686/binutils.install   2013-01-03 12:50:31 UTC (rev 174264)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info gprof.info ld.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+

Copied: binutils/repos/testing-x86_64/PKGBUILD (from rev 174263, 
binutils/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2013-01-03 12:50:31 UTC (rev 174264)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.23.1
+pkgrel=3
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.17' 'zlib')
+checkdepends=('dejagnu' 'bc')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig})

[arch-commits] Commit in binutils/repos (6 files)

2012-12-26 Thread Allan McRae
Date: Wednesday, December 26, 2012 @ 06:23:30
  Author: allan
Revision: 173868

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  binutils/repos/staging-i686/
  binutils/repos/staging-i686/PKGBUILD
(from rev 173867, binutils/trunk/PKGBUILD)
  binutils/repos/staging-i686/binutils.install
(from rev 173867, binutils/trunk/binutils.install)
  binutils/repos/staging-x86_64/
  binutils/repos/staging-x86_64/PKGBUILD
(from rev 173867, binutils/trunk/PKGBUILD)
  binutils/repos/staging-x86_64/binutils.install
(from rev 173867, binutils/trunk/binutils.install)

-+
 staging-i686/PKGBUILD   |   87 ++
 staging-i686/binutils.install   |   17 +++
 staging-x86_64/PKGBUILD |   87 ++
 staging-x86_64/binutils.install |   17 +++
 4 files changed, 208 insertions(+)

Copied: binutils/repos/staging-i686/PKGBUILD (from rev 173867, 
binutils/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2012-12-26 11:23:30 UTC (rev 173868)
@@ -0,0 +1,87 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.23.1
+pkgrel=2
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.17' 'zlib')
+checkdepends=('dejagnu' 'bc')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig})
+md5sums=('33adb18c3048d057ac58d07a3f1adb38'
+ '1869b37216e7d7eff7e335a69e0882fd')
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  ${srcdir}/binutils-${pkgver}/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads --enable-shared \
+--disable-werror --disable-multilib
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+
+  # Rebuild libopcodes.a with -fPIC
+  cp -a opcodes opcodes-pic
+  make -C opcodes-pic clean 
+  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # do not abort on errors - manually check log files
+  make LDFLAGS= -k check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils-${pkgver}/include/libiberty.h 
${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils-${pkgver}/include/demangle.h 
${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # why are these distributed with binutils?
+  rm ${pkgdir}/usr/share/info/{configure,standards}.info
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/staging-i686/binutils.install (from rev 173867, 
binutils/trunk/binutils.install)
===
--- staging-i686/binutils.install   (rev 0)
+++ staging-i686/binutils.install   2012-12-26 11:23:30 UTC (rev 173868)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info gprof.info ld.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+

Copied: 

[arch-commits] Commit in binutils/repos (6 files)

2012-11-13 Thread Allan McRae
Date: Tuesday, November 13, 2012 @ 19:06:05
  Author: allan
Revision: 170946

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 170945, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils.install
(from rev 170945, binutils/trunk/binutils.install)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 170945, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils.install
(from rev 170945, binutils/trunk/binutils.install)

-+
 testing-i686/PKGBUILD   |   87 ++
 testing-i686/binutils.install   |   17 +++
 testing-x86_64/PKGBUILD |   87 ++
 testing-x86_64/binutils.install |   17 +++
 4 files changed, 208 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 170945, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-11-14 00:06:05 UTC (rev 170946)
@@ -0,0 +1,87 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.23.1
+pkgrel=1
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.16' 'zlib')
+checkdepends=('dejagnu' 'bc')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig})
+md5sums=('33adb18c3048d057ac58d07a3f1adb38'
+ '1869b37216e7d7eff7e335a69e0882fd')
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  ${srcdir}/binutils-${pkgver}/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads --enable-shared \
+--disable-werror --disable-multilib
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+
+  # Rebuild libopcodes.a with -fPIC
+  cp -a opcodes opcodes-pic
+  make -C opcodes-pic clean 
+  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # do not abort on errors - manually check log files
+  make LDFLAGS= -k check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils-${pkgver}/include/libiberty.h 
${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils-${pkgver}/include/demangle.h 
${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # why are these distributed with binutils?
+  rm ${pkgdir}/usr/share/info/{configure,standards}.info
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils.install (from rev 170945, 
binutils/trunk/binutils.install)
===
--- testing-i686/binutils.install   (rev 0)
+++ testing-i686/binutils.install   2012-11-14 00:06:05 UTC (rev 170946)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info gprof.info ld.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+

Copied: 

[arch-commits] Commit in binutils/repos (6 files)

2012-10-24 Thread Allan McRae
Date: Wednesday, October 24, 2012 @ 23:29:55
  Author: allan
Revision: 169653

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 169652, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils.install
(from rev 169652, binutils/trunk/binutils.install)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 169652, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils.install
(from rev 169652, binutils/trunk/binutils.install)

-+
 testing-i686/PKGBUILD   |   84 ++
 testing-i686/binutils.install   |   17 +++
 testing-x86_64/PKGBUILD |   84 ++
 testing-x86_64/binutils.install |   17 +++
 4 files changed, 202 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 169652, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-10-25 03:29:55 UTC (rev 169653)
@@ -0,0 +1,84 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.23
+pkgrel=1
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.16' 'zlib')
+checkdepends=('dejagnu' 'bc')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2{,.sig})
+md5sums=('6e6c85eb4468501051ae209c9e2a7ecc'
+ '46ca898c6c7ab8f35c676a965c7ce804')
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  ${srcdir}/binutils-${pkgver}/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--with-bugurl=https://bugs.archlinux.org/ \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads --enable-shared \
+--disable-werror --disable-multilib
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+
+  # Rebuild libopcodes.a with -fPIC
+  cp -a opcodes opcodes-pic
+  make -C opcodes-pic clean 
+  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+  
+  # unset LDFLAGS as testsuite makes assumptions about which ones are active
+  # do not abort on errors - manually check log files
+  make LDFLAGS= -k check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils-${pkgver}/include/libiberty.h 
${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils-${pkgver}/include/demangle.h 
${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils.install (from rev 169652, 
binutils/trunk/binutils.install)
===
--- testing-i686/binutils.install   (rev 0)
+++ testing-i686/binutils.install   2012-10-25 03:29:55 UTC (rev 169653)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info 
standards.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+

Copied: binutils/repos/testing-x86_64/PKGBUILD (from rev 169652, 
binutils/trunk/PKGBUILD)

[arch-commits] Commit in binutils/repos (6 files)

2012-08-11 Thread Allan McRae
Date: Saturday, August 11, 2012 @ 04:23:19
  Author: allan
Revision: 165120

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  binutils/repos/staging-i686/
  binutils/repos/staging-i686/PKGBUILD
(from rev 165119, binutils/trunk/PKGBUILD)
  binutils/repos/staging-i686/binutils.install
(from rev 165119, binutils/trunk/binutils.install)
  binutils/repos/staging-x86_64/
  binutils/repos/staging-x86_64/PKGBUILD
(from rev 165119, binutils/trunk/PKGBUILD)
  binutils/repos/staging-x86_64/binutils.install
(from rev 165119, binutils/trunk/binutils.install)

-+
 staging-i686/PKGBUILD   |   96 ++
 staging-i686/binutils.install   |   17 ++
 staging-x86_64/PKGBUILD |   96 ++
 staging-x86_64/binutils.install |   17 ++
 4 files changed, 226 insertions(+)

Copied: binutils/repos/staging-i686/PKGBUILD (from rev 165119, 
binutils/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2012-08-11 08:23:19 UTC (rev 165120)
@@ -0,0 +1,96 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=10
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.16' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
+md5sums=('de2ac4298732827f8af706fc24020330')
+
+mksource() {
+  mkdir ${pkgname}-${_date}
+  cd ${pkgname}-${_date}
+  export _TAG=binutils-2_22-branch
+  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
+  cvs -z9 co -r $_TAG binutils || return 1
+  mv src binutils
+  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
+}
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
+
+  ${srcdir}/binutils/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads \
+--enable-shared $CONFIGFLAG
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+
+  # Rebuild libopcodes.a with -fPIC
+  cp -a opcodes opcodes-pic
+  make -C opcodes-pic clean 
+  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+
+  # do not abort on errors - manually check log files
+  # gold testsuite does not build with _FORTIFY_SOURCE (due to -O0 -Werror)
+  make CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/} \
+   CXXFLAGS=${CXXFLAGS/-D_FORTIFY_SOURCE=2/} -k check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/staging-i686/binutils.install (from rev 165119, 
binutils/trunk/binutils.install)
===
--- staging-i686/binutils.install   (rev 0)
+++ staging-i686/binutils.install   2012-08-11 08:23:19 UTC (rev 165120)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info 
standards.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info 

[arch-commits] Commit in binutils/repos (6 files)

2012-07-11 Thread Allan McRae
Date: Wednesday, July 11, 2012 @ 08:24:16
  Author: allan
Revision: 163227

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 163226, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils.install
(from rev 163226, binutils/trunk/binutils.install)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 163226, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils.install
(from rev 163226, binutils/trunk/binutils.install)

-+
 testing-i686/PKGBUILD   |   96 ++
 testing-i686/binutils.install   |   17 ++
 testing-x86_64/PKGBUILD |   96 ++
 testing-x86_64/binutils.install |   17 ++
 4 files changed, 226 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 163226, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-07-11 12:24:16 UTC (rev 163227)
@@ -0,0 +1,96 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=9
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.16' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
+md5sums=('de2ac4298732827f8af706fc24020330')
+
+mksource() {
+  mkdir ${pkgname}-${_date}
+  cd ${pkgname}-${_date}
+  export _TAG=binutils-2_22-branch
+  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
+  cvs -z9 co -r $_TAG binutils || return 1
+  mv src binutils
+  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
+}
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
+
+  ${srcdir}/binutils/configure --prefix=/usr \
+--with-lib-path=/usr/lib:/usr/local/lib \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads \
+--enable-shared $CONFIGFLAG
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+
+  # Rebuild libopcodes.a with -fPIC
+  cp -a opcodes opcodes-pic
+  make -C opcodes-pic clean 
+  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+
+  # do not abort on errors - manually check log files
+  # gold testsuite does not build with _FORTIFY_SOURCE (due to -O0 -Werror)
+  make CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/} \
+   CXXFLAGS=${CXXFLAGS/-D_FORTIFY_SOURCE=2/} -k check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils.install (from rev 163226, 
binutils/trunk/binutils.install)
===
--- testing-i686/binutils.install   (rev 0)
+++ testing-i686/binutils.install   2012-07-11 12:24:16 UTC (rev 163227)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info 
standards.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info 

[arch-commits] Commit in binutils/repos (6 files)

2012-07-02 Thread Allan McRae
Date: Monday, July 2, 2012 @ 09:30:53
  Author: allan
Revision: 162862

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  binutils/repos/staging-i686/
  binutils/repos/staging-i686/PKGBUILD
(from rev 162861, binutils/trunk/PKGBUILD)
  binutils/repos/staging-i686/binutils.install
(from rev 162861, binutils/trunk/binutils.install)
  binutils/repos/staging-x86_64/
  binutils/repos/staging-x86_64/PKGBUILD
(from rev 162861, binutils/trunk/PKGBUILD)
  binutils/repos/staging-x86_64/binutils.install
(from rev 162861, binutils/trunk/binutils.install)

-+
 staging-i686/PKGBUILD   |   95 ++
 staging-i686/binutils.install   |   17 ++
 staging-x86_64/PKGBUILD |   95 ++
 staging-x86_64/binutils.install |   17 ++
 4 files changed, 224 insertions(+)

Copied: binutils/repos/staging-i686/PKGBUILD (from rev 162861, 
binutils/trunk/PKGBUILD)
===
--- staging-i686/PKGBUILD   (rev 0)
+++ staging-i686/PKGBUILD   2012-07-02 13:30:53 UTC (rev 162862)
@@ -0,0 +1,95 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=8
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.16' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
+md5sums=('de2ac4298732827f8af706fc24020330')
+
+mksource() {
+  mkdir ${pkgname}-${_date}
+  cd ${pkgname}-${_date}
+  export _TAG=binutils-2_22-branch
+  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
+  cvs -z9 co -r $_TAG binutils || return 1
+  mv src binutils
+  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
+}
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
+
+  ${srcdir}/binutils/configure --prefix=/usr \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads \
+--enable-shared $CONFIGFLAG
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+
+  # Rebuild libopcodes.a with -fPIC
+  cp -a opcodes opcodes-pic
+  make -C opcodes-pic clean 
+  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+
+  # do not abort on errors - manually check log files
+  # gold testsuite does not build with _FORTIFY_SOURCE (due to -O0 -Werror)
+  make CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/} \
+   CXXFLAGS=${CXXFLAGS/-D_FORTIFY_SOURCE=2/} -k check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/staging-i686/binutils.install (from rev 162861, 
binutils/trunk/binutils.install)
===
--- staging-i686/binutils.install   (rev 0)
+++ staging-i686/binutils.install   2012-07-02 13:30:53 UTC (rev 162862)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info 
standards.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+

[arch-commits] Commit in binutils/repos (6 files)

2012-05-02 Thread Allan McRae
Date: Wednesday, May 2, 2012 @ 09:52:45
  Author: allan
Revision: 158075

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 158074, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils.install
(from rev 158074, binutils/trunk/binutils.install)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 158074, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils.install
(from rev 158074, binutils/trunk/binutils.install)

-+
 testing-i686/PKGBUILD   |   93 ++
 testing-i686/binutils.install   |   17 ++
 testing-x86_64/PKGBUILD |   93 ++
 testing-x86_64/binutils.install |   17 ++
 4 files changed, 220 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 158074, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-05-02 13:52:45 UTC (rev 158075)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=7
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.15' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
+md5sums=('de2ac4298732827f8af706fc24020330')
+
+mksource() {
+  mkdir ${pkgname}-${_date}
+  cd ${pkgname}-${_date}
+  export _TAG=binutils-2_22-branch
+  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
+  cvs -z9 co -r $_TAG binutils || return 1
+  mv src binutils
+  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
+}
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
+
+  ${srcdir}/binutils/configure --prefix=/usr \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads \
+--enable-shared $CONFIGFLAG
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+
+  # Rebuild libopcodes.a with -fPIC
+  cp -a opcodes opcodes-pic
+  make -C opcodes-pic clean 
+  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+
+  # do not abort on errors - manually check log files
+  make -k -j1 check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils.install (from rev 158074, 
binutils/trunk/binutils.install)
===
--- testing-i686/binutils.install   (rev 0)
+++ testing-i686/binutils.install   2012-05-02 13:52:45 UTC (rev 158075)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info 
standards.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 

[arch-commits] Commit in binutils/repos (6 files)

2012-05-02 Thread Allan McRae
Date: Wednesday, May 2, 2012 @ 18:27:05
  Author: allan
Revision: 158098

db-move: moved binutils from [testing] to [core] (i686)

Added:
  binutils/repos/core-i686/PKGBUILD
(from rev 158097, binutils/repos/testing-i686/PKGBUILD)
  binutils/repos/core-i686/binutils.install
(from rev 158097, binutils/repos/testing-i686/binutils.install)
Deleted:
  binutils/repos/core-i686/PKGBUILD
  binutils/repos/core-i686/binutils-2.22-ld-13621.patch
  binutils/repos/core-i686/binutils.install
  binutils/repos/testing-i686/

--+
 PKGBUILD |  192 +++--
 binutils-2.22-ld-13621.patch |   27 -
 binutils.install |   34 +++
 3 files changed, 110 insertions(+), 143 deletions(-)

Deleted: core-i686/PKGBUILD
===
--- core-i686/PKGBUILD  2012-05-02 22:03:19 UTC (rev 158097)
+++ core-i686/PKGBUILD  2012-05-02 22:27:05 UTC (rev 158098)
@@ -1,99 +0,0 @@
-# $Id$
-# Maintainer: Allan McRae al...@archlinux.org
-
-# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
-
-pkgname=binutils
-pkgver=2.22
-pkgrel=6
-_date=20120323
-pkgdesc=A set of programs to assemble and manipulate binary and object files
-arch=('i686' 'x86_64')
-url=http://www.gnu.org/software/binutils/;
-license=('GPL')
-groups=('base-devel')
-depends=('glibc=2.15' 'zlib')
-checkdepends=('dejagnu')
-options=('!libtool' '!distcc' '!ccache')
-install=binutils.install
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2
-binutils-2.22-ld-13621.patch)
-md5sums=('de2ac4298732827f8af706fc24020330'
- '86d9445914c9d51bfe575ecbac265be0')
-
-mksource() {
-  mkdir ${pkgname}-${_date}
-  cd ${pkgname}-${_date}
-  export _TAG=binutils-2_22-branch
-  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
-  cvs -z9 co -r $_TAG binutils || return 1
-  mv src binutils
-  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
-}
-
-build() {
-  cd ${srcdir}/binutils
-  # http://sourceware.org/bugzilla/show_bug.cgi?id=13621
-  patch -p1 -i $srcdir/binutils-2.22-ld-13621.patch
-
-  cd ${srcdir}
-  mkdir binutils-build  cd binutils-build
-
-  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
-
-  ${srcdir}/binutils/configure --prefix=/usr \
---enable-ld=default --enable-gold \
---enable-plugins --enable-threads \
---enable-shared $CONFIGFLAG
-
-  # check the host environment and makes sure all the necessary tools are 
available
-  make configure-host
-
-  make tooldir=${pkgdir}/usr
-
-  # Rebuild libiberty.a with -fPIC
-  cp -a libiberty libiberty-pic
-  make -C libiberty-pic clean
-  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
-
-  # Rebuild libbfd.a with -fPIC
-  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
-  cp -a bfd bfd-pic
-  make -C bfd-pic clean
-  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
-
-  # Rebuild libopcodes.a with -fPIC
-  cp -a opcodes opcodes-pic
-  make -C opcodes-pic clean 
-  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
-}
-
-check() {
-  cd ${srcdir}/binutils-build
-
-  # do not abort on errors - manually check log files
-  make -k -j1 check || true
-}
-
-package() {
-  cd ${srcdir}/binutils-build
-  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
-  
-  # Add some useful headers
-  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
-  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
-
-  # install libraries rebuilt with -fPIC
-  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
-  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
-  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
-
-  # Remove Windows/Novell specific man pages
-  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
-
-  # Remove these symlinks, they are not ABI stable.
-  # Programs should compile static to the .a file.
-  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
-  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
-  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
-}

Copied: binutils/repos/core-i686/PKGBUILD (from rev 158097, 
binutils/repos/testing-i686/PKGBUILD)
===
--- core-i686/PKGBUILD  (rev 0)
+++ core-i686/PKGBUILD  2012-05-02 22:27:05 UTC (rev 158098)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=7
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.15' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' 

[arch-commits] Commit in binutils/repos (6 files)

2012-05-02 Thread Allan McRae
Date: Wednesday, May 2, 2012 @ 18:27:06
  Author: allan
Revision: 158099

db-move: moved binutils from [testing] to [core] (x86_64)

Added:
  binutils/repos/core-x86_64/PKGBUILD
(from rev 158097, binutils/repos/testing-x86_64/PKGBUILD)
  binutils/repos/core-x86_64/binutils.install
(from rev 158097, binutils/repos/testing-x86_64/binutils.install)
Deleted:
  binutils/repos/core-x86_64/PKGBUILD
  binutils/repos/core-x86_64/binutils-2.22-ld-13621.patch
  binutils/repos/core-x86_64/binutils.install
  binutils/repos/testing-x86_64/

--+
 PKGBUILD |  192 +++--
 binutils-2.22-ld-13621.patch |   27 -
 binutils.install |   34 +++
 3 files changed, 110 insertions(+), 143 deletions(-)

Deleted: core-x86_64/PKGBUILD
===
--- core-x86_64/PKGBUILD2012-05-02 22:27:05 UTC (rev 158098)
+++ core-x86_64/PKGBUILD2012-05-02 22:27:06 UTC (rev 158099)
@@ -1,99 +0,0 @@
-# $Id$
-# Maintainer: Allan McRae al...@archlinux.org
-
-# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
-
-pkgname=binutils
-pkgver=2.22
-pkgrel=6
-_date=20120323
-pkgdesc=A set of programs to assemble and manipulate binary and object files
-arch=('i686' 'x86_64')
-url=http://www.gnu.org/software/binutils/;
-license=('GPL')
-groups=('base-devel')
-depends=('glibc=2.15' 'zlib')
-checkdepends=('dejagnu')
-options=('!libtool' '!distcc' '!ccache')
-install=binutils.install
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2
-binutils-2.22-ld-13621.patch)
-md5sums=('de2ac4298732827f8af706fc24020330'
- '86d9445914c9d51bfe575ecbac265be0')
-
-mksource() {
-  mkdir ${pkgname}-${_date}
-  cd ${pkgname}-${_date}
-  export _TAG=binutils-2_22-branch
-  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
-  cvs -z9 co -r $_TAG binutils || return 1
-  mv src binutils
-  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
-}
-
-build() {
-  cd ${srcdir}/binutils
-  # http://sourceware.org/bugzilla/show_bug.cgi?id=13621
-  patch -p1 -i $srcdir/binutils-2.22-ld-13621.patch
-
-  cd ${srcdir}
-  mkdir binutils-build  cd binutils-build
-
-  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
-
-  ${srcdir}/binutils/configure --prefix=/usr \
---enable-ld=default --enable-gold \
---enable-plugins --enable-threads \
---enable-shared $CONFIGFLAG
-
-  # check the host environment and makes sure all the necessary tools are 
available
-  make configure-host
-
-  make tooldir=${pkgdir}/usr
-
-  # Rebuild libiberty.a with -fPIC
-  cp -a libiberty libiberty-pic
-  make -C libiberty-pic clean
-  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
-
-  # Rebuild libbfd.a with -fPIC
-  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
-  cp -a bfd bfd-pic
-  make -C bfd-pic clean
-  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
-
-  # Rebuild libopcodes.a with -fPIC
-  cp -a opcodes opcodes-pic
-  make -C opcodes-pic clean 
-  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
-}
-
-check() {
-  cd ${srcdir}/binutils-build
-
-  # do not abort on errors - manually check log files
-  make -k -j1 check || true
-}
-
-package() {
-  cd ${srcdir}/binutils-build
-  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
-  
-  # Add some useful headers
-  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
-  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
-
-  # install libraries rebuilt with -fPIC
-  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
-  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
-  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
-
-  # Remove Windows/Novell specific man pages
-  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
-
-  # Remove these symlinks, they are not ABI stable.
-  # Programs should compile static to the .a file.
-  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
-  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
-  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
-}

Copied: binutils/repos/core-x86_64/PKGBUILD (from rev 158097, 
binutils/repos/testing-x86_64/PKGBUILD)
===
--- core-x86_64/PKGBUILD(rev 0)
+++ core-x86_64/PKGBUILD2012-05-02 22:27:06 UTC (rev 158099)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=7
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.15' 'zlib')

[arch-commits] Commit in binutils/repos (6 files)

2012-04-26 Thread Allan McRae
Date: Thursday, April 26, 2012 @ 20:50:15
  Author: allan
Revision: 157322

db-move: moved binutils from [testing] to [core] (i686)

Added:
  binutils/repos/core-i686/PKGBUILD
(from rev 157320, binutils/repos/testing-i686/PKGBUILD)
  binutils/repos/core-i686/binutils-2.22-ld-13621.patch
(from rev 157320, binutils/repos/testing-i686/binutils-2.22-ld-13621.patch)
  binutils/repos/core-i686/binutils.install
(from rev 157320, binutils/repos/testing-i686/binutils.install)
Deleted:
  binutils/repos/core-i686/PKGBUILD
  binutils/repos/core-i686/binutils.install
  binutils/repos/testing-i686/

--+
 PKGBUILD |  192 +
 binutils-2.22-ld-13621.patch |   27 +
 binutils.install |   34 +++
 3 files changed, 143 insertions(+), 110 deletions(-)

Deleted: core-i686/PKGBUILD
===
--- core-i686/PKGBUILD  2012-04-27 00:50:14 UTC (rev 157321)
+++ core-i686/PKGBUILD  2012-04-27 00:50:15 UTC (rev 157322)
@@ -1,93 +0,0 @@
-# $Id$
-# Maintainer: Allan McRae al...@archlinux.org
-
-# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
-
-pkgname=binutils
-pkgver=2.22
-pkgrel=5
-_date=20120323
-pkgdesc=A set of programs to assemble and manipulate binary and object files
-arch=('i686' 'x86_64')
-url=http://www.gnu.org/software/binutils/;
-license=('GPL')
-groups=('base-devel')
-depends=('glibc=2.15' 'zlib')
-checkdepends=('dejagnu')
-options=('!libtool' '!distcc' '!ccache')
-install=binutils.install
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
-md5sums=('de2ac4298732827f8af706fc24020330')
-
-mksource() {
-  mkdir ${pkgname}-${_date}
-  cd ${pkgname}-${_date}
-  export _TAG=binutils-2_22-branch
-  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
-  cvs -z9 co -r $_TAG binutils || return 1
-  mv src binutils
-  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
-}
-
-build() {
-  cd ${srcdir}
-  mkdir binutils-build  cd binutils-build
-
-  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
-
-  ${srcdir}/binutils/configure --prefix=/usr \
---enable-ld=default --enable-gold \
---enable-plugins --enable-threads \
---enable-shared $CONFIGFLAG
-
-  # check the host environment and makes sure all the necessary tools are 
available
-  make configure-host
-
-  make tooldir=${pkgdir}/usr
-
-  # Rebuild libiberty.a with -fPIC
-  cp -a libiberty libiberty-pic
-  make -C libiberty-pic clean
-  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
-
-  # Rebuild libbfd.a with -fPIC
-  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
-  cp -a bfd bfd-pic
-  make -C bfd-pic clean
-  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
-
-  # Rebuild libopcodes.a with -fPIC
-  cp -a opcodes opcodes-pic
-  make -C opcodes-pic clean 
-  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
-}
-
-check() {
-  cd ${srcdir}/binutils-build
-
-  # do not abort on errors - manually check log files
-  make -k -j1 check || true
-}
-
-package() {
-  cd ${srcdir}/binutils-build
-  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
-  
-  # Add some useful headers
-  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
-  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
-
-  # install libraries rebuilt with -fPIC
-  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
-  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
-  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
-
-  # Remove Windows/Novell specific man pages
-  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
-
-  # Remove these symlinks, they are not ABI stable.
-  # Programs should compile static to the .a file.
-  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
-  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
-  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
-}

Copied: binutils/repos/core-i686/PKGBUILD (from rev 157320, 
binutils/repos/testing-i686/PKGBUILD)
===
--- core-i686/PKGBUILD  (rev 0)
+++ core-i686/PKGBUILD  2012-04-27 00:50:15 UTC (rev 157322)
@@ -0,0 +1,99 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=6
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.15' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2
+

[arch-commits] Commit in binutils/repos (6 files)

2012-04-26 Thread Allan McRae
Date: Thursday, April 26, 2012 @ 20:50:16
  Author: allan
Revision: 157323

db-move: moved binutils from [testing] to [core] (x86_64)

Added:
  binutils/repos/core-x86_64/PKGBUILD
(from rev 157320, binutils/repos/testing-x86_64/PKGBUILD)
  binutils/repos/core-x86_64/binutils-2.22-ld-13621.patch
(from rev 157320, 
binutils/repos/testing-x86_64/binutils-2.22-ld-13621.patch)
  binutils/repos/core-x86_64/binutils.install
(from rev 157320, binutils/repos/testing-x86_64/binutils.install)
Deleted:
  binutils/repos/core-x86_64/PKGBUILD
  binutils/repos/core-x86_64/binutils.install
  binutils/repos/testing-x86_64/

--+
 PKGBUILD |  192 +
 binutils-2.22-ld-13621.patch |   27 +
 binutils.install |   34 +++
 3 files changed, 143 insertions(+), 110 deletions(-)

Deleted: core-x86_64/PKGBUILD
===
--- core-x86_64/PKGBUILD2012-04-27 00:50:15 UTC (rev 157322)
+++ core-x86_64/PKGBUILD2012-04-27 00:50:16 UTC (rev 157323)
@@ -1,93 +0,0 @@
-# $Id$
-# Maintainer: Allan McRae al...@archlinux.org
-
-# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
-
-pkgname=binutils
-pkgver=2.22
-pkgrel=5
-_date=20120323
-pkgdesc=A set of programs to assemble and manipulate binary and object files
-arch=('i686' 'x86_64')
-url=http://www.gnu.org/software/binutils/;
-license=('GPL')
-groups=('base-devel')
-depends=('glibc=2.15' 'zlib')
-checkdepends=('dejagnu')
-options=('!libtool' '!distcc' '!ccache')
-install=binutils.install
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
-md5sums=('de2ac4298732827f8af706fc24020330')
-
-mksource() {
-  mkdir ${pkgname}-${_date}
-  cd ${pkgname}-${_date}
-  export _TAG=binutils-2_22-branch
-  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
-  cvs -z9 co -r $_TAG binutils || return 1
-  mv src binutils
-  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
-}
-
-build() {
-  cd ${srcdir}
-  mkdir binutils-build  cd binutils-build
-
-  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
-
-  ${srcdir}/binutils/configure --prefix=/usr \
---enable-ld=default --enable-gold \
---enable-plugins --enable-threads \
---enable-shared $CONFIGFLAG
-
-  # check the host environment and makes sure all the necessary tools are 
available
-  make configure-host
-
-  make tooldir=${pkgdir}/usr
-
-  # Rebuild libiberty.a with -fPIC
-  cp -a libiberty libiberty-pic
-  make -C libiberty-pic clean
-  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
-
-  # Rebuild libbfd.a with -fPIC
-  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
-  cp -a bfd bfd-pic
-  make -C bfd-pic clean
-  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
-
-  # Rebuild libopcodes.a with -fPIC
-  cp -a opcodes opcodes-pic
-  make -C opcodes-pic clean 
-  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
-}
-
-check() {
-  cd ${srcdir}/binutils-build
-
-  # do not abort on errors - manually check log files
-  make -k -j1 check || true
-}
-
-package() {
-  cd ${srcdir}/binutils-build
-  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
-  
-  # Add some useful headers
-  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
-  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
-
-  # install libraries rebuilt with -fPIC
-  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
-  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
-  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
-
-  # Remove Windows/Novell specific man pages
-  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
-
-  # Remove these symlinks, they are not ABI stable.
-  # Programs should compile static to the .a file.
-  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
-  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
-  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
-}

Copied: binutils/repos/core-x86_64/PKGBUILD (from rev 157320, 
binutils/repos/testing-x86_64/PKGBUILD)
===
--- core-x86_64/PKGBUILD(rev 0)
+++ core-x86_64/PKGBUILD2012-04-27 00:50:16 UTC (rev 157323)
@@ -0,0 +1,99 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=6
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.15' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install

[arch-commits] Commit in binutils/repos (6 files)

2012-03-24 Thread Allan McRae
Date: Saturday, March 24, 2012 @ 04:47:35
  Author: allan
Revision: 154190

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 154189, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils.install
(from rev 154189, binutils/trunk/binutils.install)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 154189, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils.install
(from rev 154189, binutils/trunk/binutils.install)

-+
 testing-i686/PKGBUILD   |   93 ++
 testing-i686/binutils.install   |   17 ++
 testing-x86_64/PKGBUILD |   93 ++
 testing-x86_64/binutils.install |   17 ++
 4 files changed, 220 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 154189, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2012-03-24 08:47:35 UTC (rev 154190)
@@ -0,0 +1,93 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=5
+_date=20120323
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.15' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
+md5sums=('de2ac4298732827f8af706fc24020330')
+
+mksource() {
+  mkdir ${pkgname}-${_date}
+  cd ${pkgname}-${_date}
+  export _TAG=binutils-2_22-branch
+  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
+  cvs -z9 co -r $_TAG binutils || return 1
+  mv src binutils
+  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
+}
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
+
+  ${srcdir}/binutils/configure --prefix=/usr \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads \
+--enable-shared $CONFIGFLAG
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+
+  # Rebuild libopcodes.a with -fPIC
+  cp -a opcodes opcodes-pic
+  make -C opcodes-pic clean 
+  make CFLAGS=$CFLAGS -fPIC -C opcodes-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+
+  # do not abort on errors - manually check log files
+  make -k -j1 check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty-pic/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+  install -m644 opcodes/libopcodes.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils.install (from rev 154189, 
binutils/trunk/binutils.install)
===
--- testing-i686/binutils.install   (rev 0)
+++ testing-i686/binutils.install   2012-03-24 08:47:35 UTC (rev 154190)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info 
standards.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 

[arch-commits] Commit in binutils/repos (6 files)

2011-12-27 Thread Allan McRae
Date: Tuesday, December 27, 2011 @ 05:28:22
  Author: allan
Revision: 145686

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 145685, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils.install
(from rev 145685, binutils/trunk/binutils.install)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 145685, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils.install
(from rev 145685, binutils/trunk/binutils.install)

-+
 testing-i686/PKGBUILD   |   87 ++
 testing-i686/binutils.install   |   17 +++
 testing-x86_64/PKGBUILD |   87 ++
 testing-x86_64/binutils.install |   17 +++
 4 files changed, 208 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 145685, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2011-12-27 10:28:22 UTC (rev 145686)
@@ -0,0 +1,87 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=3
+_date=20111227
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+groups=('base-devel')
+depends=('glibc=2.14' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
+md5sums=('c2377089c15bb1a1bfaeca8d0e59dd4d')
+
+mksource() {
+  mkdir ${pkgname}-${_date}
+  cd ${pkgname}-${_date}
+  export _TAG=binutils-2_22-branch
+  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
+  cvs -z9 co -r $_TAG binutils || return 1
+  mv src binutils
+  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
+}
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
+
+  ${srcdir}/binutils/configure --prefix=/usr \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads \
+--enable-shared $CONFIGFLAG
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+
+  # Rebuild libiberty.a with -fPIC
+  cp -a libiberty libiberty-pic
+  make -C libiberty-pic clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty-pic
+
+  # Rebuild libbfd.a with -fPIC
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  cp -a bfd bfd-pic
+  make -C bfd-pic clean
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd-pic
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+
+  # do not abort on errors - manually check log files
+  make -k -j1 check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
+
+  # install libraries rebuilt with -fPIC
+  install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib
+  install -m644 bfd-pic/libbfd.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils.install (from rev 145685, 
binutils/trunk/binutils.install)
===
--- testing-i686/binutils.install   (rev 0)
+++ testing-i686/binutils.install   2011-12-27 10:28:22 UTC (rev 145686)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info 
standards.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+

Copied: binutils/repos/testing-x86_64/PKGBUILD (from rev 145685, 
binutils/trunk/PKGBUILD)
===
--- 

[arch-commits] Commit in binutils/repos (6 files)

2011-12-02 Thread Allan McRae
Date: Friday, December 2, 2011 @ 16:03:50
  Author: allan
Revision: 144069

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  binutils/repos/testing-i686/
  binutils/repos/testing-i686/PKGBUILD
(from rev 144068, binutils/trunk/PKGBUILD)
  binutils/repos/testing-i686/binutils.install
(from rev 144068, binutils/trunk/binutils.install)
  binutils/repos/testing-x86_64/
  binutils/repos/testing-x86_64/PKGBUILD
(from rev 144068, binutils/trunk/PKGBUILD)
  binutils/repos/testing-x86_64/binutils.install
(from rev 144068, binutils/trunk/binutils.install)

-+
 testing-i686/PKGBUILD   |   82 ++
 testing-i686/binutils.install   |   17 +++
 testing-x86_64/PKGBUILD |   82 ++
 testing-x86_64/binutils.install |   17 +++
 4 files changed, 198 insertions(+)

Copied: binutils/repos/testing-i686/PKGBUILD (from rev 144068, 
binutils/trunk/PKGBUILD)
===
--- testing-i686/PKGBUILD   (rev 0)
+++ testing-i686/PKGBUILD   2011-12-02 21:03:50 UTC (rev 144069)
@@ -0,0 +1,82 @@
+# $Id$
+# Maintainer: Allan McRae al...@archlinux.org
+
+# toolchain build order: 
linux-api-headers-glibc-binutils-gcc-binutils-glibc
+
+pkgname=binutils
+pkgver=2.22
+pkgrel=1
+_date=20111201
+pkgdesc=A set of programs to assemble and manipulate binary and object files
+arch=('i686' 'x86_64')
+url=http://www.gnu.org/software/binutils/;
+license=('GPL')
+depends=('glibc=2.14' 'zlib')
+checkdepends=('dejagnu')
+options=('!libtool' '!distcc' '!ccache')
+install=binutils.install
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
+md5sums=('77c15027ac112c65fd5f73ca91b0651c')
+
+mksource() {
+  mkdir ${pkgname}-${_date}
+  cd ${pkgname}-${_date}
+  export _TAG=binutils-2_22-branch
+  export 'CVSROOT=:pserver:anon...@sourceware.org:/cvs/src'
+  cvs -z9 co -r $_TAG binutils || return 1
+  mv src binutils
+  tar -cvjf ../binutils-${pkgver}_${_date}.tar.bz2 binutils/*
+}
+
+build() {
+  cd ${srcdir}
+  mkdir binutils-build  cd binutils-build
+
+  [[ $CARCH == x86_64 ]]  CONFIGFLAG=--enable-64-bit-bfd 
--disable-multilib
+
+  ${srcdir}/binutils/configure --prefix=/usr \
+--enable-ld=default --enable-gold \
+--enable-plugins --enable-threads \
+--enable-shared $CONFIGFLAG
+
+  # check the host environment and makes sure all the necessary tools are 
available
+  make configure-host
+
+  make tooldir=${pkgdir}/usr
+}
+
+check() {
+  cd ${srcdir}/binutils-build
+
+  # do not abort on errors - manually check log files
+  make -k -j1 check || true
+}
+
+package() {
+  cd ${srcdir}/binutils-build
+  make prefix=${pkgdir}/usr tooldir=${pkgdir}/usr install
+  
+  # Add some useful headers
+  install -m644 ${srcdir}/binutils/include/libiberty.h ${pkgdir}/usr/include
+  install -m644 ${srcdir}/binutils/include/demangle.h ${pkgdir}/usr/include
+
+  # Rebuild libiberty.a with -fPIC
+  make -C libiberty clean
+  make CFLAGS=$CFLAGS -fPIC -C libiberty
+  install -m644 libiberty/libiberty.a ${pkgdir}/usr/lib
+
+  # Rebuild libbfd.a with -fPIC
+  make -C bfd clean
+  # hidden visability prevent 3rd party shared libraries exporting bfd 
non-stable API
+  make CFLAGS=$CFLAGS -fPIC -fvisibility=hidden -C bfd
+  install -m644 bfd/libbfd.a ${pkgdir}/usr/lib
+
+  # Remove Windows/Novell specific man pages
+  rm -f ${pkgdir}/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}*
+
+  # Remove these symlinks, they are not ABI stable.
+  # Programs should compile static to the .a file.
+  rm -f ${pkgdir}/usr/lib/lib{bfd,opcodes}.so
+  echo INPUT ( /usr/lib/libbfd.a -liberty -lz ) ${pkgdir}/usr/lib/libbfd.so
+  echo INPUT ( /usr/lib/libopcodes.a -lbfd ) ${pkgdir}/usr/lib/libopcodes.so
+}

Copied: binutils/repos/testing-i686/binutils.install (from rev 144068, 
binutils/trunk/binutils.install)
===
--- testing-i686/binutils.install   (rev 0)
+++ testing-i686/binutils.install   2011-12-02 21:03:50 UTC (rev 144069)
@@ -0,0 +1,17 @@
+infodir=usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info 
standards.info)
+
+post_upgrade() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+install-info --delete $infodir/$file.gz $infodir/dir 2 /dev/null
+  done
+}
+

Copied: binutils/repos/testing-x86_64/PKGBUILD (from rev 144068, 
binutils/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2011-12-02 21:03:50 UTC (rev 144069)
@@ -0,0 +1,82 @@
+# $Id$
+#