diff options
Diffstat (limited to 'cross/cross-binutils/PKGBUILD')
-rw-r--r-- | cross/cross-binutils/PKGBUILD | 87 |
1 files changed, 61 insertions, 26 deletions
diff --git a/cross/cross-binutils/PKGBUILD b/cross/cross-binutils/PKGBUILD index 4bfc76a0b..f7228e595 100644 --- a/cross/cross-binutils/PKGBUILD +++ b/cross/cross-binutils/PKGBUILD @@ -1,9 +1,7 @@ -# $Id: PKGBUILD 205571 2014-02-07 22:40:19Z allan $ -# Maintainer: Allan McRae <allan@archlinux.org> +# Maintainer (Arch): Allan McRae <allan@archlinux.org> # Maintainer: Márcio Silva (Parabola) <coadde@parabola.nu> -# toolchain build order: -# {kernel}-api-headers->glibc->binutils->gcc->binutils->glibc +# toolchain build order: {kernel}-api-headers->glibc->binutils->gcc->binutils->glibc # toolchain (for cross-compiler) build order: # {kernel}-api-headers(host system)->glibc(host system) @@ -125,7 +123,7 @@ fi _pkgname=binutils pkgname=$_target-$_pkgname pkgver=2.24 -pkgrel=7.2 +pkgrel=8 pkgdesc="A set of programs to assemble and manipulate binary and object files" arch=('i686' 'x86_64' 'mips64el') url="http://www.gnu.org/software/$_pkgname/" @@ -135,17 +133,36 @@ depends=('glibc>=2.20' 'zlib') checkdepends=('dejagnu' 'bc') provides=("$_pkgname=$pkgver") conflicts=("$_pkgname") +options=('staticlibs' '!distcc' '!ccache') install=$_pkgname.install source=(ftp://ftp.gnu.org/gnu/$_pkgname/$_pkgname-${pkgver}.tar.bz2{,.sig} - $_pkgname-2.24-lto-testsuite.patch - $_pkgname-2.24-gold-testsuite-plugin.patch - $_pkgname-2.24-shared-pie.patch + $_pkgname-$pkgver-lto-testsuite.patch + $_pkgname-$pkgver-gold-testsuite-plugin.patch + $_pkgname-$pkgver-shared-pie.patch + $_pkgname-$pkgver-CVE-2014-8484.patch + $_pkgname-$pkgver-CVE-2014-8485.patch + $_pkgname-$pkgver-CVE-2014-8501.patch + $_pkgname-$pkgver-CVE-2014-8502.patch + $_pkgname-$pkgver-CVE-2014-8503.patch + $_pkgname-$pkgver-CVE-2014-8504.patch + $_pkgname-$pkgver-CVE-2014-8737.patch + $_pkgname-$pkgver-CVE-2014-8738.patch + $_pkgname-$pkgver-strings-all-default.patch $_pkgname-xtensa.patch::https://raw.githubusercontent.com/qca/open-ath9k-htc-firmware/1.3.2/local/patches/$_pkgname.patch) md5sums=('e0f71a7b2ddab0f8612336ac81d9636b' 'SKIP' 'e68a1f221545f082baa5bd417cd077af' 'e46bbb03abaa5db58c12247644dc4857' 'ec59461c4febab9cfe1c1ef33326bc50' + '125d8ce675ced84814d5f068106dbaa3' + '6923e5279a84cb7134b07e2cf6686434' + '4c590dc70829d8f4fc190f0fe7e3add8' + '64efddd24d5628437cc457b468df8de3' + '70540e2c6418a54ad88ab9c6b988d075' + 'acce1f1d28db6bdb84b430a05f331366' + '12fb3e860203a06b5d1f4b023c06dcec' + 'd35b0ccb79d565757821b3e0206f3873' + '99445d528110543d88b59a1ec7677592' '7077126d96e9a755a0eaddb5505efe68') validpgpkeys=('EAF1C276A747E9ED86210CBAC3126D3B4AE55E93') @@ -156,13 +173,40 @@ prepare() { sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure # fix lto testsuite with gcc-4.9 - commits b35d44f1 and 37a6ac44 - patch -p1 -i $srcdir/$_pkgname-2.24-lto-testsuite.patch + patch -p1 -i $srcdir/$_pkgname-$pkgver-lto-testsuite.patch # fix gold testsuite with gcc-4.9 - commit ae447ddd - patch -p1 -i $srcdir/$_pkgname-2.24-gold-testsuite-plugin.patch + patch -p1 -i $srcdir/$_pkgname-$pkgver-gold-testsuite-plugin.patch # fix issues with -static -fPIE -pie - commit 4199e3b8 - patch -p1 -i $srcdir/$_pkgname-2.24-shared-pie.patch + patch -p1 -i $srcdir/$_pkgname-$pkgver-shared-pie.patch + + # CVE-2014-8484 - backport of commit bd25671c + patch -p1 -i $srcdir/$_pkgname-$pkgver-CVE-2014-8484.patch + + # CVE-2014-8485 - commit 493a3386 + patch -p1 -i $srcdir/$_pkgname-$pkgver-CVE-2014-8485.patch + + # CVE-2014-8501 - commit 7e1e1988 + patch -p1 -i $srcdir/$_pkgname-$pkgver-CVE-2014-8501.patch + + # CVE-2014-8502 - commits bf67003b and 5a4b0ccc + patch -p1 -i $srcdir/$_pkgname-$pkgver-CVE-2014-8502.patch + + # CVE-2014-8503 - commit 0102ea8c + patch -p1 -i $srcdir/$_pkgname-$pkgver-CVE-2014-8503.patch + + # CVE-2014-8504 - commit 708d7d0d + patch -p1 -i $srcdir/$_pkgname-$pkgver-CVE-2014-8504.patch + + # CVE-2014-8737 - commit dd9b91de + patch -p1 -i $srcdir/$_pkgname-$pkgver-CVE-2014-8737.patch + + # CVE-2014-8738 - commit bb0d8671 + patch -p1 -i $srcdir/$_pkgname-$pkgver-CVE-2014-8738.patch + + # strings -a default - commit 7fac9594 (fedora backport) + patch -p0 -i $srcdir/$_pkgname-$pkgver-strings-all-default.patch # open-ath9k-htc-firmware patch on xtensa-unknown-elf [[ $_target == xtensa-unknown-elf ]] && patch -p1 -i ${srcdir}/$_pkgname-xtensa.patch @@ -173,20 +217,12 @@ prepare() { build() { cd ${srcdir}/$_pkgname-build - if [[ $_target == xtensa-unknown-elf ]]; then - ${srcdir}/$_pkgname-${pkgver}/configure --prefix=/usr \ - --with-lib-path=/usr/lib:/usr/local/lib \ - --with-bugurl=https://labs.parabola.nu/ \ - --enable-shared --disable-nls \ - --disable-werror --disable-multilib --target=$_target --program-prefix=$_target- - else - ${srcdir}/$_pkgname-${pkgver}/configure --prefix=/usr \ - --with-lib-path=/usr/lib:/usr/local/lib \ - --with-bugurl=https://labs.parabola.nu/ \ - --enable-threads --enable-shared --with-pic \ - --enable-ld=default --enable-gold --enable-plugins \ - --disable-werror --target=$_target --program-prefix=$_target- - fi + ${srcdir}/$_pkgname-${pkgver}/configure --prefix=/usr \ + --with-lib-path=/usr/lib:/usr/local/lib \ + --with-bugurl=https://labs.parabola.nu/ \ + --enable-threads --enable-shared --with-pic \ + --enable-ld=default --enable-gold --enable-plugins \ + --disable-werror --target=$_target --program-prefix=$_target- # check the host environment and makes sure all the necessary tools are available make configure-host @@ -199,7 +235,6 @@ check() { # unset LDFLAGS as testsuite makes assumptions about which ones are active # ignore failures in gold testsuite... - # do not abort on errors - manually check log files make -k LDFLAGS="" check || true } |