Skip to content

Commit d26a604

Browse files
authored
Toolchain: Use fixed commit hash instead of master branch (#7193)
* Toolchain: Use fixed commit hash instead of master branch * Toolchain: Drop patch for Cereal * Apply to CMake dependency finding
1 parent bf92c2d commit d26a604

File tree

10 files changed

+23
-70
lines changed

10 files changed

+23
-70
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,8 @@ if(ENABLE_RAPIDJSON)
6969
include(FetchContent)
7070
FetchContent_Declare(
7171
rapidjson
72-
GIT_REPOSITORY https://github.com/Tencent/rapidjson.git
73-
GIT_TAG "origin/master"
74-
GIT_SHALLOW TRUE
75-
GIT_PROGRESS TRUE)
72+
URL https://codeload.github.com/Tencent/rapidjson/tar.gz/24b5e7a8b27f42fa16b96fc70aade9106cf7102f
73+
)
7674
set(RAPIDJSON_BUILD_TESTS
7775
OFF
7876
CACHE INTERNAL "")

cmake/FindCereal.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if(NOT CEREAL_INCLUDE_DIR)
1515
include(FetchContent)
1616
FetchContent_Declare(
1717
cereal
18-
URL https://codeload.github.com/MCresearch/cereal/tar.gz/master
18+
URL https://codeload.github.com/USCiLab/cereal/tar.gz/22a1b369f39be918ca79206a83c4facd759f9105
1919
)
2020
FetchContent_Populate(cereal)
2121
set(CEREAL_INCLUDE_DIR ${cereal_SOURCE_DIR}/include)

cmake/FindLibComm.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(NOT LIBCOMM_DIR)
1616
include(FetchContent)
1717
FetchContent_Declare(
1818
LibComm
19-
URL https://github.com/abacusmodeling/LibComm/archive/refs/tags/v0.1.1.tar.gz
19+
URL https://codeload.github.com/abacusmodeling/LibComm/tar.gz/965bf90713ce5598bae4fd957d417065f77ceb42
2020
)
2121
FetchContent_Populate(LibComm)
2222
set(LIBCOMM_DIR ${libcomm_SOURCE_DIR})

cmake/FindLibRI.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(NOT LIBRI_DIR)
1616
include(FetchContent)
1717
FetchContent_Declare(
1818
LibRI
19-
URL https://codeload.github.com/abacusmodeling/LibRI//tar.gz/v0.2.1.1
19+
URL https://codeload.github.com/abacusmodeling/LibRI/tar.gz/e6d78e0504693d2a464c72b87d3240ce183fd881
2020
)
2121
FetchContent_Populate(LibRI)
2222
set(LIBRI_DIR ${libri_SOURCE_DIR})

toolchain/scripts/package_versions.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,22 @@ libnpy_main_sha256="43452a4db1e8c1df606c64376ea1e32789124051d7640e7e4e8518ab4f0f
9999
libnpy_alt_ver="1.0.1"
100100
libnpy_alt_sha256="43452a4db1e8c1df606c64376ea1e32789124051d7640e7e4e8518ab4f0fba44"
101101

102-
# Master branch packages (no fixed versions)
103-
cereal_ver="master"
104-
cereal_sha256="--no-checksum"
102+
# Branch packages cut with specific commits
103+
cereal_ver="22a1b369f39be918ca79206a83c4facd759f9105"
104+
cereal_sha256="ca3d544456f93ea3176eab85e2e7892063af45b20467bb4ad9c1c51068e521c6"
105105

106-
libcomm_ver="master"
107-
libcomm_sha256="--no-checksum"
106+
libcomm_ver="965bf90713ce5598bae4fd957d417065f77ceb42"
107+
libcomm_sha256="1d1626b833c51efa7ab844af140e022e063ea64389c9e47b168c24fcc05b7323"
108108

109-
libri_ver="master"
110-
libri_sha256="--no-checksum"
109+
libri_ver="e6d78e0504693d2a464c72b87d3240ce183fd881"
110+
libri_sha256="ead14f05b645f3d028e09f715abaa0e8fca3d1d6d61804239c4858b33397286a"
111111

112-
rapidjson_ver="master"
113-
rapidjson_sha256="--no-checksum"
112+
rapidjson_ver="24b5e7a8b27f42fa16b96fc70aade9106cf7102f"
113+
rapidjson_sha256="2d2601a82d2d3b7e143a3c8d43ef616671391034bc46891a9816b79cf2d3e7a8"
114114

115115
# NEP (Neural Evolution Potential) - CPU version
116-
nep_ver="main"
117-
nep_sha256="--no-checksum"
116+
nep_ver="629ec5dda3127e046fde3f8082aedfca8deb915e"
117+
nep_sha256="57803d2e98ca5c8ced09e3e8d21ac1a0dbd61dda1977997864195f8c54b9b1f9"
118118

119119
# =============================================================================
120120
# Package Variable Loading Function
@@ -265,4 +265,4 @@ load_package_vars() {
265265
return 1
266266
;;
267267
esac
268-
}
268+
}

toolchain/scripts/patches/6190.patch

Lines changed: 0 additions & 41 deletions
This file was deleted.

toolchain/scripts/stage4/install_cereal.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ case "$with_cereal" in
5050
# url construction rules:
5151
# - Branch names (master, main, develop) without v prefix
5252
# - Version tags (e.g., 1.0.0) with v prefix
53-
if [[ "${cereal_ver}" =~ ^(master|main|develop)$ ]]; then
54-
url="https://codeload.github.com/MCresearch/cereal/tar.gz/${cereal_ver}"
53+
if [[ "${cereal_ver}" =~ ^[0-9a-f]{40}$ ]]; then
54+
url="https://codeload.github.com/USCiLab/cereal/tar.gz/${cereal_ver}"
5555
else
56-
url="https://codeload.github.com/MCresearch/cereal/tar.gz/v${cereal_ver}"
56+
url="https://codeload.github.com/USCiLab/cereal/tar.gz/v${cereal_ver}"
5757
fi
5858
if verify_checksums "${install_lock_file}"; then
5959
echo "$dirname is already installed, skipping it."
@@ -72,10 +72,6 @@ case "$with_cereal" in
7272
echo "Installing from scratch into ${pkg_install_dir}"
7373
[ -d $dirname ] && rm -rf $dirname
7474
tar -xzf $filename
75-
#unzip -q $filename
76-
# apply patch files for libri installation in issue #6190, Kai Luo
77-
# echo ${SCRIPT_DIR}
78-
cd $dirname && pwd && patch -p1 < ${SCRIPT_DIR}/patches/6190.patch
7975
cd "${BUILDDIR}"
8076
#
8177
mkdir -p "${pkg_install_dir}"

toolchain/scripts/stage4/install_libcomm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ case "$with_libcomm" in
5555
# url construction rules:
5656
# - Branch names (master, main, develop) without v prefix
5757
# - Version tags (e.g., 1.0.0) with v prefix
58-
if [[ "${libcomm_ver}" =~ ^(master|main|develop)$ ]]; then
58+
if [[ "${libcomm_ver}" =~ ^[0-9a-f]{40}$ ]]; then
5959
url="https://codeload.github.com/abacusmodeling/LibComm/tar.gz/${libcomm_ver}"
6060
else
6161
url="https://codeload.github.com/abacusmodeling/LibComm/tar.gz/v${libcomm_ver}"

toolchain/scripts/stage4/install_libri.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ case "$with_libri" in
5353
# url construction rules:
5454
# - Branch names (master, main, develop) without v prefix
5555
# - Version tags (e.g., 1.0.0) with v prefix
56-
if [[ "${libri_ver}" =~ ^(master|main|develop)$ ]]; then
56+
if [[ "${libri_ver}" =~ ^[0-9a-f]{40}$ ]]; then
5757
url="https://codeload.github.com/abacusmodeling/LibRI/tar.gz/${libri_ver}"
5858
else
5959
url="https://codeload.github.com/abacusmodeling/LibRI/tar.gz/v${libri_ver}"

toolchain/scripts/stage4/install_rapidjson.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ case "$with_rapidjson" in
5151
# url construction rules:
5252
# - Branch names (master, main, develop) without v prefix
5353
# - Version tags (e.g., 1.0.0) with v prefix
54-
if [[ "${rapidjson_ver}" =~ ^(master|main|develop)$ ]]; then
54+
if [[ "${rapidjson_ver}" =~ ^[0-9a-f]{40}$ ]]; then
5555
url="https://codeload.github.com/Tencent/rapidjson/tar.gz/${rapidjson_ver}"
5656
else
5757
url="https://codeload.github.com/Tencent/rapidjson/tar.gz/v${rapidjson_ver}"

0 commit comments

Comments
 (0)