This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new c5214aa2f43 branch-4.0: [Chore](thirdparty) add crc32c-1.1.2 to
thirdparty #58462 (#59519)
c5214aa2f43 is described below
commit c5214aa2f437787d6d45b6323639324d02ecc391
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Jan 4 18:54:52 2026 +0800
branch-4.0: [Chore](thirdparty) add crc32c-1.1.2 to thirdparty #58462
(#59519)
Cherry-picked from #58462
Co-authored-by: Pxl <[email protected]>
---
thirdparty/CHANGELOG.md | 4 ++++
thirdparty/build-thirdparty.sh | 16 ++++++++++++++++
thirdparty/vars.sh | 7 +++++++
3 files changed, 27 insertions(+)
diff --git a/thirdparty/CHANGELOG.md b/thirdparty/CHANGELOG.md
index e4ebec46004..fa0289912ba 100644
--- a/thirdparty/CHANGELOG.md
+++ b/thirdparty/CHANGELOG.md
@@ -2,6 +2,10 @@
This file contains version of the third-party dependency libraries in the
build-env image. The docker build-env image is apache/doris, and the tag is
`build-env-${version}`
+## 20251127
+
+- Added: crc32c-1.1.2
+
## 20251031
- Modified: librdkafka 1.9.2 -> 2.11.0
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 7c9f75c138e..3af6de36dbd 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -626,6 +626,21 @@ build_lz4() {
make -j "${PARALLEL}" install PREFIX="${TP_INSTALL_DIR}" BUILD_SHARED=no
INCLUDEDIR="${TP_INCLUDE_DIR}/lz4"
}
+# crc32c
+build_crc32c() {
+ check_if_source_exist "${CRC32C_SOURCE}"
+ cd "${TP_SOURCE_DIR}/${CRC32C_SOURCE}"
+
+ mkdir -p "${BUILD_DIR}"
+ cd "${BUILD_DIR}"
+
+ "${CMAKE_CMD}" -G "${GENERATOR}" -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
+ -DCRC32C_BUILD_TESTS=0 -DCRC32C_BUILD_BENCHMARKS=0
-DCRC32C_USE_GLOG=OFF \
+ -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" ..
+
+ "${BUILD_SYSTEM}" -j "${PARALLEL}" all install
+}
+
# zstd
build_zstd() {
check_if_source_exist "${ZSTD_SOURCE}"
@@ -1959,6 +1974,7 @@ if [[ "${#packages[@]}" -eq 0 ]]; then
openssl
libevent
zlib
+ crc32c
lz4
bzip
lzo2
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
index b47e8e33f73..6bb4551299b 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -115,6 +115,12 @@ ZLIB_NAME=zlib-1.3.1.tar.gz
ZLIB_SOURCE=zlib-1.3.1
ZLIB_MD5SUM="9855b6d802d7fe5b7bd5b196a2271655"
+# crc32c
+CRC32C_DOWNLOAD="https://github.com/google/crc32c/archive/refs/tags/1.1.2.tar.gz"
+CRC32C_NAME=crc32c-1.1.2.tar.gz
+CRC32C_SOURCE=crc32c-1.1.2
+CRC32C_MD5SUM="cc0338e6a60c38cab04a70a2c36cd9f2"
+
# lz4
LZ4_DOWNLOAD="https://github.com/lz4/lz4/archive/v1.9.4.tar.gz"
LZ4_NAME=lz4-1.9.4.tar.gz
@@ -559,6 +565,7 @@ export TP_ARCHIVES=(
'SNAPPY'
'GPERFTOOLS'
'ZLIB'
+ 'CRC32C'
'LZ4'
'BZIP'
'LZO2'
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]