From a602eb6e886a1c621ef74df18bc81169ba01e769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Thu, 24 Dec 2020 11:16:44 +0100 Subject: [PATCH] binutils: fix bootstrap build; drop noarch Prevent configure from finding host installed libdebuginfod. Closes: #27190 --- srcpkgs/binutils/template | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template index 719897d6f50..76c0003cf56 100644 --- a/srcpkgs/binutils/template +++ b/srcpkgs/binutils/template @@ -1,7 +1,7 @@ # Template file for 'binutils' pkgname=binutils version=2.34 -revision=1 +revision=2 bootstrap=yes short_desc="GNU binary utilities" maintainer="Enno Boland " @@ -29,13 +29,28 @@ _get_triplet() { } do_configure() { + local CONFIGFLAG="--build=$(_get_triplet) + --prefix=/usr + --enable-threads + --enable-plugins + --enable-secureplt + --with-mmap + --disable-shared + --enable-gold + --disable-werror + --enable-deterministic-archives + --enable-ld=default + --disable-nls" + if [ -z "$CHROOT_READY" ]; then + CONFIGFLAG+=" --without-debuginfod" + fi if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then - CONFIGFLAG="--enable-64-bit-bfd --enable-multilib" + CONFIGFLAG+=" --enable-64-bit-bfd --enable-multilib" fi if [ "$CROSS_BUILD" ]; then # Do not use configure_args nor build_style=gnu-configure, # avoiding --with-sysroot to $XBPS_CROSS_BASE. - CONFIGFLAG="--host=$XBPS_CROSS_TRIPLET --with-build-sysroot=$XBPS_CROSS_BASE" + CONFIGFLAG+=" --host=$XBPS_CROSS_TRIPLET --with-build-sysroot=$XBPS_CROSS_BASE" fi if [ "$XBPS_TARGET_MACHINE" = "mips-musl" -o "$XBPS_TARGET_MACHINE" = "mipsel-musl" ]; then CONFIGFLAG+=" --with-float=soft --without-fp" @@ -45,11 +60,7 @@ do_configure() { elif [ "${XBPS_TARGET_MACHINE%-musl}" = "i686" ]; then CONFIGFLAG+=" --enable-64-bit-bfd --enable-targets=x86_64-linux-gnu,x86_64-pep" fi - ./configure --build=$(_get_triplet) --prefix=/usr --enable-threads \ - --enable-plugins --enable-secureplt --with-mmap \ - --disable-shared --enable-gold --disable-werror \ - --enable-deterministic-archives --enable-ld=default \ - --disable-nls $CONFIGFLAG + ./configure $CONFIGFLAG } do_build() { @@ -125,7 +136,6 @@ binutils-devel_package() { } binutils-doc_package() { - archs=noarch short_desc+=" - info files" pkg_install() { vmove usr/share/info