From ddf86254b773b1a2205c8ef166c7d8c7fdcfa697 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 11 Jun 2018 18:37:47 +0200 Subject: scripts/bootstrap-prefix: (try to) workaround libtool stage3 issue Closes: https://bugs.gentoo.org/655414 --- scripts/bootstrap-prefix.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 910483897c..c9debd1bd3 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -1541,6 +1541,17 @@ bootstrap_stage2() { EXTRA_ECONF=$(rapx --with-sysroot=/) \ emerge_pkgs --nodeps ${linker} || return 1 + # automake and autoconf need to be installed in /tmp in order for + # autotools.eclass to run successfully, bug #655414, #657414 + # rely on Perl from host, let's hope it's there + unset PERL + if [[ -x $(type -P perl) ]] ; then + ( cd "${ROOT}"/tmp/usr/bin && ln -s $(type -P perl) ) + emerge_pkgs --nodeps sys-devel/autoconf sys-devel/automake || return 1 + else + einfo "You don't have perl available, you'll likely run into bug #657414" + fi + # Old versions of gcc has been masked. We need gcc-4.7 to bootstrap # on systems without a c++ compiler. echo '> "${ROOT}"/tmp/etc/portage/package.unmask -- cgit v1.2.3-65-gdbad