Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update C++ dependencies, roughly matching ones used in python. #5472

Merged
merged 14 commits into from
May 28, 2024
27 changes: 14 additions & 13 deletions cpp-client/build-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ if [ "$CLONE_ABSEIL" = "yes" ]; then
echo
echo "*** Clone abseil"
cd $SRC
# Previously used version: 20210324.2
git clone $GIT_FLAGS -b 20211102.0 --depth 1 "${GITHUB_BASE_URL}/abseil/abseil-cpp.git"
# Previously used version: 20211102.0
git clone $GIT_FLAGS -b 20240116.0 --depth 1 "${GITHUB_BASE_URL}/abseil/abseil-cpp.git"
echo "*** Cloning abseil DONE"
if [ "$fedora38" = "yes" ]; then
echo "*** Patching abseil for Fedora 38"
Expand Down Expand Up @@ -530,8 +530,8 @@ if [ "$CLONE_ZLIB" = "yes" ]; then
echo
echo "*** Clone zlib"
cd $SRC
# Previously used version: v1.2.11
git clone $GIT_FLAGS -b v1.2.13 --depth 1 "${GITHUB_BASE_URL}/madler/zlib"
# Previously used version: v1.2.13
git clone $GIT_FLAGS -b v1.3 --depth 1 "${GITHUB_BASE_URL}/madler/zlib"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to specify the patch version, or are we ok with that changing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a specific version, is just the name they gave, in git terms is just some arbitrary string. Mean as far as I understand how the universe works, that won't change when they create a new version.

echo "*** Cloning zlib DONE"
fi
if [ "$BUILD_ZLIB" = "yes" ]; then
Expand Down Expand Up @@ -561,24 +561,25 @@ if [ "$CLONE_PROTOBUF" = "yes" ]; then
echo
echo "*** Cloning protobuf"
cd $SRC
# Previously used version: v3.21.12
git clone $GIT_FLAGS -b v3.21.2 --depth 1 "${GITHUB_BASE_URL}/protocolbuffers/protobuf.git"
# Previously used version: v3.21.2
git clone $GIT_FLAGS -b v26.1 --depth 1 "${GITHUB_BASE_URL}/protocolbuffers/protobuf.git"
echo "*** Cloning protobuf DONE"
fi
if [ "$BUILD_PROTOBUF" = "yes" ]; then
echo
echo "*** Building protobuf"
cd $SRC/protobuf
# Note in the previously used version we built inside cmake/build; not anymore.
mkdir -p "cmake/$BUILD_DIR" && cd "cmake/$BUILD_DIR"
mkdir -p "$BUILD_DIR" && cd "$BUILD_DIR"
cmake -Dprotobuf_BUILD_TESTS=OFF \
${cmake_common_args} \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-Dprotobuf_ABSL_PROVIDER=package \
-DCMAKE_INSTALL_PREFIX=$(prefix protobuf) \
..
make -j$NCPUS
make install
cd ../.. && rm -fr "cmake/$BUILD_DIR"
cd .. && rm -fr "$BUILD_DIR"
if [ "$clean" = "yes" ]; then
rm -fr "$SRC/protobuf"
fi
Expand Down Expand Up @@ -689,7 +690,7 @@ if [ "$CLONE_CARES" = "yes" ]; then
echo "*** Clone ares"
cd $SRC
# Previously used version: cares-1_18_1
git clone $GIT_FLAGS -b cares-1_18_1 --depth 1 "${GITHUB_BASE_URL}/c-ares/c-ares.git"
git clone $GIT_FLAGS -b cares-1_28_1 --depth 1 "${GITHUB_BASE_URL}/c-ares/c-ares.git"
echo "*** Cloning ares DONE"
fi
if [ "$BUILD_CARES" = "yes" ]; then
Expand Down Expand Up @@ -721,8 +722,8 @@ if [ "$CLONE_GRPC" = "yes" ]; then
echo
echo "*** Clone grpc"
cd $SRC
# Previously used version: v1.45.2
git clone $GIT_FLAGS -b v1.46.7 --depth 1 "${GITHUB_BASE_URL}/grpc/grpc"
# Previously used version: v1.46.7
git clone $GIT_FLAGS -b v1.63.0 --depth 1 "${GITHUB_BASE_URL}/grpc/grpc"
echo "*** Cloning grpc DONE"
fi
if [ "$BUILD_GRPC" = "yes" ]; then
Expand Down Expand Up @@ -756,8 +757,8 @@ if [ "$CLONE_ARROW" = "yes" ]; then
echo
echo "*** Cloning arrow"
cd $SRC
# Previously used version: apache-arrow-7.0.0
git clone $GIT_FLAGS -b apache-arrow-13.0.0 --depth 1 "${GITHUB_BASE_URL}/apache/arrow"
# Previously used version: apache-arrow-13.0.0
git clone $GIT_FLAGS -b apache-arrow-16.0.0 --depth 1 "${GITHUB_BASE_URL}/apache/arrow"
echo "*** Cloning arrow DONE"
fi
if [ "$BUILD_ARROW" = "yes" ]; then
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading