From 12ec54c78e02b9f59ed31d084e3734ef60d2cce2 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Thu, 18 Mar 2021 10:25:51 +0100 Subject: [PATCH] build: touch intl/plural.c to work around known bug --- build.sh | 2 +- configure.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2d5393c..9b2f6d1 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,7 @@ source util.sh cd build -# Number of processor core +# Number of processor cores if [[ $(uname) == "OpenBSD" ]]; then cores=$(sysctl -n hw.ncpu) else diff --git a/configure.sh b/configure.sh index e9c1ae6..bd8cb4b 100755 --- a/configure.sh +++ b/configure.sh @@ -91,6 +91,12 @@ fi echo "$TAG Extracting $ARCHIVE..." unxz -c < $ARCHIVE | tar -xf - +# Touch intl/plural.c to avoid regenerating it from intl/plural.y with recent +# versions of bison, which is subject to the following known bug. +# * https://sourceware.org/bugzilla/show_bug.cgi?id=22941 +# * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92008 +touch binutils-$VERSION/intl/plural.c + # Create build folder [[ -d "build" ]] && rm -rf build