2017-05-26 20:26:25 +00:00
|
|
|
# Automatically generated aport, do not edit!
|
|
|
|
# Generator: pmbootstrap aportgen binutils-armhf
|
|
|
|
# Based on: main/binutils
|
|
|
|
|
2020-05-24 01:59:09 +00:00
|
|
|
pkgname=binutils-armhf
|
2021-03-18 12:24:47 +00:00
|
|
|
pkgver=2.35.2
|
2021-05-19 20:16:41 +00:00
|
|
|
pkgrel=2
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgdesc="Tools necessary to build programs for armhf targets"
|
2017-11-27 20:40:38 +00:00
|
|
|
url="https://www.gnu.org/software/binutils/"
|
2020-03-28 20:09:55 +00:00
|
|
|
makedepends="gettext libtool autoconf automake bison texinfo"
|
2020-07-29 10:46:19 +00:00
|
|
|
arch="x86_64"
|
2018-01-20 18:17:23 +00:00
|
|
|
license="GPL-2.0 GPL-3.0-or-later LGPL-2.0 BSD"
|
2020-05-24 01:59:09 +00:00
|
|
|
source="https://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.xz
|
2017-05-26 20:26:25 +00:00
|
|
|
binutils-ld-fix-static-linking.patch
|
2017-11-27 20:40:38 +00:00
|
|
|
gold-mips.patch
|
2020-03-28 11:33:00 +00:00
|
|
|
ld-bfd-mips.patch
|
2020-10-31 01:45:20 +00:00
|
|
|
0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
2021-04-25 13:31:54 +00:00
|
|
|
CVE-2021-3487.patch
|
2021-05-19 20:16:41 +00:00
|
|
|
binutils-mips-disable-assert.patch
|
2017-05-26 20:26:25 +00:00
|
|
|
"
|
2020-07-29 10:46:19 +00:00
|
|
|
builddir="$srcdir/binutils-$pkgver"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2021-04-25 13:31:54 +00:00
|
|
|
if [ "$CHOST" = "$CBUILD" ] && [ "$CBUILD" = "$CTARGET" ] && [ "$CTARGET_ARCH" != "riscv64" ]; then
|
|
|
|
subpackages=""
|
|
|
|
fi
|
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
if [ "$CHOST" != "$CTARGET" ]; then
|
|
|
|
pkgname="binutils-$CTARGET_ARCH"
|
|
|
|
subpackages=""
|
|
|
|
sonameprefix="binutils:"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# secfixes:
|
2021-04-25 13:31:54 +00:00
|
|
|
# 2.35.2-r1:
|
|
|
|
# - CVE-2021-3487
|
2019-09-11 18:37:45 +00:00
|
|
|
# 2.32-r0:
|
2020-05-24 01:59:09 +00:00
|
|
|
# - CVE-2018-19931
|
|
|
|
# - CVE-2018-19932
|
|
|
|
# - CVE-2018-20002
|
|
|
|
# - CVE-2018-20712
|
2017-05-26 20:26:25 +00:00
|
|
|
# 2.28-r1:
|
2020-05-24 01:59:09 +00:00
|
|
|
# - CVE-2017-7614
|
2017-05-26 20:26:25 +00:00
|
|
|
|
|
|
|
build() {
|
2018-12-31 07:53:12 +00:00
|
|
|
_target="$(arch_to_hostspec armhf)"
|
|
|
|
"$builddir"/configure \
|
|
|
|
--build="$CBUILD" \
|
|
|
|
--target=$_target \
|
|
|
|
--with-lib-path=/usr/lib \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-sysroot=/usr/$_target \
|
|
|
|
--enable-ld=default \
|
|
|
|
--enable-gold=yes \
|
|
|
|
--enable-plugins \
|
|
|
|
--enable-deterministic-archives \
|
|
|
|
--disable-multilib \
|
|
|
|
--disable-werror \
|
|
|
|
--disable-nls
|
|
|
|
make
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2018-12-31 07:53:12 +00:00
|
|
|
make install DESTDIR="$pkgdir"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2018-12-31 07:53:12 +00:00
|
|
|
# remove man, info folders
|
|
|
|
rm -rf "$pkgdir"/usr/share
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-19 20:16:41 +00:00
|
|
|
sha512sums="
|
|
|
|
9974ede5978d32e0d68fef23da48fa00bd06b0bff7ec45b00ca075c126d6bbe0cf2defc03ecc3f17bc6cc85b64271a13009c4049d7ba17de26e84e3a6e2c0348 binutils-2.35.2.tar.xz
|
2017-05-26 20:26:25 +00:00
|
|
|
ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
|
2020-03-28 11:33:00 +00:00
|
|
|
f55cf2e0bf82f97583a1abe10710e4013ecf7d64f1da2ef8659a44a06d0dd8beaf58dab98a183488ea137f03e32d62efc878d95f018f836f8cec870bc448556f gold-mips.patch
|
2020-10-31 01:45:20 +00:00
|
|
|
314d2ef9071c89940aa6c8118e8a1e2f191a5d0a4bf596da1ad9cc84f884d8bc7dea8bd7b9fc3f8f1bddd3fd41c6eb017e1e804044b3bf084df1ed9e6e095e2d ld-bfd-mips.patch
|
2021-04-25 13:31:54 +00:00
|
|
|
642c617db6c6e491f78f053d60f3aa369bad7bf8c1bc7ce267de6cf8fddf6c0d4cf63ce8c8f6e2f225dedbce7cb930d8e87e168fd8f72ca0837c77266ee2b5f8 0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
|
2021-05-19 20:16:41 +00:00
|
|
|
b08384ed124a74ad3a424db370c107230f09a54378502ca4385deb738f7cf799857f2af0db52709c7eeab8fa6c0a3d972f891396cce1e2834a21f67682fc4355 CVE-2021-3487.patch
|
|
|
|
609cd90d8b334eb309f586b17b9d335a08d3dbb6def7c3eb5c010028fcb681674031e5b9d853aa7a39a50304356a86afc184b85562b3f228f8197f4d29395c8f binutils-mips-disable-assert.patch
|
|
|
|
"
|