[packages/wiredtiger] - added gcp storage support

qboosh qboosh at pld-linux.org
Sun May 17 21:52:47 CEST 2026


commit be99bd541ecd3c140283f9d6a251d1f293c55848
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 17 21:52:45 2026 +0200

    - added gcp storage support

 wiredtiger-includes.patch | 10 ++++++++++
 wiredtiger-install.patch  | 41 +++++++++++++++++++++++++++++++++++++++++
 wiredtiger.spec           | 14 ++++++++++++--
 3 files changed, 63 insertions(+), 2 deletions(-)
---
diff --git a/wiredtiger.spec b/wiredtiger.spec
index f742c72..73c00ce 100644
--- a/wiredtiger.spec
+++ b/wiredtiger.spec
@@ -1,12 +1,11 @@
 # TODO:
 # -DENABLE_S3 (BR: aws-sdk-cpp: aws-cpp-sdk-s3-crt, aws-cpp-sdk-core)
-# -DENABLE_GCP (BR: google-cloud-cpp: google_cloud_cpp_storage, google_cloud_cpp_common)
 # -DENABLE_AZURE (BR: azure-sdk-for-cpp: azure-storage-blobs-cpp, azure-core-cpp)
-# libaccel-config?
 #
 # Conditional build:
 %bcond_without	static_libs	# static libraries
 %bcond_without	python		# Python binding
+%bcond_without	gcp		# Google Cloud Platform support
 %bcond_without	memkind		# NVRAM/SSD block caches support via memkind
 %bcond_without	qpl		# IAA compression via libqpl
 #
@@ -25,9 +24,13 @@ Group:		Libraries
 Source0:	https://github.com/wiredtiger/wiredtiger/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	41baa8cd5d81a48e29921b3fc2a8d306
 Patch0:		%{name}-buildtype.patch
+Patch1:		%{name}-includes.patch
+Patch2:		%{name}-install.patch
 URL:		https://source.wiredtiger.com/
 %{?with_qpl:BuildRequires:	accel-config-devel}
 BuildRequires:	cmake >= 3.10
+# google_cloud_cpp_storage, google_cloud_cpp_common
+%{?with_gcp:BuildRequires:	google-cloud-cpp-devel >= 2.6.0}
 BuildRequires:	libsodium-devel
 BuildRequires:	libstdc++-devel >= 6:7
 BuildRequires:	lz4-devel
@@ -93,6 +96,8 @@ Interfejs Pythona do silnika danych WiredTiger.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
 
 # modules, not executables
 %{__sed} -i -e '1s,#!/usr/bin/env python$,#,' lang/python/wiredtiger/*.py
@@ -108,6 +113,7 @@ CFLAGS="%{rpmcflags} -Wno-error=unterminated-string-initialization -Wno-error=di
 %cmake .. \
 	-DCMAKE_INSTALL_INCLUDEDIR=include \
 	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
+	%{?with_gcp:-DENABLE_GCP=ON} \
 	%{?with_qpl:-DENABLE_IAA=ON} \
 	-DENABLE_LZ4=ON \
 	%{?with_memkind:-DENABLE_MEMKIND=ON} \
@@ -145,6 +151,10 @@ rm -rf $RPM_BUILD_ROOT
 %doc LICENSE README
 %attr(755,root,root) %{_bindir}/wt
 %{_libdir}/libwiredtiger.so.%{version}
+%{_libdir}/libwiredtiger_dir_store.so
+%if %{with gcp}
+%{_libdir}/libwiredtiger_gcp_store.so
+%endif
 %if %{with qpl}
 %{_libdir}/libwiredtiger_iaa.so
 %endif
diff --git a/wiredtiger-includes.patch b/wiredtiger-includes.patch
new file mode 100644
index 0000000..a6a7b20
--- /dev/null
+++ b/wiredtiger-includes.patch
@@ -0,0 +1,10 @@
+--- wiredtiger-11.3.1/ext/storage_sources/gcp_store/gcp_log_system.cpp.orig	2024-11-14 23:24:41.000000000 +0100
++++ wiredtiger-11.3.1/ext/storage_sources/gcp_store/gcp_log_system.cpp	2026-05-17 20:56:05.115215096 +0200
+@@ -25,6 +25,7 @@
+  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+  * OTHER DEALINGS IN THE SOFTWARE.
+  */
++#include <cassert>
+ #include "gcp_log_system.h"
+ 
+ gcp_log_system::gcp_log_system(WT_EXTENSION_API *wt_api, int32_t wt_verbosity_level)
diff --git a/wiredtiger-install.patch b/wiredtiger-install.patch
new file mode 100644
index 0000000..73d170d
--- /dev/null
+++ b/wiredtiger-install.patch
@@ -0,0 +1,41 @@
+--- wiredtiger-11.3.1/ext/storage_sources/azure_store/CMakeLists.txt.orig	2024-11-14 23:24:41.000000000 +0100
++++ wiredtiger-11.3.1/ext/storage_sources/azure_store/CMakeLists.txt	2026-05-17 21:34:56.739330448 +0200
+@@ -54,6 +54,8 @@ target_link_libraries(
+         azure_container_util
+ )
+ 
++install(TARGETS wiredtiger_azure_store LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++
+ if(HAVE_UNITTEST)
+     add_subdirectory(test)
+ endif()
+--- wiredtiger-11.3.1/ext/storage_sources/dir_store/CMakeLists.txt.orig	2024-11-14 23:24:41.000000000 +0100
++++ wiredtiger-11.3.1/ext/storage_sources/dir_store/CMakeLists.txt	2026-05-17 21:35:24.641736714 +0200
+@@ -19,3 +19,5 @@ target_compile_options(
+     wiredtiger_dir_store
+     PRIVATE ${COMPILER_DIAGNOSTIC_C_FLAGS}
+ )
++
++install(TARGETS wiredtiger_dir_store LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+--- wiredtiger-11.3.1/ext/storage_sources/gcp_store/CMakeLists.txt.orig	2024-11-14 23:24:41.000000000 +0100
++++ wiredtiger-11.3.1/ext/storage_sources/gcp_store/CMakeLists.txt	2026-05-17 21:35:42.171848026 +0200
+@@ -52,6 +52,8 @@ target_link_libraries(
+         gcp_bucket_util
+ )
+ 
++install(TARGETS wiredtiger_gcp_store LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++
+ if(HAVE_UNITTEST)
+     add_subdirectory(test)
+ endif()
+--- wiredtiger-11.3.1/ext/storage_sources/s3_store/CMakeLists.txt.orig	2024-11-14 23:24:41.000000000 +0100
++++ wiredtiger-11.3.1/ext/storage_sources/s3_store/CMakeLists.txt	2026-05-17 21:35:57.947719121 +0200
+@@ -46,6 +46,8 @@ target_link_libraries(
+         aws-sdk::core
+ )
+ 
++install(TARGETS wiredtiger_s3_store LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
++
+ # Add the unit tests, need Catch2 which is resolved with HAVE_UNITTEST.
+ if(HAVE_UNITTEST)
+     add_subdirectory(test)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wiredtiger.git/commitdiff/be99bd541ecd3c140283f9d6a251d1f293c55848



More information about the pld-cvs-commit mailing list