diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-11-21 14:42:20 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-11-21 14:42:20 +0100 |
commit | fd2058cbd9c38988b7b58e78f1c1d214273f329c (patch) | |
tree | 093f745cc8e9ac42c79f42a66640ce0702c69488 | |
parent | scripts/bootstrap-prefix: add some code for GCC bootstrap on macOS (diff) | |
download | prefix-fd2058cbd9c38988b7b58e78f1c1d214273f329c.tar.gz prefix-fd2058cbd9c38988b7b58e78f1c1d214273f329c.tar.bz2 prefix-fd2058cbd9c38988b7b58e78f1c1d214273f329c.zip |
scripts/bootstrap-prefix: clean up m4 bootstrapping
On macOS we need a patch (no newer version exists), so add it, else we
keep on having a crashing m4.
Remove all backup versions, since patching those versions fails, so
we'll stay on the fragile path and hope this works.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 34b6c25a82..7edc5b9d3e 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -856,6 +856,10 @@ bootstrap_gnu() { # doesn't match sed -i -e '/_GL_WARN_ON_USE (gets/d' lib/stdio.in.h lib/stdio.h + # macOS 10.13 have an issue with %n, which crashes m4 + efetch "http://rsync.prefix.bitzolder.nl/sys-devel/m4/files/m4-1.4.18-darwin17-printf-n.patch" || return 1 + patch -p1 < "${DISTDIR}"/m4-1.4.18-darwin17-printf-n.patch || return 1 + # Bug 715880 efetch http://dev.gentoo.org/~heroxbd/m4-1.4.18-glibc228.patch || return 1 patch -p1 < "${DISTDIR}"/m4-1.4.18-glibc228.patch || return 1 @@ -1304,10 +1308,7 @@ bootstrap_bison() { } bootstrap_m4() { - bootstrap_gnu m4 1.4.18 || - bootstrap_gnu m4 1.4.17 || - bootstrap_gnu m4 1.4.16 || - bootstrap_gnu m4 1.4.15 + bootstrap_gnu m4 1.4.18 # version is patched, so beware } bootstrap_gzip() { |