From 3b3435e214cdaee3c47d644121e8c33b4b000557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ron=20Ricardo=20Perez-Lopez?= Date: Thu, 1 Aug 2024 15:27:50 -0400 Subject: [PATCH] Update Bison to fix Clang error (#337) * Introduce variable for Bison version in contrib script * Update Bison to version 3.7.4 --- contrib/setup-bison.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/contrib/setup-bison.sh b/contrib/setup-bison.sh index c5bd4681..1254d3ab 100755 --- a/contrib/setup-bison.sh +++ b/contrib/setup-bison.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +BISON_VERSION=3.7.4 + DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DEPS=$DIR/../deps @@ -12,17 +14,17 @@ if [ -d "$DEPS/bison" ]; then exit 1 fi -curl http://ftp.gnu.org/gnu/bison/bison-3.7.tar.gz --output $DEPS/bison-3.7.tar.gz +curl http://ftp.gnu.org/gnu/bison/bison-$BISON_VERSION.tar.gz --output $DEPS/bison-$BISON_VERSION.tar.gz -if [ ! -f "$DEPS/bison-3.7.tar.gz" ]; then - echo "It seems like downloading bison to $DEPS/bison-3.7.tar.gz failed" +if [ ! -f "$DEPS/bison-$BISON_VERSION.tar.gz" ]; then + echo "It seems like downloading bison to $DEPS/bison-$BISON_VERSION.tar.gz failed" exit 1 fi cd $DEPS -tar -xzf bison-3.7.tar.gz -rm bison-3.7.tar.gz -mv ./bison-3.7 ./bison +tar -xzf bison-$BISON_VERSION.tar.gz +rm bison-$BISON_VERSION.tar.gz +mv ./bison-$BISON_VERSION ./bison cd bison mkdir bison-install ./configure --prefix $DEPS/bison/bison-install --exec-prefix $DEPS/bison/bison-install