Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package falco-libs for openSUSE:Factory checked in at 2026-06-25 10:51:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/falco-libs (Old) and /work/SRC/openSUSE:Factory/.falco-libs.new.2088 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "falco-libs" Thu Jun 25 10:51:43 2026 rev:2 rq:1361458 version:0.25.4 Changes: -------- --- /work/SRC/openSUSE:Factory/falco-libs/falco-libs.changes 2026-06-18 19:40:49.219672190 +0200 +++ /work/SRC/openSUSE:Factory/.falco-libs.new.2088/falco-libs.changes 2026-06-25 10:55:52.750628023 +0200 @@ -1,0 +2,8 @@ +Tue Jun 23 14:47:12 UTC 2026 - Martin Pluskal <[email protected]> + +- Add support-bshoshany-thread-pool-v5.patch: build against + bshoshany-thread-pool 5.x, where BS::thread_pool became a class + template; the patch aliases it version-agnostically so the source + still builds against both v4 and v5 (submitted upstream) + +------------------------------------------------------------------- New: ---- support-bshoshany-thread-pool-v5.patch ----------(New B)---------- New: - Add support-bshoshany-thread-pool-v5.patch: build against bshoshany-thread-pool 5.x, where BS::thread_pool became a class ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ falco-libs.spec ++++++ --- /var/tmp/diff_new_pack.vvrjQq/_old 2026-06-25 10:55:53.638658646 +0200 +++ /var/tmp/diff_new_pack.vvrjQq/_new 2026-06-25 10:55:53.638658646 +0200 @@ -25,6 +25,10 @@ License: Apache-2.0 URL: https://github.com/falcosecurity/libs Source0: https://github.com/falcosecurity/libs/archive/%{version}.tar.gz#/falco-libs-%{version}.tar.gz +# PATCH-FIX-UPSTREAM support-bshoshany-thread-pool-v5.patch -- build against +# bshoshany-thread-pool v5 (BS::thread_pool is now a class template) while +# staying compatible with v4 +Patch0: support-bshoshany-thread-pool-v5.patch # abseil-cpp-devel is pulled in transitively by re2's headers BuildRequires: abseil-cpp-devel BuildRequires: bpftool ++++++ support-bshoshany-thread-pool-v5.patch ++++++ --- a/userspace/libsinsp/sinsp_thread_pool_bs.h 2026-06-23 16:46:09.785877772 +0200 +++ b/userspace/libsinsp/sinsp_thread_pool_bs.h 2026-06-23 16:46:09.821881783 +0200 @@ -19,9 +19,15 @@ #include <libsinsp/sinsp_thread_pool.h> -namespace BS { -class thread_pool; -}; +#include <BS_thread_pool.hpp> + +// BS::thread_pool became a class template in bshoshany-thread-pool v5; +// alias it version-agnostically so this builds against both v4 and v5. +#if defined(BS_THREAD_POOL_VERSION_MAJOR) && BS_THREAD_POOL_VERSION_MAJOR >= 5 +using bs_thread_pool_t = BS::thread_pool<>; +#else +using bs_thread_pool_t = BS::thread_pool; +#endif class sinsp_thread_pool_bs : public sinsp_thread_pool { public: @@ -39,11 +45,11 @@ private: struct default_bs_tp_deleter { - void operator()(BS::thread_pool* __ptr) const; + void operator()(bs_thread_pool_t* __ptr) const; }; void run_routine(std::shared_ptr<std::function<bool()>> id); - std::unique_ptr<BS::thread_pool, default_bs_tp_deleter> m_pool; + std::unique_ptr<bs_thread_pool_t, default_bs_tp_deleter> m_pool; std::list<std::shared_ptr<std::function<bool()>>> m_routines; }; --- a/userspace/libsinsp/sinsp_thread_pool_bs.cpp 2026-06-23 16:46:09.789878218 +0200 +++ b/userspace/libsinsp/sinsp_thread_pool_bs.cpp 2026-06-23 16:46:09.821881783 +0200 @@ -20,16 +20,16 @@ #include <BS_thread_pool.hpp> -void sinsp_thread_pool_bs::default_bs_tp_deleter::operator()(BS::thread_pool* __ptr) const { - std::default_delete<BS::thread_pool>{}(__ptr); +void sinsp_thread_pool_bs::default_bs_tp_deleter::operator()(bs_thread_pool_t* __ptr) const { + std::default_delete<bs_thread_pool_t>{}(__ptr); } sinsp_thread_pool_bs::sinsp_thread_pool_bs(size_t num_workers): m_pool(nullptr), m_routines() { if(num_workers == 0) { - m_pool = std::unique_ptr<BS::thread_pool, default_bs_tp_deleter>(new BS::thread_pool()); + m_pool = std::unique_ptr<bs_thread_pool_t, default_bs_tp_deleter>(new bs_thread_pool_t()); } else { - m_pool = std::unique_ptr<BS::thread_pool, default_bs_tp_deleter>( - new BS::thread_pool(num_workers)); + m_pool = std::unique_ptr<bs_thread_pool_t, default_bs_tp_deleter>( + new bs_thread_pool_t(num_workers)); } }
