Skip to content

Commit c5214aa

Browse files
branch-4.0: [Chore](thirdparty) add crc32c-1.1.2 to thirdparty #58462 (#59519)
Cherry-picked from #58462 Co-authored-by: Pxl <[email protected]>
1 parent 708affa commit c5214aa

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

thirdparty/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
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}`
44

5+
## 20251127
6+
7+
- Added: crc32c-1.1.2
8+
59
## 20251031
610

711
- Modified: librdkafka 1.9.2 -> 2.11.0

thirdparty/build-thirdparty.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,21 @@ build_lz4() {
626626
make -j "${PARALLEL}" install PREFIX="${TP_INSTALL_DIR}" BUILD_SHARED=no INCLUDEDIR="${TP_INCLUDE_DIR}/lz4"
627627
}
628628

629+
# crc32c
630+
build_crc32c() {
631+
check_if_source_exist "${CRC32C_SOURCE}"
632+
cd "${TP_SOURCE_DIR}/${CRC32C_SOURCE}"
633+
634+
mkdir -p "${BUILD_DIR}"
635+
cd "${BUILD_DIR}"
636+
637+
"${CMAKE_CMD}" -G "${GENERATOR}" -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
638+
-DCRC32C_BUILD_TESTS=0 -DCRC32C_BUILD_BENCHMARKS=0 -DCRC32C_USE_GLOG=OFF \
639+
-DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" ..
640+
641+
"${BUILD_SYSTEM}" -j "${PARALLEL}" all install
642+
}
643+
629644
# zstd
630645
build_zstd() {
631646
check_if_source_exist "${ZSTD_SOURCE}"
@@ -1959,6 +1974,7 @@ if [[ "${#packages[@]}" -eq 0 ]]; then
19591974
openssl
19601975
libevent
19611976
zlib
1977+
crc32c
19621978
lz4
19631979
bzip
19641980
lzo2

thirdparty/vars.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ ZLIB_NAME=zlib-1.3.1.tar.gz
115115
ZLIB_SOURCE=zlib-1.3.1
116116
ZLIB_MD5SUM="9855b6d802d7fe5b7bd5b196a2271655"
117117

118+
# crc32c
119+
CRC32C_DOWNLOAD="https://github.com/google/crc32c/archive/refs/tags/1.1.2.tar.gz"
120+
CRC32C_NAME=crc32c-1.1.2.tar.gz
121+
CRC32C_SOURCE=crc32c-1.1.2
122+
CRC32C_MD5SUM="cc0338e6a60c38cab04a70a2c36cd9f2"
123+
118124
# lz4
119125
LZ4_DOWNLOAD="https://github.com/lz4/lz4/archive/v1.9.4.tar.gz"
120126
LZ4_NAME=lz4-1.9.4.tar.gz
@@ -559,6 +565,7 @@ export TP_ARCHIVES=(
559565
'SNAPPY'
560566
'GPERFTOOLS'
561567
'ZLIB'
568+
'CRC32C'
562569
'LZ4'
563570
'BZIP'
564571
'LZO2'

0 commit comments

Comments
 (0)