diff options
author | Lucian Petrut <lpetrut@cloudbasesolutions.com> | 2024-01-09 09:15:34 +0100 |
---|---|---|
committer | Lucian Petrut <lpetrut@cloudbasesolutions.com> | 2024-01-09 13:04:42 +0100 |
commit | 82561ba77c4b896d4b56aed453f0425172bd76f0 (patch) | |
tree | ce0123f33b04330d0a1b06ba6582c6371f171293 /win32_deps_build.sh | |
parent | Merge pull request #54870 from Svelar/crimson_g_conf (diff) | |
download | ceph-82561ba77c4b896d4b56aed453f0425172bd76f0.tar.xz ceph-82561ba77c4b896d4b56aed453f0425172bd76f0.zip |
win32_deps_build.sh: download Boost from Ceph mirror
We've recently changed the Boost mirror since the previous one
became unavailable.
As pointed out in PR comments, it's even better to use the Ceph
hosted source in order to save Ceph lab bandwidth.
We're adding bzip2 as a dependency. xz-utils was missing, so we're
adding it to our list.
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Diffstat (limited to 'win32_deps_build.sh')
-rwxr-xr-x | win32_deps_build.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/win32_deps_build.sh b/win32_deps_build.sh index 1434d8b7ca6..491eb28093f 100755 --- a/win32_deps_build.sh +++ b/win32_deps_build.sh @@ -16,8 +16,8 @@ sslDir="${depsToolsetDir}/openssl" sslSrcDir="${depsSrcDir}/openssl" # For now, we'll keep the version number within the file path when not using git. -boostUrl="https://archives.boost.io/release/1.82.0/source/boost_1_82_0.tar.gz" -boostSha256Sum="66a469b6e608a51f8347236f4912e27dc5c60c60d7d53ae9bfe4683316c6f04c" +boostUrl="https://download.ceph.com/qa/boost_1_82_0.tar.bz2" +boostSha256Sum="a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6" boostSrcDir="${depsSrcDir}/boost_1_82_0" boostDir="${depsToolsetDir}/boost" zlibDir="${depsToolsetDir}/zlib" @@ -70,6 +70,8 @@ case "$OS" in libtool \ ninja-build \ zip \ + bzip2 \ + xz \ python3-PyYAML \ gcc \ diffutils \ @@ -83,12 +85,12 @@ case "$OS" in sudo env DEBIAN_FRONTEND=noninteractive apt-get -y install \ mingw-w64 g++ cmake pkg-config \ python3-dev python3-yaml \ - autoconf libtool ninja-build wget zip \ + autoconf libtool ninja-build wget xz-utils zip bzip2 \ git ;; suse) for PKG in mingw64-cross-gcc-c++ mingw64-libgcc_s_seh1 mingw64-libstdc++6 \ - cmake pkgconf python3-devel autoconf libtool ninja zip \ + cmake pkgconf python3-devel autoconf libtool ninja xz zip bzip2 \ python3-PyYAML \ gcc patch wget git; do rpm -q $PKG >/dev/null || zypper -n install $PKG @@ -160,14 +162,14 @@ echo "Building boost." cd $depsSrcDir if [[ ! -d $boostSrcDir ]]; then echo "Downloading boost." - wget -q -O boost.tar.gz $boostUrl - checksum=`sha256sum boost.tar.gz | cut -d ' ' -f 1` + wget -q -O boost.tar.bz2 $boostUrl + checksum=`sha256sum boost.tar.bz2 | cut -d ' ' -f 1` if [[ "$boostSha256Sum" != "$checksum" ]]; then echo "Invalid boost checksum: $checksum" >&2 exit 1 fi - tar xzf boost.tar.gz - rm boost.tar.gz + tar -xf boost.tar.bz2 + rm boost.tar.bz2 fi cd $boostSrcDir |