diff options
| -rw-r--r-- | meta-oe/recipes-extended/fluentbit/fluentbit/0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch | 10 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/fluentbit/fluentbit/0003-CMakeLists.txt-Revise-init-manager-deduction.patch | 4 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/fluentbit/fluentbit/0004-wasm-avoid-cmake-try_run-when-cross-compiling.patch | 42 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/fluentbit/fluentbit/0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch | 56 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/fluentbit/fluentbit_3.2.8.bb (renamed from meta-oe/recipes-extended/fluentbit/fluentbit_3.2.1.bb) | 11 |
5 files changed, 11 insertions, 112 deletions
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch index 642a73dac2..fae98f1f5d 100644 --- a/meta-oe/recipes-extended/fluentbit/fluentbit/0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch +++ b/meta-oe/recipes-extended/fluentbit/fluentbit/0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch | |||
| @@ -70,8 +70,8 @@ diff --git a/lib/ctraces/CMakeLists.txt b/lib/ctraces/CMakeLists.txt | |||
| 70 | index e47ba022d..0ddfd5f97 100644 | 70 | index e47ba022d..0ddfd5f97 100644 |
| 71 | --- a/lib/ctraces/CMakeLists.txt | 71 | --- a/lib/ctraces/CMakeLists.txt |
| 72 | +++ b/lib/ctraces/CMakeLists.txt | 72 | +++ b/lib/ctraces/CMakeLists.txt |
| 73 | @@ -30,12 +30,8 @@ set(CTR_VERSION_MINOR 5) | 73 | @@ -30,12 +30,8 @@ set(CTR_VERSION_MINOR 6) |
| 74 | set(CTR_VERSION_PATCH 7) | 74 | set(CTR_VERSION_PATCH 0) |
| 75 | set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}") | 75 | set(CTR_VERSION_STR "${CTR_VERSION_MAJOR}.${CTR_VERSION_MINOR}.${CTR_VERSION_PATCH}") |
| 76 | 76 | ||
| 77 | -# Define __FILENAME__ consistently across Operating Systems | 77 | -# Define __FILENAME__ consistently across Operating Systems |
| @@ -95,9 +95,9 @@ index 028240bcc..b386cb726 100644 | |||
| 95 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -Wextra") | 95 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -Wextra") |
| 96 | -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__='\"$$(subst ${CMAKE_SOURCE_DIR}/,,$$(abspath \$$<))\"'") | 96 | -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__='\"$$(subst ${CMAKE_SOURCE_DIR}/,,$$(abspath \$$<))\"'") |
| 97 | -else() | 97 | -else() |
| 98 | -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__=__FILE__") | 98 | +endif() |
| 99 | endif() | 99 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__=__FILE__") |
| 100 | +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__FILENAME__=__FILE__") | 100 | -endif() |
| 101 | 101 | ||
| 102 | # Monkey Version | 102 | # Monkey Version |
| 103 | set(MK_VERSION_MAJOR 1) | 103 | set(MK_VERSION_MAJOR 1) |
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0003-CMakeLists.txt-Revise-init-manager-deduction.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0003-CMakeLists.txt-Revise-init-manager-deduction.patch index 4da1650bc1..8dd4da47ec 100644 --- a/meta-oe/recipes-extended/fluentbit/fluentbit/0003-CMakeLists.txt-Revise-init-manager-deduction.patch +++ b/meta-oe/recipes-extended/fluentbit/fluentbit/0003-CMakeLists.txt-Revise-init-manager-deduction.patch | |||
| @@ -18,7 +18,7 @@ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | |||
| 18 | index 8404b65c1..0c7876058 100644 | 18 | index 8404b65c1..0c7876058 100644 |
| 19 | --- a/src/CMakeLists.txt | 19 | --- a/src/CMakeLists.txt |
| 20 | +++ b/src/CMakeLists.txt | 20 | +++ b/src/CMakeLists.txt |
| 21 | @@ -540,7 +540,7 @@ if(FLB_BINARY) | 21 | @@ -546,7 +546,7 @@ if(FLB_BINARY) |
| 22 | set(SYSTEMD_UNITDIR /lib/systemd/system) | 22 | set(SYSTEMD_UNITDIR /lib/systemd/system) |
| 23 | endif() | 23 | endif() |
| 24 | 24 | ||
| @@ -27,7 +27,7 @@ index 8404b65c1..0c7876058 100644 | |||
| 27 | set(FLB_SYSTEMD_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.service") | 27 | set(FLB_SYSTEMD_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.service") |
| 28 | configure_file( | 28 | configure_file( |
| 29 | "${PROJECT_SOURCE_DIR}/init/systemd.in" | 29 | "${PROJECT_SOURCE_DIR}/init/systemd.in" |
| 30 | @@ -548,7 +548,7 @@ if(FLB_BINARY) | 30 | @@ -554,7 +554,7 @@ if(FLB_BINARY) |
| 31 | ) | 31 | ) |
| 32 | install(FILES ${FLB_SYSTEMD_SCRIPT} COMPONENT binary DESTINATION ${SYSTEMD_UNITDIR}) | 32 | install(FILES ${FLB_SYSTEMD_SCRIPT} COMPONENT binary DESTINATION ${SYSTEMD_UNITDIR}) |
| 33 | install(DIRECTORY DESTINATION ${FLB_INSTALL_CONFDIR} COMPONENT binary) | 33 | install(DIRECTORY DESTINATION ${FLB_INSTALL_CONFDIR} COMPONENT binary) |
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0004-wasm-avoid-cmake-try_run-when-cross-compiling.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0004-wasm-avoid-cmake-try_run-when-cross-compiling.patch deleted file mode 100644 index b711b413bd..0000000000 --- a/meta-oe/recipes-extended/fluentbit/fluentbit/0004-wasm-avoid-cmake-try_run-when-cross-compiling.patch +++ /dev/null | |||
| @@ -1,42 +0,0 @@ | |||
| 1 | From 5f3bfd51851c6700b4dfd2ac25e83e5306b923f8 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Patrick Wicki <patrick.wicki@siemens.com> | ||
| 3 | Date: Sat, 5 Oct 2024 21:36:12 +0200 | ||
| 4 | Subject: [PATCH] wasm: avoid cmake try_run when cross-compiling for x86 | ||
| 5 | |||
| 6 | This fixes building the wasm micro runtime used when enabling wasm | ||
| 7 | support in fluentbit. | ||
| 8 | cmake try_run does not work when cross-compiling because the test program | ||
| 9 | cannot be executed: | ||
| 10 | |||
| 11 | | CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately: | ||
| 12 | | TEST_WRGSBASE_RESULT (advanced) | ||
| 13 | | For details see .../fluentbit/3.1.9/build/TryRunResults.cmake | ||
| 14 | | Write linear memory base addr to x86 GS register disabled | ||
| 15 | | -- Configuring incomplete, errors occurred! | ||
| 16 | |||
| 17 | Since we cannot run the test program, assume that the instruction is not | ||
| 18 | available and disable the option. | ||
| 19 | |||
| 20 | This patch is no longer needed once fluentbit updates WAMR, as it's been | ||
| 21 | fixed in https://github.com/bytecodealliance/wasm-micro-runtime/pull/3066. | ||
| 22 | |||
| 23 | Upstream-Status: Pending [https://github.com/fluent/fluent-bit/pull/8744] | ||
| 24 | |||
| 25 | Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> | ||
| 26 | --- | ||
| 27 | .../build-scripts/config_common.cmake | 2 +- | ||
| 28 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 29 | |||
| 30 | diff --git a/lib/wasm-micro-runtime-WAMR-1.3.0/build-scripts/config_common.cmake b/lib/wasm-micro-runtime-WAMR-1.3.0/build-scripts/config_common.cmake | ||
| 31 | index e73ebc85f..c2504e007 100644 | ||
| 32 | --- a/lib/wasm-micro-runtime-WAMR-1.3.0/build-scripts/config_common.cmake | ||
| 33 | +++ b/lib/wasm-micro-runtime-WAMR-1.3.0/build-scripts/config_common.cmake | ||
| 34 | @@ -408,7 +408,7 @@ if (WAMR_BUILD_STATIC_PGO EQUAL 1) | ||
| 35 | add_definitions (-DWASM_ENABLE_STATIC_PGO=1) | ||
| 36 | message (" AOT static PGO enabled") | ||
| 37 | endif () | ||
| 38 | -if (WAMR_DISABLE_WRITE_GS_BASE EQUAL 1) | ||
| 39 | +if (WAMR_DISABLE_WRITE_GS_BASE EQUAL 1 OR CMAKE_CROSSCOMPILING) | ||
| 40 | add_definitions (-DWASM_DISABLE_WRITE_GS_BASE=1) | ||
| 41 | message (" Write linear memory base addr to x86 GS register disabled") | ||
| 42 | elseif (WAMR_BUILD_TARGET STREQUAL "X86_64" | ||
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch deleted file mode 100644 index 1d2513aefb..0000000000 --- a/meta-oe/recipes-extended/fluentbit/fluentbit/0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 1 | From 2e39a3cea7d03721298e90fad70560c541b092a5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Thomas Devoogdt <thomas@devoogdt.com> | ||
| 3 | Date: Sat, 16 Nov 2024 20:55:37 +0100 | ||
| 4 | Subject: [PATCH] cprof_encode_text.c: fix wrong pointer assignment | ||
| 5 | |||
| 6 | Fix cprofiles build. | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/fluent/cprofiles/pull/3] | ||
| 9 | |||
| 10 | Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com> | ||
| 11 | Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> | ||
| 12 | --- | ||
| 13 | lib/cprofiles/src/cprof_encode_text.c | 6 +++--- | ||
| 14 | lib/cprofiles/src/cprof_profile.c | 2 +- | ||
| 15 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/lib/cprofiles/src/cprof_encode_text.c b/lib/cprofiles/src/cprof_encode_text.c | ||
| 18 | index 218a72b5b..ab2d6247d 100644 | ||
| 19 | --- a/lib/cprofiles/src/cprof_encode_text.c | ||
| 20 | +++ b/lib/cprofiles/src/cprof_encode_text.c | ||
| 21 | @@ -1909,7 +1909,7 @@ static int encode_cprof_resource_profiles( | ||
| 22 | struct cprof_resource_profiles *instance) { | ||
| 23 | int result; | ||
| 24 | struct cfl_list *iterator; | ||
| 25 | - struct cprof_scope_profile *scope_profile; | ||
| 26 | + struct cprof_scope_profiles *scope_profiles; | ||
| 27 | |||
| 28 | result = encode_string(context, | ||
| 29 | CFL_TRUE, | ||
| 30 | @@ -1958,11 +1958,11 @@ static int encode_cprof_resource_profiles( | ||
| 31 | |||
| 32 | cfl_list_foreach(iterator, | ||
| 33 | &instance->scope_profiles) { | ||
| 34 | - scope_profile = cfl_list_entry( | ||
| 35 | + scope_profiles = cfl_list_entry( | ||
| 36 | iterator, | ||
| 37 | struct cprof_scope_profiles, _head); | ||
| 38 | |||
| 39 | - result = encode_cprof_scope_profiles(context, scope_profile); | ||
| 40 | + result = encode_cprof_scope_profiles(context, scope_profiles); | ||
| 41 | |||
| 42 | if (result != CPROF_ENCODE_TEXT_SUCCESS) { | ||
| 43 | return result; | ||
| 44 | diff --git a/lib/cprofiles/src/cprof_profile.c b/lib/cprofiles/src/cprof_profile.c | ||
| 45 | index 66d62b361..d059d0376 100644 | ||
| 46 | --- a/lib/cprofiles/src/cprof_profile.c | ||
| 47 | +++ b/lib/cprofiles/src/cprof_profile.c | ||
| 48 | @@ -98,7 +98,7 @@ void cprof_profile_destroy(struct cprof_profile *instance) | ||
| 49 | struct cfl_list *iterator_backup; | ||
| 50 | struct cprof_attribute_unit *attribute_unit; | ||
| 51 | struct cprof_value_type *value_type; | ||
| 52 | - struct cprof_mapping *location; | ||
| 53 | + struct cprof_location *location; | ||
| 54 | struct cprof_function *function; | ||
| 55 | struct cfl_list *iterator; | ||
| 56 | struct cprof_mapping *mapping; | ||
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit_3.2.1.bb b/meta-oe/recipes-extended/fluentbit/fluentbit_3.2.8.bb index 30a62dbc12..fbaee9e121 100644 --- a/meta-oe/recipes-extended/fluentbit/fluentbit_3.2.1.bb +++ b/meta-oe/recipes-extended/fluentbit/fluentbit_3.2.8.bb | |||
| @@ -17,14 +17,12 @@ DEPENDS = "\ | |||
| 17 | " | 17 | " |
| 18 | DEPENDS:append:libc-musl = " fts" | 18 | DEPENDS:append:libc-musl = " fts" |
| 19 | 19 | ||
| 20 | SRCREV = "600b5a955b5ef7b9d025e0c128432260d0c6a5f1" | 20 | SRCREV = "d13e8e4ab2029fa92600b7d1d0da28f8dcc350eb" |
| 21 | SRC_URI = "\ | 21 | SRC_URI = "\ |
| 22 | git://github.com/fluent/fluent-bit.git;branch=master;protocol=https \ | 22 | git://github.com/fluent/fluent-bit.git;branch=3.2;protocol=https \ |
| 23 | file://0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch \ | 23 | file://0001-lib-Do-not-use-private-makefile-targets-in-CMakelist.patch \ |
| 24 | file://0002-flb_info.h.in-Do-not-hardcode-compilation-directorie.patch \ | 24 | file://0002-flb_info.h.in-Do-not-hardcode-compilation-directorie.patch \ |
| 25 | file://0003-CMakeLists.txt-Revise-init-manager-deduction.patch \ | 25 | file://0003-CMakeLists.txt-Revise-init-manager-deduction.patch \ |
| 26 | file://0004-wasm-avoid-cmake-try_run-when-cross-compiling.patch \ | ||
| 27 | file://0005-cprof_encode_text.c-fix-wrong-pointer-assignment.patch \ | ||
| 28 | " | 26 | " |
| 29 | SRC_URI:append:libc-musl = "\ | 27 | SRC_URI:append:libc-musl = "\ |
| 30 | file://0004-chunkio-Link-with-fts-library-with-musl.patch \ | 28 | file://0004-chunkio-Link-with-fts-library-with-musl.patch \ |
| @@ -114,9 +112,8 @@ PACKAGECONFIG[windows-defaults] = "-DFLB_WINDOWS_DEFAULTS=Yes,-DFLB_WINDOWS_DEFA | |||
| 114 | # individual plugins then to enable (e.g. using EXTRA_OECMAKE:append = " -DFLB_FOOBAR=ON") | 112 | # individual plugins then to enable (e.g. using EXTRA_OECMAKE:append = " -DFLB_FOOBAR=ON") |
| 115 | PACKAGECONFIG[minimal] = "-DFLB_MINIMAL=Yes,-DFLB_MINIMAL=No" | 113 | PACKAGECONFIG[minimal] = "-DFLB_MINIMAL=Yes,-DFLB_MINIMAL=No" |
| 116 | 114 | ||
| 117 | # Without zstd dependency, kafka plugin build fails at link attempt against native libzstd.so | 115 | PACKAGECONFIG[in-kafka] = "-DFLB_IN_KAFKA=ON,-DFLB_IN_KAFKA=OFF,librdkafka curl" |
| 118 | PACKAGECONFIG[in-kafka] = "-DFLB_IN_KAFKA=ON,-DFLB_IN_KAFKA=OFF,librdkafka zstd curl" | 116 | PACKAGECONFIG[out-kafka] = "-DFLB_OUT_KAFKA=ON,-DFLB_OUT_KAFKA=OFF,librdkafka curl" |
| 119 | PACKAGECONFIG[out-kafka] = "-DFLB_OUT_KAFKA=ON,-DFLB_OUT_KAFKA=OFF,librdkafka zstd curl" | ||
| 120 | 117 | ||
| 121 | SYSTEMD_SERVICE:${PN} = "fluent-bit.service" | 118 | SYSTEMD_SERVICE:${PN} = "fluent-bit.service" |
| 122 | 119 | ||
