package/fluent-bit: bump to 3.2.2
PATCH 1/1 package/fluent-bit: bump to 3.2.2
News:
https://fluentbit.io/announcements/v3.2.2/
https://fluentbit.io/announcements/v3.2.1/
https://fluentbit.io/announcements/v3.2.0/
https://fluentbit.io/announcements/v3.1.10/
https://fluentbit.io/announcements/v3.1.9/
https://fluentbit.io/announcements/v3.1.8/
https://fluentbit.io/announcements/v3.1.7/
https://fluentbit.io/announcements/v3.1.6/
https://fluentbit.io/announcements/v3.1.5/
https://fluentbit.io/announcements/v3.1.4/
Support has been added for (some) system provided libraries, see:
- https://github.com/fluent/fluent-bit/pull/7286
- https://github.com/fluent/fluent-bit/pull/8930
The c-ares and nghttp2 package are always needed, so use the buildroot shipped versions. Also allow the usage of libbacktrace and jemalloc.
A bunch of new compile fixes have been added,
all of them are proposed upstream for review.
---
...-the-system-provided-LuaJIT-if-found.patch | 62 -------------
...akeLists.txt-allow-compilation-with.patch} | 12 +--
...able-cxx-support-for-librdkafka-7741.patch | 27 ++++++
...isable-cxx-support-for-librdkafka-77.patch | 29 ------
...eLists.txt-do-not-require-a-CXX-comp.patch | 91 +++++++++++++++++++
...-CMakeLists.txt-do-not-require-a-CXX.patch | 37 ++++++++
...rite-gs-base-with-cmake-variable-30.patch} | 4 +-
...kafka-CMakeLists.txt-fix-cross-compi.patch | 48 ++++++++++
...rofiles-fix-wrong-pointer-assignment.patch | 81 +++++++++++++++++
package/fluent-bit/Config.in | 2 +
package/fluent-bit/fluent-bit.hash | 2 +-
package/fluent-bit/fluent-bit.mk | 29 +++++-
12 files changed, 318 insertions(+), 106 deletions(-)
delete mode 100644 package/fluent-bit/0001-build-use-the-system-provided-LuaJIT-if-found.patch
rename package/fluent-bit/{0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch => 0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch} (92%)
create mode 100644 package/fluent-bit/0002-build-disable-cxx-support-for-librdkafka-7741.patch
delete mode 100644 package/fluent-bit/0003-CMakeLists.txt-disable-cxx-support-for-librdkafka-77.patch
create mode 100644 package/fluent-bit/0003-lib-nghttp2-CMakeLists.txt-do-not-require-a-CXX-comp.patch
create mode 100644 package/fluent-bit/0004-lib-luajit-cmake-CMakeLists.txt-do-not-require-a-CXX.patch
rename package/fluent-bit/{0004-Enhance-setting-write-gs-base-with-cmake-variable-30.patch => 0005-Enhance-setting-write-gs-base-with-cmake-variable-30.patch} (98%)
create mode 100644 package/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patch
create mode 100644 package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patchpackage/fluent-bit/0001-build-use-the-system-provided-LuaJIT-if-found.patch deleted +0 -62
@@ -1,62 +0,0 @@ -From 8d6f6cfb07a8fe32dc0b9577e1b2f1ee1b67b736 Mon Sep 17 00:00:00 2001 -From: Thomas Devoogdt <[email protected]> -Date: Fri, 28 Apr 2023 10:25:16 +0200 -Subject: [PATCH] build: use the system provided LuaJIT if found - -e.g. buildroot has logic to build luajit, -so if pkg_check_modules can find a suitable version, -then use that one if -DFLB_PREFER_SYSTEM_LIBS=Yes. - -Upstream: https://github.com/fluent/fluent-bit/pull/7286 -Signed-off-by: Thomas Devoogdt <[email protected]> ---- - CMakeLists.txt | 12 +++++++++++- - src/CMakeLists.txt | 2 +- - 2 files changed, 12 insertions(+), 2 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 2da792d53..3229420c6 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -128,6 +128,7 @@ option(FLB_TESTS_INTERNAL_FUZZ "Enable internal fuzz tests" No) - option(FLB_TESTS_OSSFUZZ "Enable OSS-Fuzz build" No) - option(FLB_MTRACE "Enable mtrace support" No) - option(FLB_POSIX_TLS "Force POSIX thread storage" No) -+option(FLB_PREFER_SYSTEM_LIBS "Prefer system installed libraries" No) - option(FLB_INOTIFY "Enable inotify support" Yes) - option(FLB_SQLDB "Enable SQL embedded DB" Yes) - option(FLB_HTTP_SERVER "Enable HTTP Server" Yes) -@@ -1023,7 +1024,16 @@ endif() - # LuaJIT (Scripting Support) - # ========================== - if(FLB_LUAJIT) -- include(cmake/luajit.cmake) -+ if(FLB_PREFER_SYSTEM_LIBS) -+ find_package(PkgConfig) -+ pkg_check_modules(LUAJIT luajit>=2.1.0) -+ endif() -+ if(LUAJIT_FOUND) -+ include_directories(${LUAJIT_INCLUDE_DIRS}) -+ else() -+ include(cmake/luajit.cmake) -+ set(LUAJIT_LIBRARIES "libluajit") -+ endif() - FLB_DEFINITION(FLB_HAVE_LUAJIT) - endif() - -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index b6233d9f7..67baec456 100644 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -221,7 +221,7 @@ endif() - if(FLB_LUAJIT) - set(extra_libs - ${extra_libs} -- "libluajit") -+ ${LUAJIT_LIBRARIES}) - endif() - - if(FLB_SQLDB) --- -2.34.1 -
package/fluent-bit/0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch renamed from package/fluent-bit/0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch +5 -7
@@ -1,4 +1,4 @@ -From 29be5275f6f7e15aca768e9b235998abc5a604e2 Mon Sep 17 00:00:00 2001 +From c44256c95f5703dd627413f17c6ad250073898d9 Mon Sep 17 00:00:00 2001 From: Thomas Devoogdt <[email protected]> Date: Tue, 25 Jul 2023 09:10:41 +0200 Subject: [PATCH] lib: librdkafka: CMakeLists.txt: allow compilation without
@@ -7,13 +7,11 @@ Subject: [PATCH] lib: librdkafka: CMakeLists.txt: allow compilation without e.g. fluent-bit is a c-only library, so allow compilation without cxx Upstream: https://github.com/confluentinc/librdkafka/pull/4366 -Upstream: https://github.com/fluent/fluent-bit/pull/7765 +Upstream: https://github.com/fluent/fluent-bit/pull/9277 Signed-off-by: Thomas Devoogdt <[email protected]> -[Fabrice: update for 3.1.3] -Signed-off-by: Fabrice Fontaine <[email protected]> --- - lib/librdkafka-2.3.0/CMakeLists.txt | 18 ++++++++++-- - lib/librdkafka-2.3.0/examples/CMakeLists.txt | 31 +++++++++++++------- + lib/librdkafka-2.4.0/CMakeLists.txt | 18 ++++++++++-- + lib/librdkafka-2.4.0/examples/CMakeLists.txt | 31 +++++++++++++------- 2 files changed, 35 insertions(+), 14 deletions(-) diff --git a/lib/librdkafka-2.4.0/CMakeLists.txt b/lib/librdkafka-2.4.0/CMakeLists.txt
@@ -116,5 +114,5 @@ index 8c0079abe..c9336b729 100644 + endif() endif(NOT WIN32) -- -2.34.1 +2.43.0
package/fluent-bit/0002-build-disable-cxx-support-for-librdkafka-7741.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 0dc955cd15cc0b09a1d557131fae59842cb2bbd8 Mon Sep 17 00:00:00 2001 +From: Thomas Devoogdt <[email protected]> +Date: Tue, 25 Jul 2023 10:00:36 +0200 +Subject: [PATCH] build: disable cxx support for librdkafka #7741 + +Fluent-bit is c only, so no need to compile cxx. +This fixes also a compile error in buildroot. + +Upstream: https://github.com/fluent/fluent-bit/pull/9277 +Signed-off-by: Thomas Devoogdt <[email protected]> +--- + cmake/kafka.cmake | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cmake/kafka.cmake b/cmake/kafka.cmake +index 3a0ebfed2..af0e2f460 100644 +--- a/cmake/kafka.cmake ++++ b/cmake/kafka.cmake +@@ -1,4 +1,5 @@ + # kafka cmake ++FLB_OPTION(RDKAFKA_BUILD_CXX Off) + FLB_OPTION(RDKAFKA_BUILD_STATIC On) + FLB_OPTION(RDKAFKA_BUILD_EXAMPLES Off) + FLB_OPTION(RDKAFKA_BUILD_TESTS Off) +-- +2.43.0 +
package/fluent-bit/0003-CMakeLists.txt-disable-cxx-support-for-librdkafka-77.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 7f3fc55b734db2d28af63c393b52bc238af9f20a Mon Sep 17 00:00:00 2001 -From: Thomas Devoogdt <[email protected]> -Date: Tue, 25 Jul 2023 10:00:36 +0200 -Subject: [PATCH] CMakeLists.txt: disable cxx support for librdkafka #7741 - -Fluent-bit is c only, so no need to compile cxx. -This fixes also a compile error in buildroot. - -Upstream: https://github.com/fluent/fluent-bit/pull/7765 -Signed-off-by: Thomas Devoogdt <[email protected]> ---- - CMakeLists.txt | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 3229420c6..2694f189f 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -979,6 +979,7 @@ if(FLB_BACKTRACE) - endif() - - if(FLB_IN_KAFKA OR FLB_OUT_KAFKA) -+ FLB_OPTION(RDKAFKA_BUILD_CXX Off) - FLB_OPTION(RDKAFKA_BUILD_STATIC On) - FLB_OPTION(RDKAFKA_BUILD_EXAMPLES Off) - FLB_OPTION(RDKAFKA_BUILD_TESTS Off) --- -2.34.1 -
package/fluent-bit/0003-lib-nghttp2-CMakeLists.txt-do-not-require-a-CXX-comp.patch new file +91 -0
91 lines not on this page · raw message
package/fluent-bit/0004-lib-luajit-cmake-CMakeLists.txt-do-not-require-a-CXX.patch new file +37 -0
@@ -0,0 +1,37 @@ +From ac870a2e2de899bcc8b6818b97404479da6d0663 Mon Sep 17 00:00:00 2001 +From: Thomas Devoogdt <[email protected]> +Date: Sun, 25 Aug 2024 20:10:27 +0200 +Subject: [PATCH] lib: luajit-cmake: CMakeLists.txt: do not require a CXX + compiler + +Upstream: https://github.com/fluent/fluent-bit/pull/9277 +Signed-off-by: Thomas Devoogdt <[email protected]> +--- + lib/luajit-cmake/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/luajit-cmake/CMakeLists.txt b/lib/luajit-cmake/CMakeLists.txt +index 7baf878c7..051a800f5 100644 +--- a/lib/luajit-cmake/CMakeLists.txt ++++ b/lib/luajit-cmake/CMakeLists.txt +@@ -13,7 +13,7 @@ endif() + + get_directory_property(hasParent PARENT_DIRECTORY) + if(LUAJIT_DIR) +- project(luajit) ++ project(luajit LANGUAGES C) + include(LuaJIT.cmake) + if (hasParent) + set(LUA_TARGET $<TARGET_FILE:luajit> PARENT_SCOPE) +@@ -24,7 +24,7 @@ if(LUAJIT_DIR) + endif() + endif() + elseif(LUA_DIR) +- project(lua) ++ project(lua LANGUAGES C) + include(lua.cmake) + if (hasParent) + set(LUA_TARGET $<TARGET_FILE:lua> PARENT_SCOPE) +-- +2.43.0 +
package/fluent-bit/0005-Enhance-setting-write-gs-base-with-cmake-variable-30.patch renamed from package/fluent-bit/0004-Enhance-setting-write-gs-base-with-cmake-variable-30.patch +2 -2
@@ -1,4 +1,4 @@ -From 7eacb2ab839e74cb07038398def5e3cc198448d4 Mon Sep 17 00:00:00 2001 +From e17ce6ddcb4dc1cd3081eabfb94a1cdc224f4d69 Mon Sep 17 00:00:00 2001 From: Wenyong Huang <[email protected]> Date: Tue, 23 Jan 2024 12:21:20 +0800 Subject: [PATCH] Enhance setting write gs base with cmake variable (#3066)
@@ -95,5 +95,5 @@ index e73ebc85f..a61a522f3 100644 endif () if (WAMR_CONFIGUABLE_BOUNDS_CHECKS EQUAL 1) -- -2.34.1 +2.43.0
package/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patch new file +48 -0
48 lines not on this page · raw message
package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +81 -0
81 lines not on this page · raw message
package/fluent-bit/Config.in +2 -0
@@ -3,7 +3,9 @@ config BR2_PACKAGE_FLUENT_BIT depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_STATIC_LIBS # dlfcn.h + select BR2_PACKAGE_C_ARES select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC + select BR2_PACKAGE_NGHTTP2 select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL select BR2_PACKAGE_LIBOPENSSL_ENGINES # needed by bundled librdkafka
package/fluent-bit/fluent-bit.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed -sha256 4c745066223811047e3911c19db118eadec579ca62ef833a1b1fb573acd8cb85 fluent-bit-3.1.3.tar.gz +sha256 3abcd7eda1a26fe79f1d715491bafcca77d0186cc46d1d8465157790358f827d fluent-bit-3.2.2.tar.gz sha256 0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594 LICENSE
package/fluent-bit/fluent-bit.mk +24 -5
@@ -4,13 +4,15 @@ # ################################################################################ -FLUENT_BIT_VERSION = 3.1.3 +FLUENT_BIT_VERSION = 3.2.2 FLUENT_BIT_SITE = $(call github,fluent,fluent-bit,v$(FLUENT_BIT_VERSION)) FLUENT_BIT_LICENSE = Apache-2.0 FLUENT_BIT_LICENSE_FILES = LICENSE FLUENT_BIT_CPE_ID_VENDOR = treasuredata FLUENT_BIT_CPE_ID_PRODUCT = fluent_bit -FLUENT_BIT_DEPENDENCIES = host-bison host-flex libyaml openssl +FLUENT_BIT_DEPENDENCIES = c-ares host-bison host-flex libyaml nghttp2 openssl + +FLUENT_BIT_CMAKE_BACKEND = ninja FLUENT_BIT_CONF_OPTS += \ -DFLB_DEBUG=No \
@@ -18,8 +20,8 @@ FLUENT_BIT_CONF_OPTS += \ -DFLB_SECURITY=No \ -DFLB_EXAMPLES=No \ -DFLB_CHUNK_TRACE=No \ - -DFLB_PREFER_SYSTEM_LIBS=Yes \ - -DFLB_BACKTRACE=No + -DFLB_PREFER_SYSTEM_LIB_CARES=Yes \ + -DFLB_PREFER_SYSTEM_LIB_NGHTTP2=Yes ifeq ($(BR2_PACKAGE_FLUENT_BIT_WASM),y) FLUENT_BIT_WAMR_ARCH = $(call qstrip,$(BR2_PACKAGE_FLUENT_BIT_WASM_ARCH))
@@ -37,8 +39,25 @@ else FLUENT_BIT_CONF_OPTS += -DFLB_WASM=No endif +ifeq ($(BR2_PACKAGE_LIBBACKTRACE),y) +FLUENT_BIT_CONF_OPTS += -DFLB_BACKTRACE=Yes \ + -DFLB_PREFER_SYSTEM_LIB_BACKTRACE=Yes +FLUENT_BIT_DEPENDENCIES += libbacktrace +else +FLUENT_BIT_CONF_OPTS += -DFLB_BACKTRACE=No +endif + +ifeq ($(BR2_PACKAGE_JEMALLOC),y) +FLUENT_BIT_CONF_OPTS += -DFLB_JEMALLOC=Yes \ + -DFLB_PREFER_SYSTEM_LIB_JEMALLOC=Yes +FLUENT_BIT_DEPENDENCIES += jemalloc +else +FLUENT_BIT_CONF_OPTS += -DFLB_JEMALLOC=No +endif + ifeq ($(BR2_PACKAGE_LUAJIT),y) -FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=Yes +FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=Yes \ + -DFLB_PREFER_SYSTEM_LIB_LUAJIT=Yes FLUENT_BIT_DEPENDENCIES += luajit else FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=No
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Julien Olivain
AppliedQuoted 18 lines · Thomas Devoogdt
News:
https://fluentbit.io/announcements/v3.2.2/
https://fluentbit.io/announcements/v3.2.1/
https://fluentbit.io/announcements/v3.2.0/
https://fluentbit.io/announcements/v3.1.10/
https://fluentbit.io/announcements/v3.1.9/
https://fluentbit.io/announcements/v3.1.8/
https://fluentbit.io/announcements/v3.1.7/
https://fluentbit.io/announcements/v3.1.6/
https://fluentbit.io/announcements/v3.1.5/
https://fluentbit.io/announcements/v3.1.4/Support has been added for (some) system provided libraries, see:
- https://github.com/fluent/fluent-bit/pull/7286
- https://github.com/fluent/fluent-bit/pull/8930
Quoted 8 lines
The c-ares and nghttp2 package are always needed, so use the buildroot shipped versions. Also allow the usage of libbacktrace and jemalloc.
A bunch of new compile fixes have been added,
all of them are proposed upstream for review.Signed-off-by Thomas Devoogdt <[email protected]>
Applied to master, thanks.
Quoted 649 lines
--- ...-the-system-provided-LuaJIT-if-found.patch | 62 ------------- ...akeLists.txt-allow-compilation-with.patch} | 12 +-- ...able-cxx-support-for-librdkafka-7741.patch | 27 ++++++ ...isable-cxx-support-for-librdkafka-77.patch | 29 ------ ...eLists.txt-do-not-require-a-CXX-comp.patch | 91 +++++++++++++++++++ ...-CMakeLists.txt-do-not-require-a-CXX.patch | 37 ++++++++ ...rite-gs-base-with-cmake-variable-30.patch} | 4 +- ...kafka-CMakeLists.txt-fix-cross-compi.patch | 48 ++++++++++ ...rofiles-fix-wrong-pointer-assignment.patch | 81 +++++++++++++++++ package/fluent-bit/Config.in | 2 + package/fluent-bit/fluent-bit.hash | 2 +- package/fluent-bit/fluent-bit.mk | 29 +++++- 12 files changed, 318 insertions(+), 106 deletions(-) delete mode 100644 package/fluent-bit/0001-build-use-the-system-provided-LuaJIT-if-found.patch rename package/fluent-bit/{0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch => 0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch} (92%) create mode 100644 package/fluent-bit/0002-build-disable-cxx-support-for-librdkafka-7741.patch delete mode 100644 package/fluent-bit/0003-CMakeLists.txt-disable-cxx-support-for-librdkafka-77.patch create mode 100644 package/fluent-bit/0003-lib-nghttp2-CMakeLists.txt-do-not-require-a-CXX-comp.patch create mode 100644 package/fluent-bit/0004-lib-luajit-cmake-CMakeLists.txt-do-not-require-a-CXX.patch rename package/fluent-bit/{0004-Enhance-setting-write-gs-base-with-cmake-variable-30.patch => 0005-Enhance-setting-write-gs-base-with-cmake-variable-30.patch} (98%) create mode 100644 package/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patch create mode 100644
package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patchpackage/fluent-bit/0001-build-use-the-system-provided-LuaJIT-if-found.patch deleted +0
-1---
a/package/fluent-bit/0001-build-use-the-system-provided-LuaJIT-if-found.patch+++/dev/nullpackage/fluent-bit/0001-build-use-the-system-provided-LuaJIT-if-found.patch deleted +0
-21@@ -1,62 +0,0 @@ -From 8d6f6cfb07a8fe32dc0b9577e1b2f1ee1b67b736 Mon Sep 17 00:00:00 2001 -From: Thomas Devoogdt <[email protected]> -Date: Fri, 28 Apr 2023 10:25:16 +0200 -Subject: [PATCH] build: use the system provided LuaJIT if found - -e.g. buildroot has logic to build luajit, -so if pkg_check_modules can find a suitable version, -then use that one if -DFLB_PREFER_SYSTEM_LIBS=Yes. - -Upstream: https://github.com/fluent/fluent-bit/pull/7286 -Signed-off-by: Thomas Devoogdt <[email protected]> ---- - CMakeLists.txt | 12 +++++++++++- - src/CMakeLists.txt | 2 +- - 2 files changed, 12 insertions(+), 2 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 2da792d53..3229420c6 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -128,6 +128,7 @@ option(FLB_TESTS_INTERNAL_FUZZ "Enable internalfuzz tests" No)
- option(FLB_TESTS_OSSFUZZ "Enable OSS-Fuzz build" No) - option(FLB_MTRACE "Enable mtrace support" No) - option(FLB_POSIX_TLS "Force POSIX thread storage" No) -+option(FLB_PREFER_SYSTEM_LIBS "Prefer system installed libraries" No) - option(FLB_INOTIFY "Enable inotify support" Yes) - option(FLB_SQLDB "Enable SQL embedded DB" Yes) - option(FLB_HTTP_SERVER "Enable HTTP Server" Yes)-@@ -1023,7 +1024,16 @@
endif()
- # LuaJIT (Scripting Support)
- # ==========================
-if(FLB_LUAJIT)
-- include(cmake/luajit.cmake)
-+if(FLB_PREFER_SYSTEM_LIBS)
-+find_package(PkgConfig)
-+pkg_check_modules(LUAJIT luajit>=2.1.0)
-+endif()
-+if(LUAJIT_FOUND)
-+include_directories(${LUAJIT_INCLUDE_DIRS})
-+else()
-+ include(cmake/luajit.cmake)
-+set(LUAJIT_LIBRARIES "libluajit")
-+endif()package/fluent-bit/0001-build-use-the-system-provided-LuaJIT-if-found.patch deleted +0
-19- FLB_DEFINITION(FLB_HAVE_LUAJIT) - endif() - -diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index b6233d9f7..67baec456 100644 ---- a/src/CMakeLists.txt -+++ b/src/CMakeLists.txt -@@ -221,7 +221,7 @@ endif() - if(FLB_LUAJIT) - set(extra_libs - ${extra_libs} -- "libluajit") -+ ${LUAJIT_LIBRARIES}) - endif() - - if(FLB_SQLDB) --- -2.34.1 -package/fluent-bit/0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch renamed from package/fluent-bit/0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch +0
-1---
a/package/fluent-bit/0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch
+++b/package/fluent-bit/0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patchpackage/fluent-bit/0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch renamed from package/fluent-bit/0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch +1
-1@@ -1,4 +1,4 @@ -From 29be5275f6f7e15aca768e9b235998abc5a604e2 Mon Sep 17 00:00:00 2001 +From c44256c95f5703dd627413f17c6ad250073898d9 Mon Sep 17 00:00:00 2001 From: Thomas Devoogdt <[email protected]> Date: Tue, 25 Jul 2023 09:10:41 +0200 Subject: [PATCH] lib: librdkafka: CMakeLists.txt: allow compilationwithout
package/fluent-bit/0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch renamed from package/fluent-bit/0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch +0
-0@@ -7,13 +7,11 @@ Subject: [PATCH] lib: librdkafka: CMakeLists.txt:allow compilation without
e.g. fluent-bit is a c-only library, so allow compilation without cxxUpstream: https://github.com/confluentinc/librdkafka/pull/4366
package/fluent-bit/0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch renamed from package/fluent-bit/0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch +5
-5-Upstream: https://github.com/fluent/fluent-bit/pull/7765 +Upstream: https://github.com/fluent/fluent-bit/pull/9277 Signed-off-by: Thomas Devoogdt <[email protected]> -[Fabrice: update for 3.1.3] -Signed-off-by: Fabrice Fontaine <[email protected]> --- - lib/librdkafka-2.3.0/CMakeLists.txt | 18 ++++++++++-- - lib/librdkafka-2.3.0/examples/CMakeLists.txt | 31 +++++++++++++------- + lib/librdkafka-2.4.0/CMakeLists.txt | 18 ++++++++++-- + lib/librdkafka-2.4.0/examples/CMakeLists.txt | 31 +++++++++++++------- 2 files changed, 35 insertions(+), 14 deletions(-) diff --git a/lib/librdkafka-2.4.0/CMakeLists.txt
b/lib/librdkafka-2.4.0/CMakeLists.txtpackage/fluent-bit/0001-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch renamed from package/fluent-bit/0002-lib-librdkafka-CMakeLists.txt-allow-compilation-with.patch +1
-1@@ -116,5 +114,5 @@ index 8c0079abe..c9336b729 100644 + endif() endif(NOT WIN32) -- -2.34.1 +2.43.0(quoted diff) +0
-0
b/package/fluent-bit/0002-build-disable-cxx-support-for-librdkafka-7741.patchpackage/fluent-bit/0002-build-disable-cxx-support-for-librdkafka-7741.patch new file +27
-0@@ -0,0 +1,27 @@ +From 0dc955cd15cc0b09a1d557131fae59842cb2bbd8 Mon Sep 17 00:00:00 2001 +From: Thomas Devoogdt <[email protected]> +Date: Tue, 25 Jul 2023 10:00:36 +0200 +Subject: [PATCH] build: disable cxx support for librdkafka #7741 + +Fluent-bit is c only, so no need to compile cxx. +This fixes also a compile error in buildroot. + +Upstream: https://github.com/fluent/fluent-bit/pull/9277 +Signed-off-by: Thomas Devoogdt <[email protected]> +--- + cmake/kafka.cmake | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cmake/kafka.cmake b/cmake/kafka.cmake +index 3a0ebfed2..af0e2f460 100644 +--- a/cmake/kafka.cmake ++++ b/cmake/kafka.cmake +@@ -1,4 +1,5 @@ + # kafka cmake ++FLB_OPTION(RDKAFKA_BUILD_CXX Off) + FLB_OPTION(RDKAFKA_BUILD_STATIC On) + FLB_OPTION(RDKAFKA_BUILD_EXAMPLES Off) + FLB_OPTION(RDKAFKA_BUILD_TESTS Off) +-- +2.43.0 +package/fluent-bit/0003-CMakeLists.txt-disable-cxx-support-for-librdkafka-77.patch deleted +0
-1---
a/package/fluent-bit/0003-CMakeLists.txt-disable-cxx-support-for-librdkafka-77.patch+++/dev/nullpackage/fluent-bit/0003-CMakeLists.txt-disable-cxx-support-for-librdkafka-77.patch deleted +0
-4@@ -1,29 +0,0 @@ -From 7f3fc55b734db2d28af63c393b52bc238af9f20a Mon Sep 17 00:00:00 2001 -From: Thomas Devoogdt <[email protected]> -Date: Tue, 25 Jul 2023 10:00:36 +0200 -Subject: [PATCH] CMakeLists.txt: disable cxx support for librdkafka#7741
package/fluent-bit/0003-CMakeLists.txt-disable-cxx-support-for-librdkafka-77.patch deleted +0
-25- -Fluent-bit is c only, so no need to compile cxx. -This fixes also a compile error in buildroot. - -Upstream: https://github.com/fluent/fluent-bit/pull/7765 -Signed-off-by: Thomas Devoogdt <[email protected]> ---- - CMakeLists.txt | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 3229420c6..2694f189f 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -979,6 +979,7 @@ if(FLB_BACKTRACE) - endif() - - if(FLB_IN_KAFKA OR FLB_OUT_KAFKA) -+ FLB_OPTION(RDKAFKA_BUILD_CXX Off) - FLB_OPTION(RDKAFKA_BUILD_STATIC On) - FLB_OPTION(RDKAFKA_BUILD_EXAMPLES Off) - FLB_OPTION(RDKAFKA_BUILD_TESTS Off) --- -2.34.1 -(quoted diff) +0
-0
b/package/fluent-bit/0003-lib-nghttp2-CMakeLists.txt-do-not-require-a-CXX-comp.patchpackage/fluent-bit/0003-lib-nghttp2-CMakeLists.txt-do-not-require-a-CXX-comp.patch new file +4
-0@@ -0,0 +1,91 @@ +From 8a9aed874fc41973d007f5145eca85e261f2bb35 Mon Sep 17 00:00:00 2001 +From: Thomas Devoogdt <[email protected]> +Date: Sun, 25 Aug 2024 20:09:21 +0200 +Subject: [PATCH] lib: nghttp2: CMakeLists.txt: do not require a CXXcompiler
(quoted diff) +2
-0+ +Upstream:https://github.com/nghttp2/nghttp2/commit/d9d266124c9f851bab7927321da6637d930367e2
package/fluent-bit/0003-lib-nghttp2-CMakeLists.txt-do-not-require-a-CXX-comp.patch new file +20
-0+Upstream: https://github.com/fluent/fluent-bit/pull/9277 +Signed-off-by: Thomas Devoogdt <[email protected]> +--- + lib/nghttp2/CMakeLists.txt | 50 ++++++++++++++++++++------------------ + 1 file changed, 26 insertions(+), 24 deletions(-) + +diff --git a/lib/nghttp2/CMakeLists.txt b/lib/nghttp2/CMakeLists.txt +index ee4cb0a4a..90c00b1dd 100644 +--- a/lib/nghttp2/CMakeLists.txt ++++ b/lib/nghttp2/CMakeLists.txt +@@ -24,7 +24,7 @@ + + cmake_minimum_required(VERSION 3.0) + # XXX using 1.8.90 instead of 1.9.0-DEV +-project(nghttp2 VERSION 1.58.90) ++project(nghttp2 VERSION 1.58.90 LANGUAGES C) + + # See versioning rule: + #https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
+@@ -122,29 +122,31 @@else()package/fluent-bit/0003-lib-nghttp2-CMakeLists.txt-do-not-require-a-CXX-comp.patch new file +34
-0+ set(HINT_NORETURN) + endif() + +-include(ExtractValidFlags) +-foreach(_cxx1x_flag -std=c++14) +- extract_valid_cxx_flags(_cxx1x_flag_supported ${_cxx1x_flag}) +- if(_cxx1x_flag_supported) +- set(CXX1XCXXFLAGS ${_cxx1x_flag}) +- break() +- endif() +-endforeach() ++if(NOT ENABLE_LIB_ONLY) ++ include(ExtractValidFlags) ++ foreach(_cxx1x_flag -std=c++14) ++ extract_valid_cxx_flags(_cxx1x_flag_supported ${_cxx1x_flag}) ++ if(_cxx1x_flag_supported) ++ set(CXX1XCXXFLAGS ${_cxx1x_flag}) ++ break() ++ endif() ++ endforeach() + +-include(CMakePushCheckState) +-include(CheckCXXSourceCompiles) +-cmake_push_check_state() +-set(CMAKE_REQUIRED_DEFINITIONS "${CXX1XCXXFLAGS}") +-# Check that std::future is available. +-check_cxx_source_compiles(" +-#include <vector> +-#include <future> +-int main() { std::vector<std::future<int>> v; }" HAVE_STD_FUTURE) +-# Check that std::map::emplace is available for g++-4.7. +-check_cxx_source_compiles(" +-#include <map> +-int main() { std::map<int, int>().emplace(1, 2); }"
HAVE_STD_MAP_EMPLACE)+-cmake_pop_check_state() ++ include(CMakePushCheckState) ++ include(CheckCXXSourceCompiles) ++ cmake_push_check_state() ++ set(CMAKE_REQUIRED_DEFINITIONS "${CXX1XCXXFLAGS}") ++ # Check that std::future is available. ++ check_cxx_source_compiles(" ++ #include <vector> ++ #include <future> ++ int main() { std::vector<std::future<int>> v; }" HAVE_STD_FUTURE) ++ # Check that std::map::emplace is available for g++-4.7. ++ check_cxx_source_compiles(" ++ #include <map> ++ int main() { std::map<int, int>().emplace(1, 2); }"
HAVE_STD_MAP_EMPLACE)
++cmake_pop_check_state()
++endif()package/fluent-bit/0003-lib-nghttp2-CMakeLists.txt-do-not-require-a-CXX-comp.patch new file +15
-0+ + + # Checks for libraries. +@@ -177,7 +179,7 @@ endif() + # openssl (for src) + include(CheckSymbolExists) + set(HAVE_OPENSSL ${OPENSSL_FOUND}) +-if(OPENSSL_FOUND) ++if(NOT ENABLE_LIB_ONLY AND OPENSSL_FOUND) + set(OPENSSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR}) + cmake_push_check_state() + set(CMAKE_REQUIRED_INCLUDES "${OPENSSL_INCLUDE_DIR}") +-- +2.43.0 +(quoted diff) +0
-0
b/package/fluent-bit/0004-lib-luajit-cmake-CMakeLists.txt-do-not-require-a-CXX.patchpackage/fluent-bit/0004-lib-luajit-cmake-CMakeLists.txt-do-not-require-a-CXX.patch new file +4
-0@@ -0,0 +1,37 @@ +From ac870a2e2de899bcc8b6818b97404479da6d0663 Mon Sep 17 00:00:00 2001 +From: Thomas Devoogdt <[email protected]> +Date: Sun, 25 Aug 2024 20:10:27 +0200 +Subject: [PATCH] lib: luajit-cmake: CMakeLists.txt: do not require aCXX
+ compilerpackage/fluent-bit/0004-lib-luajit-cmake-CMakeLists.txt-do-not-require-a-CXX.patch new file +8
-0+ +Upstream: https://github.com/fluent/fluent-bit/pull/9277 +Signed-off-by: Thomas Devoogdt <[email protected]> +--- + lib/luajit-cmake/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/luajit-cmake/CMakeLists.txt
b/lib/luajit-cmake/CMakeLists.txtpackage/fluent-bit/0004-lib-luajit-cmake-CMakeLists.txt-do-not-require-a-CXX.patch new file +24
-0+index 7baf878c7..051a800f5 100644 +--- a/lib/luajit-cmake/CMakeLists.txt ++++ b/lib/luajit-cmake/CMakeLists.txt +@@ -13,7 +13,7 @@ endif() + + get_directory_property(hasParent PARENT_DIRECTORY) + if(LUAJIT_DIR) +- project(luajit) ++ project(luajit LANGUAGES C) + include(LuaJIT.cmake) + if (hasParent) + set(LUA_TARGET $<TARGET_FILE:luajit> PARENT_SCOPE) +@@ -24,7 +24,7 @@ if(LUAJIT_DIR) + endif() + endif() + elseif(LUA_DIR) +- project(lua) ++ project(lua LANGUAGES C) + include(lua.cmake) + if (hasParent) + set(LUA_TARGET $<TARGET_FILE:lua> PARENT_SCOPE) +-- +2.43.0 +package/fluent-bit/0005-Enhance-setting-write-gs-base-with-cmake-variable-30.patch renamed from package/fluent-bit/0004-Enhance-setting-write-gs-base-with-cmake-variable-30.patch +0
-1---
a/package/fluent-bit/0004-Enhance-setting-write-gs-base-with-cmake-variable-30.patch
+++b/package/fluent-bit/0005-Enhance-setting-write-gs-base-with-cmake-variable-30.patchpackage/fluent-bit/0005-Enhance-setting-write-gs-base-with-cmake-variable-30.patch renamed from package/fluent-bit/0004-Enhance-setting-write-gs-base-with-cmake-variable-30.patch +1
-1@@ -1,4 +1,4 @@ -From 7eacb2ab839e74cb07038398def5e3cc198448d4 Mon Sep 17 00:00:00 2001 +From e17ce6ddcb4dc1cd3081eabfb94a1cdc224f4d69 Mon Sep 17 00:00:00 2001 From: Wenyong Huang <[email protected]> Date: Tue, 23 Jan 2024 12:21:20 +0800 Subject: [PATCH] Enhance setting write gs base with cmake variable(#3066)
package/fluent-bit/0005-Enhance-setting-write-gs-base-with-cmake-variable-30.patch renamed from package/fluent-bit/0004-Enhance-setting-write-gs-base-with-cmake-variable-30.patch +1
-1@@ -95,5 +95,5 @@ index e73ebc85f..a61a522f3 100644 endif () if (WAMR_CONFIGUABLE_BOUNDS_CHECKS EQUAL 1) -- -2.34.1 +2.43.0(quoted diff) +0
-0
b/package/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patchpackage/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patch new file +4
-0@@ -0,0 +1,48 @@ +From 7e8bb790cba0619af9e8d80e947f7cda0910caaa Mon Sep 17 00:00:00 2001 +From: Thomas Devoogdt <[email protected]> +Date: Sat, 16 Nov 2024 19:46:28 +0100 +Subject: [PATCH] plugins/{in,out}_kafka/CMakeLists.txt: fix crosscompile
+ error(quoted diff) +2
-0+ +KAFKA_INCLUDEDIR is not set if FLB_PREFER_SYSTEM_LIB_KAFKA is notused,
+when cross-compiling, it just translates to -I/librdkafka, which is not allowed.package/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patch new file +3
-0+Fix this by only including KAFKA_INCLUDEDIR if really set. + +x86_64-linux-gcc: ERROR: unsafe header/library path used incross-compilation: '-I/librdkafka'
package/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patch new file +9
-0+ +Upstream: https://github.com/fluent/fluent-bit/pull/9600 +Signed-off-by: Thomas Devoogdt <[email protected]> +--- + plugins/in_kafka/CMakeLists.txt | 4 +++- + plugins/out_kafka/CMakeLists.txt | 4 +++- + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/plugins/in_kafka/CMakeLists.txt
b/plugins/in_kafka/CMakeLists.txtpackage/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patch new file +8
-0+index ede0831f9..02e2dc786 100644 +--- a/plugins/in_kafka/CMakeLists.txt ++++ b/plugins/in_kafka/CMakeLists.txt +@@ -3,5 +3,7 @@ set(src + ) + + FLB_PLUGIN(in_kafka "${src}" ${KAFKA_LIBRARIES}) +-target_include_directories(flb-plugin-in_kafka PUBLIC${KAFKA_INCLUDEDIR}/librdkafka)
++if(DEFINEDKAFKA_INCLUDEDIR)
++target_include_directories(flb-plugin-in_kafka PUBLIC ${KAFKA_INCLUDEDIR}/librdkafka)
++endif()
+target_link_libraries(flb-plugin-in_kafka -lpthread)+diff --gita/plugins/out_kafka/CMakeLists.txtb/plugins/out_kafka/CMakeLists.txtpackage/fluent-bit/0006-plugins-in-out-_kafka-CMakeLists.txt-fix-cross-compi.patch new file +8
-0+index 01c96529b..54b14fc2a 100644 +--- a/plugins/out_kafka/CMakeLists.txt ++++ b/plugins/out_kafka/CMakeLists.txt +@@ -5,5 +5,7 @@ set(src + kafka.c) + + FLB_PLUGIN(out_kafka "${src}" ${KAFKA_LIBRARIES}) +-target_include_directories(flb-plugin-out_kafka PUBLIC${KAFKA_INCLUDEDIR}/librdkafka)
++if(DEFINEDKAFKA_INCLUDEDIR)
++target_include_directories(flb-plugin-out_kafka PUBLIC ${KAFKA_INCLUDEDIR}/librdkafka)
++endif()
+target_link_libraries(flb-plugin-out_kafka -lpthread)
+--
+2.43.0(quoted diff) +1
-0+(quoted diff) +0
-0
b/package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patchpackage/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +11
-0@@ -0,0 +1,81 @@ +From 6f474716432ca3ddae2ce989d9cdcdc9145c3959 Mon Sep 17 00:00:00 2001 +From: Thomas Devoogdt <[email protected]> +Date: Sat, 16 Nov 2024 20:55:37 +0100 +Subject: [PATCH] lib: cprofiles: fix wrong pointer assignment +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The wrong struct types were used. Typo? + +/home/thomas/br-test-pkg/bootlin-armv7-glibc/build/fluent-bit-3.2.0/lib/cprofiles/src/cprof_profile.c:In function ‘cprof_profile_destroy’:
+/home/thomas/br-test-pkg/bootlin-armv7-glibc/build/fluent-bit-3.2.0/lib/cprofiles/src/cprof_profile.c:160:18:
error: assignment to ‘structcprof_mapping*’ from incompatible pointer type ‘structcprof_location*’ [-Wincompatible-pointer-types]package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +3
-0+ 160 | location = cfl_list_entry(iterator, + | ^ +/home/thomas/br-test-pkg/bootlin-armv7-glibc/build/fluent-bit-3.2.0/lib/cprofiles/src/cprof_profile.c:166:32:error: passing argument 1 of ‘cprof_location_destroy’ from incompatible pointer type [-Wincompatible-pointer-types]
package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +5
-0+ 166 | cprof_location_destroy(location); + | ^~~~~~~~ + | | + | struct cprof_mapping * +In file included from
/home/thomas/br-test-pkg/bootlin-armv7-glibc/build/fluent-bit-3.2.0/lib/cprofiles/src/cprof_profile.c:21:+/home/thomas/br-test-pkg/bootlin-armv7-glibc/build/fluent-bit-3.2.0/lib/cprofiles/include/cprofiles/cprofiles.h:304:52:
note: expected ‘structcprof_location*’ but argument is of type ‘structcprof_mapping*’package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +11
-0+ 304 | void cprof_location_destroy(struct cprof_location *instance); + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ + +Upstream: https://github.com/fluent/cprofiles/pull/3 +Signed-off-by: Thomas Devoogdt <[email protected]> +--- + lib/cprofiles/src/cprof_encode_text.c | 6 +++--- + lib/cprofiles/src/cprof_profile.c | 4 ++-- + 2 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/lib/cprofiles/src/cprof_encode_text.c
b/lib/cprofiles/src/cprof_encode_text.cpackage/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +22
-0+index 218a72b5b..ab2d6247d 100644 +--- a/lib/cprofiles/src/cprof_encode_text.c ++++ b/lib/cprofiles/src/cprof_encode_text.c +@@ -1909,7 +1909,7 @@ static int encode_cprof_resource_profiles( + struct cprof_resource_profiles *instance) { + int result; + struct cfl_list *iterator; +- struct cprof_scope_profile *scope_profile; ++ struct cprof_scope_profiles *scope_profiles; + + result = encode_string(context, + CFL_TRUE, +@@ -1958,11 +1958,11 @@ static int encode_cprof_resource_profiles( + + cfl_list_foreach(iterator, + &instance->scope_profiles) { +- scope_profile = cfl_list_entry( ++ scope_profiles = cfl_list_entry( + iterator, + struct cprof_scope_profiles, _head); + +- result = encode_cprof_scope_profiles(context,
scope_profile);
++ result = encode_cprof_scope_profiles(context,scope_profiles);package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +4
-0+ + if (result != CPROF_ENCODE_TEXT_SUCCESS) { + return result; +diff --git a/lib/cprofiles/src/cprof_profile.c
b/lib/cprofiles/src/cprof_profile.c
+index66d62b361..931457ef7100644
+---a/lib/cprofiles/src/cprof_profile.c
++++b/lib/cprofiles/src/cprof_profile.c
+@@ -98,7 +98,7 @@ voidcprof_profile_destroy(struct cprof_profile *instance)package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +9
-0+ struct cfl_list *iterator_backup; + struct cprof_attribute_unit *attribute_unit; + struct cprof_value_type *value_type; +- struct cprof_mapping *location; ++ struct cprof_location *location; + struct cprof_function *function; + struct cfl_list *iterator; + struct cprof_mapping *mapping; +@@ -307,4 +307,4 @@ int cprof_profile_add_comment(struct cprof_profile*profile,
int64_tcomment)package/fluent-bit/0007-lib-cprofiles-fix-wrong-pointer-assignment.patch new file +9
-0+ profile->comments_count++; + + return 0; +-} +\ No newline at end of file ++} +-- +2.43.0 +package/fluent-bit/Config.in +2
-0@@ -3,7 +3,9 @@ config BR2_PACKAGE_FLUENT_BIT depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_STATIC_LIBS # dlfcn.h + select BR2_PACKAGE_C_ARES select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC + select BR2_PACKAGE_NGHTTP2 select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL select BR2_PACKAGE_LIBOPENSSL_ENGINES # needed by bundled librdkafkapackage/fluent-bit/fluent-bit.hash +0
-1@@ -1,3 +1,3 @@ # Locally computed -sha256
4c745066223811047e3911c19db118eadec579ca62ef833a1b1fb573acd8cb85fluent-bit-3.1.3.tar.gz +sha2563abcd7eda1a26fe79f1d715491bafcca77d0186cc46d1d8465157790358f827dfluent-bit-3.2.2.tar.gz
sha2560d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594LICENSEpackage/fluent-bit/fluent-bit.mk +2
-2@@ -4,13 +4,15 @@ # ################################################################################ -FLUENT_BIT_VERSION = 3.1.3 +FLUENT_BIT_VERSION = 3.2.2 FLUENT_BIT_SITE = $(call github,fluent,fluent-bit,v$(FLUENT_BIT_VERSION)) FLUENT_BIT_LICENSE = Apache-2.0 FLUENT_BIT_LICENSE_FILES = LICENSE FLUENT_BIT_CPE_ID_VENDOR = treasuredata FLUENT_BIT_CPE_ID_PRODUCT = fluent_bit -FLUENT_BIT_DEPENDENCIES = host-bison host-flex libyaml openssl +FLUENT_BIT_DEPENDENCIES = c-ares host-bison host-flex libyaml nghttp2openssl
package/fluent-bit/fluent-bit.mk +4
-2+ +FLUENT_BIT_CMAKE_BACKEND = ninja FLUENT_BIT_CONF_OPTS += \ -DFLB_DEBUG=No \@@ -18,8 +20,8 @@ FLUENT_BIT_CONF_OPTS += \ -DFLB_SECURITY=No \ -DFLB_EXAMPLES=No \ -DFLB_CHUNK_TRACE=No \ - -DFLB_PREFER_SYSTEM_LIBS=Yes \ - -DFLB_BACKTRACE=No + -DFLB_PREFER_SYSTEM_LIB_CARES=Yes \ + -DFLB_PREFER_SYSTEM_LIB_NGHTTP2=Yes ifeq ($(BR2_PACKAGE_FLUENT_BIT_WASM),y) FLUENT_BIT_WAMR_ARCH = $(callqstrip,$(BR2_PACKAGE_FLUENT_BIT_WASM_ARCH))
package/fluent-bit/fluent-bit.mk +18
-2@@ -37,8 +39,25 @@ else FLUENT_BIT_CONF_OPTS += -DFLB_WASM=No endif +ifeq ($(BR2_PACKAGE_LIBBACKTRACE),y) +FLUENT_BIT_CONF_OPTS += -DFLB_BACKTRACE=Yes \ + -DFLB_PREFER_SYSTEM_LIB_BACKTRACE=Yes +FLUENT_BIT_DEPENDENCIES += libbacktrace +else +FLUENT_BIT_CONF_OPTS += -DFLB_BACKTRACE=No +endif + +ifeq ($(BR2_PACKAGE_JEMALLOC),y) +FLUENT_BIT_CONF_OPTS += -DFLB_JEMALLOC=Yes \ + -DFLB_PREFER_SYSTEM_LIB_JEMALLOC=Yes +FLUENT_BIT_DEPENDENCIES += jemalloc +else +FLUENT_BIT_CONF_OPTS += -DFLB_JEMALLOC=No +endif + ifeq ($(BR2_PACKAGE_LUAJIT),y) -FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=Yes +FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=Yes \ + -DFLB_PREFER_SYSTEM_LIB_LUAJIT=Yes FLUENT_BIT_DEPENDENCIES += luajit else FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=No --2.43.0
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot