This is an automated email from the ASF dual-hosted git repository.
sollhui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new dbb9b193919 [chore](thirdparty) Add Alibaba Cloud OSS C++ SDK V2
dependency (#70497)
dbb9b193919 is described below
commit dbb9b193919e248ebb63ca1aba32b576f3cda839
Author: hui lai <[email protected]>
AuthorDate: Thu Nov 19 17:36:55 2026 +0800
[chore](thirdparty) Add Alibaba Cloud OSS C++ SDK V2 dependency (#70497)
### Background
The native OSS client proposed in #70423 needs the Alibaba Cloud OSS C++
SDK V2 in the Doris third-party installation.
### What problem does this PR solve?
Issue Number: #65793
Related PR: #70423 (consumes the SDK in BE and Recycler)
PR Type: Build/CI/Chore
Extract the SDK build from #70423 so it can be included in the
third-party build image ahead of the runtime integration.
### Details
- **Affected:** Register the upstream 0.2.0 source archive and checksum.
Add `oss_sdk` to the default build after curl and OpenSSL, and register
its source directory for cleanup.
- **Developer and release impact:** The build installs the SDK headers
and static library using the Doris curl and OpenSSL dependencies. To
update an existing third-party installation, run
`thirdparty/build-thirdparty.sh oss_sdk`.
- **License and third-party:** Alibaba Cloud OSS C++ SDK V2 0.2.0 is
licensed under Apache-2.0. #70423 carries the distribution license
metadata along with the runtime integration.
- **Rollback:** Revert this change to remove the SDK from future
third-party builds.
---
thirdparty/CHANGELOG.md | 5 +++++
thirdparty/build-thirdparty.sh | 18 ++++++++++++++++++
thirdparty/vars.sh | 7 +++++++
3 files changed, 30 insertions(+)
diff --git a/thirdparty/CHANGELOG.md b/thirdparty/CHANGELOG.md
index 81b7324e6ce..2c70c6d8899 100644
--- a/thirdparty/CHANGELOG.md
+++ b/thirdparty/CHANGELOG.md
@@ -2,6 +2,11 @@
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}`
+## 20261110
+
+- Added Alibaba Cloud OSS C++ SDK V2 0.2.0 for BE and Recycler. To update an
existing
+ third-party installation, run `thirdparty/build-thirdparty.sh oss_sdk`.
+
## 20260921
- Added: google-cloud-cpp 2.45.0 for OAuth2 authentication. Build static
auth/common
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 8271c540284..7e2529ec3ee 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -1664,6 +1664,22 @@ build_tsan_header() {
cp "${TSAN_HEADER_FILE}" "${TP_INSTALL_DIR}/include/sanitizer/"
}
+build_oss_sdk() {
+ check_if_source_exist "${OSS_SDK_SOURCE}"
+ cd "${TP_SOURCE_DIR}/${OSS_SDK_SOURCE}"
+ "${CMAKE_CMD}" -G "${GENERATOR}" -S . -B "${BUILD_DIR}" \
+ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" \
+ -DCMAKE_INSTALL_LIBDIR=lib64 -DCMAKE_PREFIX_PATH="${TP_INSTALL_DIR}" \
+ -DCMAKE_FIND_ROOT_PATH="${TP_INSTALL_DIR}"
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY \
+ -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
+ -DUSE_SYSTEM_CURL=ON -DCURL_NO_CURL_CMAKE=ON
-DCURL_INCLUDE_DIR="${TP_INSTALL_DIR}/include" \
+ -DCURL_LIBRARY_RELEASE="${TP_INSTALL_DIR}/lib/libcurl.a"
-DUSE_SYSTEM_OPENSSL=ON \
+ -DOPENSSL_INCLUDE_DIR="${TP_INSTALL_DIR}/include"
-DOPENSSL_SSL_LIBRARY="${TP_INSTALL_DIR}/lib/libssl.a" \
+ -DOPENSSL_CRYPTO_LIBRARY="${TP_INSTALL_DIR}/lib/libcrypto.a"
-DENABLE_RTTI=ON
+ "${CMAKE_CMD}" --build "${BUILD_DIR}" -j "${PARALLEL}"
+ "${CMAKE_CMD}" --install "${BUILD_DIR}"
+}
+
# aws_sdk
build_aws_sdk() {
check_if_source_exist "${AWS_SDK_SOURCE}"
@@ -2751,6 +2767,7 @@ if [[ "${#packages[@]}" -eq 0 ]]; then
tsan_header
mysql
aws_sdk
+ oss_sdk
js_and_css
xml2
idn
@@ -2889,6 +2906,7 @@ cleanup_package_source() {
pugixml) src_var="PUGIXML_SOURCE" ;;
lance_c) src_var="LANCE_C_SOURCE" ;;
paimon_rust) src_var="PAIMON_RUST_SOURCE" ;;
+ oss_sdk) src_var="OSS_SDK_SOURCE" ;;
aws_sdk) src_var="AWS_SDK_SOURCE" ;;
lzma) src_var="LZMA_SOURCE" ;;
xml2) src_var="XML2_SOURCE" ;;
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
index 63f1e9a13e7..f6741fa7e10 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -394,6 +394,12 @@ BOOTSTRAP_TABLE_CSS_NAME="bootstrap-table.min.css"
BOOTSTRAP_TABLE_CSS_FILE="bootstrap-table.min.css"
BOOTSTRAP_TABLE_CSS_MD5SUM="23389d4456da412e36bae30c469a766a"
+# Alibaba Cloud OSS C++ SDK V2
+OSS_SDK_DOWNLOAD="https://github.com/aliyun/alibabacloud-oss-cpp-sdk-v2/archive/refs/tags/0.2.0.tar.gz"
+OSS_SDK_NAME="alibabacloud-oss-cpp-sdk-v2-0.2.0.tar.gz"
+OSS_SDK_SOURCE="alibabacloud-oss-cpp-sdk-v2-0.2.0"
+OSS_SDK_MD5SUM="56e4c251034670db38e29deff27c0aa3"
+
# aws sdk
AWS_SDK_DOWNLOAD="https://github.com/aws/aws-sdk-cpp/archive/refs/tags/1.11.221.tar.gz"
AWS_SDK_NAME="aws-sdk-cpp-1.11.221.tar.gz"
@@ -691,6 +697,7 @@ export TP_ARCHIVES=(
'BOOTSTRAP_TABLE_JS'
'BOOTSTRAP_TABLE_CSS'
'TSAN_HEADER'
+ 'OSS_SDK'
'AWS_SDK'
'LZMA'
'XML2'
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]