From 0fd6257912df78f68aa1df30180f19ce97c63d8b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 18 Oct 2013 10:21:49 +0200 Subject: [PATCH] chroot-binutils: repair bootstrap build; drop bashism. --- srcpkgs/chroot-binutils/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/chroot-binutils/template b/srcpkgs/chroot-binutils/template index bc35ae4946..6446148f81 100644 --- a/srcpkgs/chroot-binutils/template +++ b/srcpkgs/chroot-binutils/template @@ -10,12 +10,17 @@ license="GPL-3" distfiles="${KERNEL_SITE}/devel/binutils/binutils-$version.tar.xz" checksum=c2229d5d4067c782b67cfaf7f049acd8361407c0870991bc5430be5c548f6825 -if [ "$IN_CHROOT" ]; then +if [ "$CHROOT_READY" ]; then hostmakedepends="flex perl" fi makedepends="zlib-devel" bootstrap=yes +pre_configure() { + # Drop bashism! + sed -e 's,source,\.,g' -i ld/scripttempl/elf.sc +} + do_configure() { if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then CONFIGFLAG="--enable-64-bit-bfd --enable-multilib"