From f60c4c33050fd49d8f867c691e2f45c2c8e52cb3 Mon Sep 17 00:00:00 2001 From: Lukc Date: Sat, 11 Dec 2010 22:34:32 +0100 Subject: Recette des binutils ajout?e dans le d?p?t. --- binutils/.footprint | 72 +++++++++++++++++++++++++++++++++++++++++++ binutils/.md5sum | 1 + binutils/.sha256sum | 1 + binutils/Pkgfile | 24 +++++++++++++++ binutils/Pkgfile.old | 26 ++++++++++++++++ binutils/test-demangle.c.diff | 40 ++++++++++++++++++++++++ 6 files changed, 164 insertions(+) create mode 100644 binutils/.footprint create mode 100644 binutils/.md5sum create mode 100644 binutils/.sha256sum create mode 100644 binutils/Pkgfile create mode 100644 binutils/Pkgfile.old create mode 100644 binutils/test-demangle.c.diff (limited to 'binutils') diff --git a/binutils/.footprint b/binutils/.footprint new file mode 100644 index 0000000..dda183a --- /dev/null +++ b/binutils/.footprint @@ -0,0 +1,72 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/addr2line +-rwxr-xr-x root/root usr/bin/ar +-rwxr-xr-x root/root usr/bin/as +-rwxr-xr-x root/root usr/bin/c++filt +-rwxr-xr-x root/root usr/bin/gprof +-rwxr-xr-x root/root usr/bin/ld +-rwxr-xr-x root/root usr/bin/nm +-rwxr-xr-x root/root usr/bin/objcopy +-rwxr-xr-x root/root usr/bin/objdump +-rwxr-xr-x root/root usr/bin/ranlib +-rwxr-xr-x root/root usr/bin/readelf +-rwxr-xr-x root/root usr/bin/size +-rwxr-xr-x root/root usr/bin/strings +-rwxr-xr-x root/root usr/bin/strip +drwxr-xr-x root/root usr/include/ +-rw-r--r-- root/root usr/include/ansidecl.h +-rw-r--r-- root/root usr/include/bfd.h +-rw-r--r-- root/root usr/include/bfdlink.h +-rw-r--r-- root/root usr/include/dis-asm.h +-rw-r--r-- root/root usr/include/libiberty.h +-rw-r--r-- root/root usr/include/symcat.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/ldscripts/ +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.x +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xbn +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xc +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xd +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xdc +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xdw +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xn +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xr +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xs +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xsc +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xsw +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xu +-rw-r--r-- root/root usr/lib/ldscripts/elf_i386.xw +-rw-r--r-- root/root usr/lib/ldscripts/i386linux.x +-rw-r--r-- root/root usr/lib/ldscripts/i386linux.xbn +-rw-r--r-- root/root usr/lib/ldscripts/i386linux.xn +-rw-r--r-- root/root usr/lib/ldscripts/i386linux.xr +-rw-r--r-- root/root usr/lib/ldscripts/i386linux.xu +-rwxr-xr-x root/root usr/lib/libbfd-2.20.1.so +-rw-r--r-- root/root usr/lib/libbfd.a +-rwxr-xr-x root/root usr/lib/libbfd.la +lrwxrwxrwx root/root usr/lib/libbfd.so -> libbfd-2.20.1.so +-rw-r--r-- root/root usr/lib/libiberty.a +-rwxr-xr-x root/root usr/lib/libopcodes-2.20.1.so +-rw-r--r-- root/root usr/lib/libopcodes.a +-rwxr-xr-x root/root usr/lib/libopcodes.la +lrwxrwxrwx root/root usr/lib/libopcodes.so -> libopcodes-2.20.1.so +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/addr2line.1.gz +-rw-r--r-- root/root usr/man/man1/ar.1.gz +-rw-r--r-- root/root usr/man/man1/as.1.gz +-rw-r--r-- root/root usr/man/man1/c++filt.1.gz +-rw-r--r-- root/root usr/man/man1/dlltool.1.gz +-rw-r--r-- root/root usr/man/man1/gprof.1.gz +-rw-r--r-- root/root usr/man/man1/ld.1.gz +-rw-r--r-- root/root usr/man/man1/nlmconv.1.gz +-rw-r--r-- root/root usr/man/man1/nm.1.gz +-rw-r--r-- root/root usr/man/man1/objcopy.1.gz +-rw-r--r-- root/root usr/man/man1/objdump.1.gz +-rw-r--r-- root/root usr/man/man1/ranlib.1.gz +-rw-r--r-- root/root usr/man/man1/readelf.1.gz +-rw-r--r-- root/root usr/man/man1/size.1.gz +-rw-r--r-- root/root usr/man/man1/strings.1.gz +-rw-r--r-- root/root usr/man/man1/strip.1.gz +-rw-r--r-- root/root usr/man/man1/windmc.1.gz +-rw-r--r-- root/root usr/man/man1/windres.1.gz diff --git a/binutils/.md5sum b/binutils/.md5sum new file mode 100644 index 0000000..1691323 --- /dev/null +++ b/binutils/.md5sum @@ -0,0 +1 @@ +9cdfb9d6ec0578c166d3beae5e15c4e5 binutils-2.20.1.tar.bz2 diff --git a/binutils/.sha256sum b/binutils/.sha256sum new file mode 100644 index 0000000..0a21747 --- /dev/null +++ b/binutils/.sha256sum @@ -0,0 +1 @@ +228b84722d87e88e7fdd36869e590e649ab523a0800a7d53df906498afe6f6f8 binutils-2.20.1.tar.bz2 diff --git a/binutils/Pkgfile b/binutils/Pkgfile new file mode 100644 index 0000000..ec9e903 --- /dev/null +++ b/binutils/Pkgfile @@ -0,0 +1,24 @@ +description="The GNU Binutils are a collection of binary tools" +packager="" +maintainer="CRUX System Team, core-ports at crux dot nu" +url="http://sources.redhat.com/binutils/" +depends=(zlib) + +name=binutils +version=2.20.1 +release=1 +source=(ftp://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2) +build () +{ + sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in; + sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in; + mkdir build; + cd build; + ../$name-$version/configure --prefix=/usr --mandir=/usr/man --enable-shared --disable-nls; + make tooldir=/usr; + make check; + make tooldir=/usr DESTDIR=$PKG install; + cp ../$name-$version/include/libiberty.h $PKG/usr/include; + rm -r $PKG/usr/share; + sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la +} diff --git a/binutils/Pkgfile.old b/binutils/Pkgfile.old new file mode 100644 index 0000000..59005cd --- /dev/null +++ b/binutils/Pkgfile.old @@ -0,0 +1,26 @@ +# Description: The GNU Binutils are a collection of binary tools +# URL: http://sources.redhat.com/binutils/ +# Maintainer: CRUX System Team, core-ports at crux dot nu +# Depends on: zlib + +name=binutils +version=2.20.1 +release=1 +source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2) + +build() { + sed -i '/^SUBDIRS/s/doc//' $name-$version/bfd/Makefile.in + sed -i '/^# RELEASE=y/s/#//' $name-$version/bfd/Makefile.in + mkdir build + cd build + ../$name-$version/configure --prefix=/usr \ + --mandir=/usr/man \ + --enable-shared \ + --disable-nls + make tooldir=/usr + make check + make tooldir=/usr DESTDIR=$PKG install + cp ../$name-$version/include/libiberty.h $PKG/usr/include + rm -r $PKG/usr/share + sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la +} diff --git a/binutils/test-demangle.c.diff b/binutils/test-demangle.c.diff new file mode 100644 index 0000000..bda8b7d --- /dev/null +++ b/binutils/test-demangle.c.diff @@ -0,0 +1,40 @@ +# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39752 + +Index: libiberty/testsuite/test-demangle.c +=================================================================== +--- libiberty/testsuite/test-demangle.c (revision 145957) ++++ libiberty/testsuite/test-demangle.c (working copy) +@@ -46,7 +46,7 @@ + #define LINELEN 80 + + static void +-getline(buf) ++get_line(buf) + struct line *buf; + { + char *data = buf->data; +@@ -196,12 +196,12 @@ + { + const char *inp; + +- getline (&format); ++ get_line (&format); + if (feof (stdin)) + break; + +- getline (&input); +- getline (&expect); ++ get_line (&input); ++ get_line (&expect); + + inp = protect_end (input.data); + +@@ -322,7 +322,7 @@ + + if (no_params) + { +- getline (&expect); ++ get_line (&expect); + result = cplus_demangle (inp, DMGL_ANSI|DMGL_TYPES); + + if (result -- cgit v1.2.3-70-g09d2