Skip to content

Commit 79c567b

Browse files
committed
Update list of RPM-based platforms
Add Fedora and openSUSE
1 parent 79fe9cf commit 79c567b

File tree

5 files changed

+62
-5
lines changed

5 files changed

+62
-5
lines changed

.valgrind_suppressions.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
glibc-libdl-1
3+
Memcheck:Leak
4+
match-leak-kinds: reachable
5+
fun:malloc
6+
...
7+
fun:dl_open_worker
8+
fun:_dl_catch_exception
9+
...
10+
}
11+
{
12+
glibc-libdl-2
13+
Memcheck:Leak
14+
match-leak-kinds: reachable
15+
fun:calloc
16+
...
17+
fun:dl_open_worker
18+
...
19+
fun:_dl_catch_exception
20+
...
21+
}
22+
{
23+
glibc-libdl-3
24+
Memcheck:Leak
25+
match-leak-kinds: reachable
26+
fun:malloc
27+
...
28+
fun:dl_open_worker
29+
...
30+
fun:_dl_catch_error
31+
...
32+
}

cmake/Packaging.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@ if(COUCHBASE_CXX_CLIENT_RPM_TARGETS)
133133
add_custom_target(packaging_srpm DEPENDS ${COUCHBASE_CXX_CLIENT_SRPM})
134134

135135
list(APPEND COUCHBASE_CXX_CLIENT_SUPPORTED_ROOTS
136+
"opensuse-leap-15.5-${CMAKE_SYSTEM_PROCESSOR}"
136137
"rocky-9-${CMAKE_SYSTEM_PROCESSOR}"
137138
"rocky-8-${CMAKE_SYSTEM_PROCESSOR}"
138139
"amazonlinux-2023-${CMAKE_SYSTEM_PROCESSOR}"
140+
"fedora-40-${CMAKE_SYSTEM_PROCESSOR}"
139141
)
140142

141143
message(STATUS "Supported build roots for RPM packages: ${COUCHBASE_CXX_CLIENT_SUPPORTED_ROOTS}")

cmake/Testing.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if(COUCHBASE_CXX_CLIENT_ENABLE_VALGRIND)
1515
if(VALGRIND)
1616
set(VALGRIND_COMMAND "${VALGRIND}")
1717
set(VALGRIND_COMMAND_OPTIONS
18-
"-v --tool=memcheck --leak-check=full --track-fds=yes --num-callers=50 --show-reachable=yes --track-origins=yes --malloc-fill=0xff --free-fill=0xfe"
18+
"-v --tool=memcheck --leak-check=full --track-fds=yes --num-callers=50 --show-reachable=yes --track-origins=yes --malloc-fill=0xff --free-fill=0xfe --suppressions=${PROJECT_SOURCE_DIR}/.valgrind_suppressions.txt"
1919
)
2020
set(MEMORYCHECK_COMMAND "${VALGRIND}")
2121
set(MEMORYCHECK_COMMAND_OPTIONS "${VALGRIND_COMMAND_OPTIONS}")

cmake/couchbase-cxx-client.spec.in

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
%if 0%{?suse_version}
2+
%global license_dir %{_datadir}/doc
3+
%else
4+
%global license_dir %{_docdir}
5+
%endif
6+
17
Name: couchbase-cxx-client
28
Summary: Couchbase C++ SDK
39
Version: @COUCHBASE_CXX_CLIENT_PACKAGE_VERSION@
@@ -6,7 +12,11 @@ Vendor: Couchbase, Inc.
612
Packager: Couchbase SDK Team <[email protected]>
713
License: ASL 2.0
814
URL: https://docs.couchbase.com/cxx-sdk/current/hello-world/overview.html
15+
%if 0%{?suse_version} == 1500
16+
BuildRequires: gcc13, gcc13-c++
17+
%else
918
BuildRequires: gcc, gcc-c++
19+
%endif
1020
BuildRequires: cmake >= 3.19
1121
1222

@@ -36,6 +46,10 @@ Development files for the Couchbase C++ SDK.
3646
%cmake \
3747
%if 0%{?rhel} == 8 || 0%{?rocky} == 8 || 0%{?ol} == 8
3848
-S "." -B "redhat-linux-build" \
49+
%endif
50+
%if 0%{?suse_version} == 1500
51+
-DCMAKE_C_COMPILER=gcc-13 \
52+
-DCMAKE_CXX_COMPILER=g++-13 \
3953
%endif
4054
-DBUILD_SHARED_LIBS=OFF \
4155
-DCOUCHBASE_CXX_CLIENT_INSTALL=ON \
@@ -50,6 +64,9 @@ Development files for the Couchbase C++ SDK.
5064
%if 0%{?rhel} == 8 || 0%{?rocky} == 8 || 0%{?ol} == 8
5165
/usr/bin/cmake --build "redhat-linux-build" -j${RPM_BUILD_NCPUS} --verbose
5266
%else
67+
%if 0%{?suse_version} == 1500
68+
cd build
69+
%endif
5370
%cmake_build
5471
%endif
5572

@@ -59,11 +76,17 @@ DESTDIR="%{buildroot}" /usr/bin/cmake --install "redhat-linux-build"
5976
%else
6077
%cmake_install
6178
%endif
79+
%if 0%{?suse_version} == 1500
80+
%{__mkdir_p} %{buildroot}%{license_dir}/tao/json %{buildroot}%{_libdir}/cmake
81+
%{__mv} %{buildroot}%{license_dir}/taocpp-json/tao/json/LICENSE %{buildroot}%{license_dir}/tao/json/LICENSE
82+
%{__mv} %{buildroot}%{_datadir}/taocpp-json/cmake %{buildroot}%{_libdir}/cmake/taocpp-json
83+
%{__mv} %{buildroot}%{_datadir}/pegtl/cmake %{buildroot}%{_libdir}/cmake/pegtl
84+
%endif
6285

6386
%files
64-
%license %{_docdir}/couchbase_cxx_client/LICENSE.txt
65-
%license %{_docdir}/tao/pegtl/LICENSE
66-
%license %{_docdir}/tao/json/LICENSE
87+
%license %{license_dir}/couchbase_cxx_client/LICENSE.txt
88+
%license %{license_dir}/tao/pegtl/LICENSE
89+
%license %{license_dir}/tao/json/LICENSE
6790
%{_libdir}/libcouchbase_cxx_client.so.*
6891

6992
%files tools

core/origin.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ struct traits<couchbase::core::columnar::security_options> {
222222
{ "trust_only_pem_string", o.trust_only_pem_string },
223223
{ "trust_only_platform", o.trust_only_platform },
224224
{ "trust_only_certificates", o.trust_only_certificates.size() },
225-
// TODO: add if/when we support the cipher_suites option
225+
// TODO(JC): add if/when we support the cipher_suites option
226226
// { "cipher_suites", utils::join_strings(o.cipher_suites, ":") },
227227
};
228228
}

0 commit comments

Comments
 (0)