diff options
author | Fabian Groffen <grobian@gentoo.org> | 2018-06-11 18:37:47 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2018-06-11 18:37:47 +0200 |
commit | ddf86254b773b1a2205c8ef166c7d8c7fdcfa697 (patch) | |
tree | c32635529398b8369aa627355df923d9f1594751 | |
parent | sys-devel/gcc: update Cygwin patch commit, thanks Sven Eden (diff) | |
download | prefix-ddf86254b773b1a2205c8ef166c7d8c7fdcfa697.tar.gz prefix-ddf86254b773b1a2205c8ef166c7d8c7fdcfa697.tar.bz2 prefix-ddf86254b773b1a2205c8ef166c7d8c7fdcfa697.zip |
scripts/bootstrap-prefix: (try to) workaround libtool stage3 issue
Closes: https://bugs.gentoo.org/655414
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 '<sys-devel/gcc-4.8' >> "${ROOT}"/tmp/etc/portage/package.unmask |