From 2b33806cd74cbfa146cc828cb5f5be79f6c27e26 Mon Sep 17 00:00:00 2001 From: Chris Black Date: Wed, 7 Feb 2024 12:09:41 -0800 Subject: [PATCH 1/2] move V8 installation to scripts folder --- get-v8-linux.sh => scripts/get-v8-linux.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename get-v8-linux.sh => scripts/get-v8-linux.sh (100%) diff --git a/get-v8-linux.sh b/scripts/get-v8-linux.sh similarity index 100% rename from get-v8-linux.sh rename to scripts/get-v8-linux.sh From b7727aa6c6a1dd41744cc104671ac1059951b707 Mon Sep 17 00:00:00 2001 From: Chris Black Date: Wed, 7 Feb 2024 16:14:22 -0800 Subject: [PATCH 2/2] delete unused script --- scripts/get-v8-linux.sh | 53 ----------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 scripts/get-v8-linux.sh diff --git a/scripts/get-v8-linux.sh b/scripts/get-v8-linux.sh deleted file mode 100644 index 5ed00376716..00000000000 --- a/scripts/get-v8-linux.sh +++ /dev/null @@ -1,53 +0,0 @@ -download_libs() { -# On debian CI we want to test against system libv8 -if [ "$USER" = "salsaci" ]; then - return; -fi - -# Gets the R target architecture in case of qemu-containers, e.g -# https://hub.docker.com/r/i386/debian -# Which reports uname -m: x86_64 (only i386 seems to have this issue) -RARCH=$(${R_HOME}/bin/Rscript -e 'cat(R.Version()$arch)') -case $RARCH in - x86_64 | arm64 | aarch64) - echo "Target architecture: $RARCH" - ;; - *) - echo "Unexpected architecture: $RARCH" - return; - ;; -esac - -# RHDT compilers are using an older libc++ -# https://github.com/jeroen/V8/issues/137 -if test -f "/etc/redhat-release" && grep -Fq "release 7" "/etc/redhat-release"; then -IS_CENTOS7=1 -fi - -IS_MUSL=$(ldd --version 2>&1 | grep musl) -if [ $? -eq 0 ] && [ "$IS_MUSL" ]; then - URL="https://github.com/jeroen/V8/releases/download/v3.6.0/v8-9.6.180.12-alpine.tar.gz" -elif [ "$RARCH" = "arm64" ] || [ "$RARCH" = "aarch64" ]; then - URL="https://github.com/jeroen/V8/releases/download/v3.6.0/v8-9.6.180.12-arm64.tar.gz" -else - IS_GCC4=$($CXX --version | grep -P '^g++.*[^\d.]4(\.\d){2}') - if [ $? -eq 0 ] && [ "$IS_GCC4" ]; then - URL="https://github.com/jeroen/V8/releases/download/v3.6.0/v8-6.8.275.32-gcc-4.8.tar.gz" - elif [ "$IS_CENTOS7" ]; then - URL="https://github.com/jeroen/V8/releases/download/v3.6.0/v8-6.8.275.32-gcc-4.8.tar.gz" - else - URL="https://github.com/jeroen/V8/releases/download/v3.6.0/v8-9.6.180.12-amd64.tar.gz" - fi -fi -if [ ! -f ".deps/lib/libv8_monolith.a" ]; then - ${R_HOME}/bin/R -q -e "curl::curl_download('$URL','libv8.tar.gz',quiet=FALSE)" - tar xzf libv8.tar.gz - rm -f libv8.tar.gz - mv v8 .deps -fi -PKG_CFLAGS="-I${PWD}/.deps/include" -PKG_LIBS="-L${PWD}/.deps/lib -lv8_monolith" -} - -download_libs -