Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package plugin-sdk-cpp for openSUSE:Factory checked in at 2026-08-21 16:56:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/plugin-sdk-cpp (Old) and /work/SRC/openSUSE:Factory/.plugin-sdk-cpp.new.1258 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plugin-sdk-cpp" Fri Aug 21 16:56:23 2026 rev:2 rq:1372637 version:0.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/plugin-sdk-cpp/plugin-sdk-cpp.changes 2026-06-18 19:40:27.466765044 +0200 +++ /work/SRC/openSUSE:Factory/.plugin-sdk-cpp.new.1258/plugin-sdk-cpp.changes 2026-08-21 16:57:53.238682593 +0200 @@ -1,0 +2,16 @@ +Thu Aug 20 18:51:37 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to version 0.4.1: + * extract_request: exclude std::string from the generic + byte-buffer set_value() overload so non-const strings are + exported as string results + * add automatic event encoders and decoders + * extract requests can return a vector of bytes + * fix const correctness during field extraction + * add a field_arg constructor + * update bundled nlohmann/json 3.10.2 to 3.12.0 +- Enable %check with the new codec unit tests against system + googletest (64-bit only; tests assume sizeof(size_t) == 8): + * plugin-sdk-cpp-system-gtest.patch + +------------------------------------------------------------------- Old: ---- plugin-sdk-cpp-0.3.0.tar.gz New: ---- plugin-sdk-cpp-0.4.1.tar.gz plugin-sdk-cpp-system-gtest.patch ----------(New B)---------- New: googletest (64-bit only; tests assume sizeof(size_t) == 8): * plugin-sdk-cpp-system-gtest.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ plugin-sdk-cpp.spec ++++++ --- /var/tmp/diff_new_pack.PGQHNC/_old 2026-08-21 16:57:54.578730127 +0200 +++ /var/tmp/diff_new_pack.PGQHNC/_new 2026-08-21 16:57:54.584730340 +0200 @@ -17,13 +17,22 @@ Name: plugin-sdk-cpp -Version: 0.3.0 +Version: 0.4.1 Release: 0 Summary: C++ SDK for writing Falcosecurity plugins License: Apache-2.0 URL: https://github.com/falcosecurity/plugin-sdk-cpp -Source0: https://github.com/falcosecurity/plugin-sdk-cpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/falcosecurity/plugin-sdk-cpp/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE plugin-sdk-cpp-system-gtest.patch -- use system googletest; FetchContent cannot clone in the offline OBS build +Patch0: plugin-sdk-cpp-system-gtest.patch BuildArch: noarch +# C++20 codec tests; skip the compile on Leap 15.x (gcc 7) +%if 0%{?suse_version} >= 1600 +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: cmake(GTest) +%endif %description The Falcosecurity Plugin SDK for C++ is a header-only library that wraps @@ -42,13 +51,28 @@ %autosetup -p1 %build -# header-only library: nothing to compile +# header-only INTERFACE library: cmake is used only to build the tests +%if 0%{?suse_version} >= 1600 +%cmake +%cmake_build +%endif %install mkdir -p %{buildroot}%{_includedir} cp -r include/falcosecurity %{buildroot}%{_includedir}/ find %{buildroot}%{_includedir}/falcosecurity -type f -exec chmod 0644 {} + +%if 0%{?suse_version} >= 1600 +%check +# noarch: %%ifnarch is evaluated against target=noarch, not the worker. +# Variable-length fields encode sizeof(size_t); tests hard-code 8-byte sizes. +if [ "$(getconf LONG_BIT)" = 64 ]; then +%ctest +else + echo "skipping codec tests: upstream hard-codes 64-bit size_t" +fi +%endif + %files devel %license LICENSE %doc README.md ++++++ plugin-sdk-cpp-0.3.0.tar.gz -> plugin-sdk-cpp-0.4.1.tar.gz ++++++ ++++ 22909 lines of diff (skipped) ++++++ plugin-sdk-cpp-system-gtest.patch ++++++ --- a/tests/CMakeLists.txt 2026-08-20 20:45:33.531162409 +0200 +++ b/tests/CMakeLists.txt 2026-08-20 20:45:33.531162409 +0200 @@ -14,20 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -include(FetchContent) - -# Fetch Google Test -FetchContent_Declare( - googletest - GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG v1.14.0 -) - -# For Windows: Prevent overriding the parent project's compiler/linker settings -set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) -FetchContent_MakeAvailable(googletest) - -# Include Google Test's CMake functions +find_package(GTest REQUIRED) include(GoogleTest) # Codec test
