From e1bbaeb415c078367b465f5539fa615e0be99778 Mon Sep 17 00:00:00 2001 From: Adonis Ling Date: Thu, 15 Aug 2024 15:03:53 +0800 Subject: [PATCH] Upgrade packages: curl, Python, Git, CMake, libedit, glibc, GCC --- devel/downloads/packages.sh | 40 +++++++++++++++++----------------- devel/scripts/env_vars.sh | 1 + toolchain/generate_toolchan.sh | 8 +++---- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/devel/downloads/packages.sh b/devel/downloads/packages.sh index 8009c9c..6711afb 100644 --- a/devel/downloads/packages.sh +++ b/devel/downloads/packages.sh @@ -84,10 +84,10 @@ OPENSSL_PACKAGE_SHA256SUM='eeca035d4dd4e84fc25846d952da6297484afa0650a6f84c682e3 OPENSSL_PACKAGE_NAME='openssl-3.0.14.tar.gz' OPENSSL_PACKAGE_EXTRACTED_DIR='openssl-3.0.14' -CURL_PACKAGE_URL='https://curl.se/download/curl-8.9.0.tar.gz' -CURL_PACKAGE_SHA256SUM='14d931fa98a329310dca7b190d047c3d4987674b1f466481f5490e4e12067ba4' -CURL_PACKAGE_NAME='curl-8.9.0.tar.gz' -CURL_PACKAGE_EXTRACTED_DIR='curl-8.9.0' +CURL_PACKAGE_URL='https://curl.se/download/curl-8.9.1.tar.gz' +CURL_PACKAGE_SHA256SUM='291124a007ee5111997825940b3876b3048f7d31e73e9caa681b80fe48b2dcd5' +CURL_PACKAGE_NAME='curl-8.9.1.tar.gz' +CURL_PACKAGE_EXTRACTED_DIR='curl-8.9.1' WGET_PACKAGE_URL='https://ftpmirror.gnu.org/wget/wget2-2.1.0.tar.gz' WGET_PACKAGE_SHA256SUM='a05dc5191c6bad9313fd6db2777a78f5527ba4774f665d5d69f5a7461b49e2e7' @@ -109,20 +109,20 @@ SQLITE_PACKAGE_SHA256SUM='6f8e6a7b335273748816f9b3b62bbdc372a889de8782d7f048c653 SQLITE_PACKAGE_NAME='sqlite-autoconf-3460000.tar.gz' SQLITE_PACKAGE_EXTRACTED_DIR='sqlite-autoconf-3460000' -PYTHON_PACKAGE_URL='https://www.python.org/ftp/python/3.12.4/Python-3.12.4.tgz' -PYTHON_PACKAGE_SHA256SUM='01b3c1c082196f3b33168d344a9c85fb07bfe0e7ecfe77fee4443420d1ce2ad9' -PYTHON_PACKAGE_NAME='Python-3.12.4.tgz' -PYTHON_PACKAGE_EXTRACTED_DIR='Python-3.12.4' +PYTHON_PACKAGE_URL='https://www.python.org/ftp/python/3.12.5/Python-3.12.5.tgz' +PYTHON_PACKAGE_SHA256SUM='38dc4e2c261d49c661196066edbfb70fdb16be4a79cc8220c224dfeb5636d405' +PYTHON_PACKAGE_NAME='Python-3.12.5.tgz' +PYTHON_PACKAGE_EXTRACTED_DIR='Python-3.12.5' EXPAT_PACKAGE_URL='https://github.com/libexpat/libexpat/releases/download/R_2_6_2/expat-2.6.2.tar.gz' EXPRT_PACKAGE_SHA256SUM='d4cf38d26e21a56654ffe4acd9cd5481164619626802328506a2869afab29ab3' EXPAT_PACKAGE_NAME='expat-2.6.2.tar.gz' EXPAT_PACKAGE_EXTRACTED_DIR='expat-2.6.2' -GIT_PACKAGE_URL='https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.45.2.tar.gz' -GIT_PACKAGE_SHA256SUM='98b26090ed667099a3691b93698d1e213e1ded73d36a2fde7e9125fce28ba234' -GIT_PACKAGE_NAME='git-2.45.2.tar.gz' -GIT_PACKAGE_EXTRACTED_DIR='git-2.45.2' +GIT_PACKAGE_URL='https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.46.0.tar.gz' +GIT_PACKAGE_SHA256SUM='b138811e16838f669a2516e40f09d50500e1c7fc541b5ab50ce84b98585e5230' +GIT_PACKAGE_NAME='git-2.46.0.tar.gz' +GIT_PACKAGE_EXTRACTED_DIR='git-2.46.0' GMP_PACKAGE_URL='https://ftpmirror.gnu.org/gmp/gmp-6.3.0.tar.xz' GMP_PACKAGE_SHA256SUM='a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898' @@ -148,13 +148,13 @@ ZSTD_PACKAGE_SHA256SUM='8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a3 ZSTD_PACKAGE_NAME='zstd-1.5.6.tar.gz' ZSTD_PACKAGE_EXTRACTED_DIR='zstd-1.5.6' -CMAKE_PACKAGE_URL="https://github.com/Kitware/CMake/releases/download/v3.30.1/cmake-3.30.1-linux-${ARCH}.tar.gz" +CMAKE_PACKAGE_URL="https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2-linux-${ARCH}.tar.gz" if [[ "${ARCH}" == 'x86_64' ]]; then - CMAKE_PACKAGE_SHA256SUM='ac31f077ef3378641fa25a3cb980d21b2f083982d3149a8f2eb9154f2b53696b' + CMAKE_PACKAGE_SHA256SUM='cdd7fb352605cee3ae53b0e18b5929b642900e33d6b0173e19f6d4f2067ebf16' elif [[ "${ARCH}" == 'aarch64' ]]; then - CMAKE_PACKAGE_SHA256SUM='ad234996f8750f11d7bd0d17b03f55c434816adf1f1671aab9e8bab21a43286a' + CMAKE_PACKAGE_SHA256SUM='d18f50f01b001303d21f53c6c16ff12ee3aa45df5da1899c2fe95be7426aa026' fi -CMAKE_PACKAGE_NAME="cmake-3.30.1-linux-${ARCH}.tar.gz" +CMAKE_PACKAGE_NAME="cmake-3.30.2-linux-${ARCH}.tar.gz" CCACHE_PACKAGE_URL='https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2.tar.gz' CCACHE_PACKAGE_SHA256SUM='108100960bb7e64573ea925af2ee7611701241abb36ce0aae3354528403a7d87' @@ -171,10 +171,10 @@ SWIG_PACKAGE_SHA256SUM='fa045354e2d048b2cddc69579e4256245d4676894858fcf0bab2290e SWIG_PACKAGE_NAME='swig-4.2.1.tar.gz' SWIG_PACKAGE_EXTRACTED_DIR='swig-4.2.1' -LIBEDIT_PACKAGE_URL='https://www.thrysoee.dk/editline/libedit-20240517-3.1.tar.gz' -LIBEDIT_PACKAGE_SHA256SUM='3a489097bb4115495f3bd85ae782852b7097c556d9500088d74b6fa38dbd12ff' -LIBEDIT_PACKAGE_NAME='libedit-20240517-3.1.tar.gz' -LIBEDIT_PACKAGE_EXTRACTED_DIR='libedit-20240517-3.1' +LIBEDIT_PACKAGE_URL='https://www.thrysoee.dk/editline/libedit-20240808-3.1.tar.gz' +LIBEDIT_PACKAGE_SHA256SUM='5f0573349d77c4a48967191cdd6634dd7aa5f6398c6a57fe037cc02696d6099f' +LIBEDIT_PACKAGE_NAME='libedit-20240808-3.1.tar.gz' +LIBEDIT_PACKAGE_EXTRACTED_DIR='libedit-20240808-3.1' LLVM_PACKAGE_URL='https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/llvm-project-18.1.8.src.tar.xz' LLVM_PACKAGE_SHA256SUM='0b58557a6d32ceee97c8d533a59b9212d87e0fc4d2833924eb6c611247db2f2a' diff --git a/devel/scripts/env_vars.sh b/devel/scripts/env_vars.sh index 252da80..0b11c85 100644 --- a/devel/scripts/env_vars.sh +++ b/devel/scripts/env_vars.sh @@ -53,6 +53,7 @@ function relocate() { library_path="$(dirname "${libc_so}")" interpreter="$(find "${DEVEL_HOME_PATH}/compiler" -name 'ld-linux-*.so.*')" + local file local old_rpath local new_rpath while read -r file; do diff --git a/toolchain/generate_toolchan.sh b/toolchain/generate_toolchan.sh index f2cf909..6b20a92 100755 --- a/toolchain/generate_toolchan.sh +++ b/toolchain/generate_toolchan.sh @@ -14,11 +14,11 @@ declare -r BINUTILS_MD5SUM='a075178a9646551379bfb64040487715' declare -r LINUX_PACKAGE_URL='https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.30.tar.xz' declare -r LINUX_MD5SUM='07623f4eaf59a1bfbd6ad1a5035d970d' -declare -r GLIBC_PACKAGE_URL='https://ftpmirror.gnu.org/glibc/glibc-2.39.tar.xz' -declare -r GLIBC_MD5SUM='be81e87f72b5ea2c0ffe2bedfeb680c6' +declare -r GLIBC_PACKAGE_URL='https://ftpmirror.gnu.org/glibc/glibc-2.40.tar.xz' +declare -r GLIBC_MD5SUM='b390feef233022114950317f10c4fa97' -declare -r GCC_PACKAGE_URL='https://ftpmirror.gnu.org/gcc/gcc-14.1.0/gcc-14.1.0.tar.xz' -declare -r GCC_MD5SUM='24195dca80ded5e0551b533f46a4481d' +declare -r GCC_PACKAGE_URL='https://ftpmirror.gnu.org/gcc/gcc-14.2.0/gcc-14.2.0.tar.xz' +declare -r GCC_MD5SUM='2268420ba02dc01821960e274711bde0' declare -r LIBXCRYPT_PACKAGE_URL='https://github.com/besser82/libxcrypt/releases/download/v4.4.36/libxcrypt-4.4.36.tar.xz' declare -r LIBXCRYPT_MD5SUM='b84cd4104e08c975063ec6c4d0372446'