summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2020-05-12 22:41:15 +0800
committerBenda Xu <heroxbd@gentoo.org>2020-05-12 22:41:15 +0800
commit487ddf6654a5d25ef22f1d0a98e78d6acf0878ac (patch)
treed08e34cdce9e0e3cd53f28c60ea8c752e3c35655
parentbootstrap-prefix.sh: bump to Python 3.7. (diff)
downloadprefix-487ddf6654a5d25ef22f1d0a98e78d6acf0878ac.tar.gz
prefix-487ddf6654a5d25ef22f1d0a98e78d6acf0878ac.tar.bz2
prefix-487ddf6654a5d25ef22f1d0a98e78d6acf0878ac.zip
bootstrap-prefix.sh: bootstrap m4 on glibc-2.28 and newer.
Take the patch from Gentoo tree for Stage 1, to cope with hosts having glibc-2.28 and newer. Closes: https://bugs.gentoo.org/715880 Reported-By: Xuewei Liu <18800136075@163.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
-rwxr-xr-xscripts/bootstrap-prefix.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index b335ad2d90..19ad9c003a 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -831,6 +831,10 @@ bootstrap_gnu() {
# recent GCC 1.4.17 and below only, on 1.4.18 this expression
# doesn't match
sed -i -e '/_GL_WARN_ON_USE (gets/d' lib/stdio.in.h lib/stdio.h
+
+ # 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
fi
if [[ ${PN} == "grep" ]] ; then
@@ -1390,6 +1394,8 @@ bootstrap_stage1() {
[[ $(sed --version 2>&1) == *GNU* ]] || (bootstrap_sed) || return 1
type -P xz > /dev/null || (bootstrap_xz) || return 1
type -P bzip2 > /dev/null || (bootstrap_bzip2) || return 1
+ [[ $(patch --version 2>&1) == *"patch 2."[6-9]*GNU* ]] \
+ || (bootstrap_patch) || return 1
[[ $(m4 --version 2>&1) == *GNU*1.4.1?* ]] || (bootstrap_m4) || return 1
[[ -x ${ROOT}/tmp/usr/bin/bison ]] \
|| [[ $(bison --version 2>&1) == *GNU" "Bison") "2.[3-7]* ]] \
@@ -1399,8 +1405,6 @@ bootstrap_stage1() {
|| (bootstrap_coreutils) || return 1
[[ $(find --version 2>&1) == *GNU* ]] || (bootstrap_findutils) || return 1
[[ $(tar --version 2>&1) == *GNU* ]] || (bootstrap_tar) || return 1
- [[ $(patch --version 2>&1) == *"patch 2."[6-9]*GNU* ]] \
- || (bootstrap_patch) || return 1
[[ $(grep --version 2>&1) == *GNU* ]] || (bootstrap_grep) || return 1
[[ $(awk --version < /dev/null 2>&1) == *GNU" Awk "[456789]* ]] \
|| bootstrap_gawk || return 1