fluentbit: upgrade to v3.2.1
PATCH 1/2 fluentbit: upgrade to v3.2.1
From: Patrick Wicki <[email protected]>
Changelogs since v3.1.9:
- https://fluentbit.io/announcements/v3.1.10/
- https://fluentbit.io/announcements/v3.2.0/
- https://fluentbit.io/announcements/v3.2.1/
Also add pending patch for a cprofiles bug.
Signed-off-by Patrick Wicki <[email protected]>
---
...rivate-makefile-targets-in-CMakelist.patch | 17 +++---
...-not-hardcode-compilation-directorie.patch | 4 +-
...ts.txt-Revise-init-manager-deduction.patch | 11 ++--
...nkio-Link-with-fts-library-with-musl.patch | 8 +--
...d-cmake-try_run-when-cross-compiling.patch | 2 +-
.../0005-Use-posix-strerror_r-with-musl.patch | 9 ++-
..._text.c-fix-wrong-pointer-assignment.patch | 56 +++++++++++++++++++
...{fluentbit_3.1.9.bb => fluentbit_3.2.1.bb} | 5 +-
8 files changed, 82 insertions(+), 30 deletions(-)
create mode 100644 meta-oe/recipes-extended/fluentbit/fluentbit/0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch
rename meta-oe/recipes-extended/fluentbit/{fluentbit_3.1.9.bb => fluentbit_3.2.1.bb} (96%)meta-oe/recipes-extended/fluentbit/fluentbit/0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch +7 -10
@@ -1,4 +1,4 @@ -From 940a4e270bb8879a78c0eac4daf997cb77e25b4b Mon Sep 17 00:00:00 2001 +From 7e6295f14ea057562a235fbf6762d867e739a181 Mon Sep 17 00:00:00 2001 From: Niko Mauno <[email protected]> Date: Sun, 29 Sep 2024 12:00:00 +0000 Subject: [PATCH] lib: Do not use private makefile targets in CMakelists.txt
@@ -25,8 +25,8 @@ Upstream-Status: Submitted [https://github.com/fluent/fluent-bit/pull/9450] lib/cfl/CMakeLists.txt | 8 ++------ lib/cmetrics/CMakeLists.txt | 8 ++------ lib/ctraces/CMakeLists.txt | 8 ++------ - lib/monkey/CMakeLists.txt | 4 ---- - 4 files changed, 6 insertions(+), 22 deletions(-) + lib/monkey/CMakeLists.txt | 4 +--- + 4 files changed, 7 insertions(+), 21 deletions(-) diff --git a/lib/cfl/CMakeLists.txt b/lib/cfl/CMakeLists.txt index 2193cb29c..e2a5cba37 100644
@@ -48,7 +48,7 @@ index 2193cb29c..e2a5cba37 100644 diff --git a/lib/cmetrics/CMakeLists.txt b/lib/cmetrics/CMakeLists.txt -index 4f2989106..9c40dadf4 100644 +index 18582997d..8f7176dd6 100644 --- a/lib/cmetrics/CMakeLists.txt +++ b/lib/cmetrics/CMakeLists.txt @@ -60,12 +60,8 @@ if(NOT MSVC)
@@ -67,11 +67,11 @@ index 4f2989106..9c40dadf4 100644 # Configuration options option(CMT_DEV "Enable development mode" No) diff --git a/lib/ctraces/CMakeLists.txt b/lib/ctraces/CMakeLists.txt -index e92834e06..5cebb3b73 100644 +index e47ba022d..0ddfd5f97 100644 --- a/lib/ctraces/CMakeLists.txt +++ b/lib/ctraces/CMakeLists.txt @@ -30,12 +30,8 @@ set(CTR_VERSION_MINOR 5) - set(CTR_VERSION_PATCH 6) + set(CTR_VERSION_PATCH 7) set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}") -# Define __FILENAME__ consistently across Operating Systems
@@ -86,7 +86,7 @@ index e92834e06..5cebb3b73 100644 # Configuration options option(CTR_DEV "Enable development mode" No) diff --git a/lib/monkey/CMakeLists.txt b/lib/monkey/CMakeLists.txt -index 95d8cc1e6..8c66887da 100644 +index 028240bcc..b386cb726 100644 --- a/lib/monkey/CMakeLists.txt +++ b/lib/monkey/CMakeLists.txt @@ -15,10 +15,8 @@ include(GNUInstallDirs)
@@ -101,6 +101,3 @@ index 95d8cc1e6..8c66887da 100644 # Monkey Version set(MK_VERSION_MAJOR 1) --- -2.39.2 -
meta-oe/recipes-extended/fluentbit/fluentbit/0002-flb_info.h.in-Do-not-hardcode-compilation-directorie.patch +2 -2
@@ -1,4 +1,4 @@ -From 71dab751a27a2e582b711de22873065dd28f4b65 Mon Sep 17 00:00:00 2001 +From c8c9dd3aeb49ab2ec94c3ab081e2368736a5da20 Mon Sep 17 00:00:00 2001 From: Paulo Neves <[email protected]> Date: Thu, 28 Jul 2022 11:42:31 +0200 Subject: [PATCH] flb_info.h.in: Do not hardcode compilation directories
@@ -14,7 +14,7 @@ Upstream-Status: Pending 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fluent-bit/flb_info.h.in b/include/fluent-bit/flb_info.h.in -index a89485c..2579afc 100644 +index 3a08f8051..aa6a48f29 100644 --- a/include/fluent-bit/flb_info.h.in +++ b/include/fluent-bit/flb_info.h.in @@ -23,7 +23,7 @@
meta-oe/recipes-extended/fluentbit/fluentbit/0003-CMakeLists.txt-Revise-init-manager-deduction.patch +4 -7
@@ -1,4 +1,4 @@ -From c9969cc46e5e4d58db28c89b22bebe42d9f96962 Mon Sep 17 00:00:00 2001 +From bf4e832544e8aa5866ef57859f95b71bd8811154 Mon Sep 17 00:00:00 2001 From: Niko Mauno <[email protected]> Date: Mon, 21 Oct 2024 16:02:46 +0000 Subject: [PATCH] CMakeLists.txt: Revise init manager deduction
@@ -15,10 +15,10 @@ Upstream-Status: Inappropriate [configuration] 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index 084f2c57d..f0f35f00b 100644 +index 8404b65c1..0c7876058 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt -@@ -532,7 +532,7 @@ if(FLB_BINARY) +@@ -540,7 +540,7 @@ if(FLB_BINARY) set(SYSTEMD_UNITDIR /lib/systemd/system) endif()
@@ -27,7 +27,7 @@ index 084f2c57d..f0f35f00b 100644 set(FLB_SYSTEMD_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.service") configure_file( "${PROJECT_SOURCE_DIR}/init/systemd.in" -@@ -540,7 +540,7 @@ if(FLB_BINARY) +@@ -548,7 +548,7 @@ if(FLB_BINARY) ) install(FILES ${FLB_SYSTEMD_SCRIPT} COMPONENT binary DESTINATION ${SYSTEMD_UNITDIR}) install(DIRECTORY DESTINATION ${FLB_INSTALL_CONFDIR} COMPONENT binary)
@@ -36,6 +36,3 @@ index 084f2c57d..f0f35f00b 100644 set(FLB_UPSTART_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.conf") configure_file( "${PROJECT_SOURCE_DIR}/init/upstart.in" --- -2.39.2 -
meta-oe/recipes-extended/fluentbit/fluentbit/0004-chunkio-Link-with-fts-library-with-musl.patch +3 -5
@@ -1,4 +1,4 @@ -From 63dbbad5978e5f5b0e7d42614999cb6b4ebcce10 Mon Sep 17 00:00:00 2001 +From a07df56092e529627db0946c025cb4964567280c Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 10 Aug 2022 01:27:16 -0700 Subject: [PATCH] chunkio: Link with fts library with musl
@@ -14,10 +14,10 @@ Upstream-Status: Pending 1 file changed, 1 insertion(+) diff --git a/lib/chunkio/src/CMakeLists.txt b/lib/chunkio/src/CMakeLists.txt -index a4fc2d3..4244eb8 100644 +index bb52273d4..524500919 100644 --- a/lib/chunkio/src/CMakeLists.txt +++ b/lib/chunkio/src/CMakeLists.txt -@@ -13,6 +13,7 @@ set(src +@@ -14,6 +14,7 @@ set(src ) set(libs cio-crc32)
@@ -25,5 +25,3 @@ index a4fc2d3..4244eb8 100644 if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") set(src --- -2.37.1
meta-oe/recipes-extended/fluentbit/fluentbit/0004-wasm-avoid-cmake-try_run-when-cross-compiling.patch +1 -1
@@ -1,4 +1,4 @@ -From 5b6d274664f92a6c6083f4d27a1b1604a326f22c Mon Sep 17 00:00:00 2001 +From 5f3bfd51851c6700b4dfd2ac25e83e5306b923f8 Mon Sep 17 00:00:00 2001 From: Patrick Wicki <[email protected]> Date: Sat, 5 Oct 2024 21:36:12 +0200 Subject: [PATCH] wasm: avoid cmake try_run when cross-compiling for x86
meta-oe/recipes-extended/fluentbit/fluentbit/0005-Use-posix-strerror_r-with-musl.patch +6 -3
@@ -1,4 +1,4 @@ -From f645128082117a0152a95b3dccd869a184b7513f Mon Sep 17 00:00:00 2001 +From 0c4310483875509f464883fa345f54e0d3ae25a5 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Wed, 10 Aug 2022 01:23:48 -0700 Subject: [PATCH] Use posix strerror_r with musl
@@ -12,12 +12,15 @@ Signed-off-by: Khem Raj <[email protected]> Resolved conflicts while upgrading recipe from v1.9.9 to v3.1.9. Signed-off-by: Niko Mauno <[email protected]> +--- + src/flb_network.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flb_network.c b/src/flb_network.c -index d183209fd..41e0281b5 100644 +index 8f8ca33f6..dd098a2ea 100644 --- a/src/flb_network.c +++ b/src/flb_network.c -@@ -553,7 +553,7 @@ static int net_connect_async(int fd, +@@ -605,7 +605,7 @@ static int net_connect_async(int fd, /* Connection is broken, not much to do here */ #if ((defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L) || \ (defined(_XOPEN_SOURCE) || _XOPEN_SOURCE - 0L >= 600L)) && \
meta-oe/recipes-extended/fluentbit/fluentbit/0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch new file +56 -0
56 lines not on this page · raw message
meta-oe/recipes-extended/fluentbit/fluentbit_3.2.1.bb renamed from meta-oe/recipes-extended/fluentbit/fluentbit_3.1.9.bb +3 -2
@@ -17,13 +17,14 @@ DEPENDS = "\ " DEPENDS:append:libc-musl = " fts" -SRCREV = "431fa79ae27edaef8d050a7af6f038f4400193a1" +SRCREV = "600b5a955b5ef7b9d025e0c128432260d0c6a5f1" SRC_URI = "\ - git://github.com/fluent/fluent-bit.git;branch=3.1;protocol=https \ + git://github.com/fluent/fluent-bit.git;branch=master;protocol=https \ file://0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch \ file://0002-flb_info.h.in-Do-not-hardcode-compilation-directorie.patch \ file://0003-CMakeLists.txt-Revise-init-manager-deduction.patch \ file://0004-wasm-avoid-cmake-try_run-when-cross-compiling.patch \ + file://0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch \ " SRC_URI:append:libc-musl = "\ file://0004-chunkio-Link-with-fts-library-with-musl.patch \
Signature · 1 line
2.47.1
PATCH 2/2 fluentbit: use system libs instead of vendored ones
From: Patrick Wicki <[email protected]>
Make use of the new build option to unbundle some vendored dependencies. Currently supported are libbacktrace, c-ares, jemalloc, luajit and nghttp, all of which have Yocto recipes. librdkafka is currently below the required version (>=2.3.0) so for that it will fall back to the vendored version.
Signed-off-by Patrick Wicki <[email protected]>
--- meta-oe/recipes-extended/fluentbit/fluentbit_3.2.1.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/fluentbit/fluentbit_3.2.1.bb +9 -2
@@ -43,6 +43,7 @@ PACKAGECONFIG ??= "\ ipo \ metrics \ parser \ + prefer-system-libs \ proxy-go \ record-accessor \ regex \
@@ -56,6 +57,12 @@ PACKAGECONFIG ??= "\ # See https://github.com/fluent/fluent-bit/issues/7248#issuecomment-1631280496 PACKAGECONFIG:remove:toolchain-clang = "ipo" +# Use system libs +PACKAGECONFIG[prefer-system-libs] = "-DFLB_PREFER_SYSTEM_LIBS=Yes,-DFLB_PREFER_SYSTEM_LIBS=No, nghttp2 c-ares" +DEPENDS += " ${@bb.utils.contains('PACKAGECONFIG', 'prefer-system-libs backtrace', 'libbacktrace', '', d)}" +DEPENDS += " ${@bb.utils.contains('PACKAGECONFIG', 'prefer-system-libs jemalloc', 'jemalloc', '', d)}" +DEPENDS += " ${@bb.utils.contains('PACKAGECONFIG', 'prefer-system-libs luajit', 'luajit', '', d)}" + PACKAGECONFIG[all] = "-DFLB_ALL=Yes,-DFLB_ALL=No" PACKAGECONFIG[arrow] = "-DFLB_ARROW=Yes,-DFLB_ARROW=No" PACKAGECONFIG[avro-encoder] = "-DFLB_AVRO_ENCODER=Yes,-DFLB_AVRO_ENCODER=No"
@@ -105,8 +112,8 @@ PACKAGECONFIG[windows-defaults] = "-DFLB_WINDOWS_DEFAULTS=Yes,-DFLB_WINDOWS_DEFA PACKAGECONFIG[minimal] = "-DFLB_MINIMAL=Yes,-DFLB_MINIMAL=No" # Without zstd dependency, kafka plugin build fails at link attempt against native libzstd.so -PACKAGECONFIG[in-kafka] = "-DFLB_IN_KAFKA=ON,-DFLB_IN_KAFKA=OFF,librdkafka zstd" -PACKAGECONFIG[out-kafka] = "-DFLB_OUT_KAFKA=ON,-DFLB_OUT_KAFKA=OFF,librdkafka zstd" +PACKAGECONFIG[in-kafka] = "-DFLB_IN_KAFKA=ON,-DFLB_IN_KAFKA=OFF,librdkafka zstd curl" +PACKAGECONFIG[out-kafka] = "-DFLB_OUT_KAFKA=ON,-DFLB_OUT_KAFKA=OFF,librdkafka zstd curl" SYSTEMD_SERVICE:${PN} = "fluent-bit.service"
Signature · 1 line
2.47.1