From e0e1ffb6dccdc48c2448cfd79dac3ccbbed96c75 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 6 Jan 2013 01:08:04 -0800 Subject: Sun Jan 6 01:07:49 PST 2013 --- core/bash/PKGBUILD | 12 +++++++++--- core/binutils/PKGBUILD | 38 ++++++++------------------------------ core/mpfr/PKGBUILD | 5 +++-- 3 files changed, 20 insertions(+), 35 deletions(-) (limited to 'core') diff --git a/core/bash/PKGBUILD b/core/bash/PKGBUILD index fef4362a7..e8f4b53ef 100644 --- a/core/bash/PKGBUILD +++ b/core/bash/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 170164 2012-11-04 00:51:49Z allan $ +# $Id: PKGBUILD 174629 2013-01-05 10:20:51Z allan $ # Maintainer: Allan McRae # Contributor: Aaron Griffin pkgname=bash _basever=4.2 -_patchlevel=039 #prepare for some patches +_patchlevel=042 #prepare for some patches pkgver=$_basever.$_patchlevel pkgrel=1 pkgdesc="The GNU Bourne Again shell" @@ -156,4 +156,10 @@ md5sums=('3fb927c7c33022f1c327f14a81c0d4b0' '9ef3c308cde413e95866c1266cfb4e98' 'afbb94e04dab29bd4ce92199892f2b5e' 'cd48f57a404498d4e5c73a3501c4b1a5' - 'd2693a2728b5a0448947d23ce47cb4b3') + 'd2693a2728b5a0448947d23ce47cb4b3' + '00a2371b6c05acbfce6bc850c6d982f8' + '72744ac844a1dfd15dddbba7f73ec45c' + '7bc4942a66ca4024ee964db7ede07896' + '7e97f02d9dd1436eed278f2732542ecf' + '1cf7701017ebfc8e129de92c8f8b798c' + '4ef8b5af440bf7b939b7955ce68b4dc7') diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD index cf7dc15a0..61c5197ee 100644 --- a/core/binutils/PKGBUILD +++ b/core/binutils/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 173937 2012-12-28 13:10:59Z allan $ +# $Id: PKGBUILD 174628 2013-01-05 10:20:45Z allan $ # Maintainer: Allan McRae # toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc pkgname=binutils pkgver=2.23.1 -pkgrel=2 +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/" @@ -27,29 +27,14 @@ build() { --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 \ + --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 - - # 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() { @@ -68,20 +53,13 @@ package() { 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 + # Install PIC libiberty.a + install -m644 libiberty/pic/libiberty.a ${pkgdir}/usr/lib - # Remove Windows/Novell specific man pages + # Remove unwanted files 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. + # No shared linking to these files outside binutils 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 } diff --git a/core/mpfr/PKGBUILD b/core/mpfr/PKGBUILD index d83f543bb..e4e66c7dd 100644 --- a/core/mpfr/PKGBUILD +++ b/core/mpfr/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 165869 2012-09-02 01:16:10Z allan $ +# $Id: PKGBUILD 174749 2013-01-06 02:22:46Z allan $ # Maintainer: Allan McRae # Contributor: damir @@ -6,7 +6,7 @@ pkgname=mpfr _pkgver=3.1.1 _patchlevel=p2 pkgver=${_pkgver}.${_patchlevel} -pkgrel=1 +pkgrel=2 pkgdesc="Multiple-precision floating-point library" arch=('i686' 'x86_64') url="http://www.mpfr.org/" @@ -22,6 +22,7 @@ md5sums=('91d51c41fcf2799e4ee7a7126fc95c17' build() { cd "${srcdir}/${pkgname}-${_pkgver}" + patch -p1 -i $srcdir/mpfr-${_pkgver}-${_patchlevel}.patch ./configure --prefix=/usr --enable-thread-safe --enable-shared make } -- cgit v1.2.3-54-g00ecf