summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/fluentbit
Commit message (Collapse)AuthorAgeFilesLines
* meta-openembedded/all: adapt to UNPACKDIR changesAlexander Kanavin2025-06-251-1/+0
| | | | | | | | | | | | | Please see https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265 for what changes are needed, and sed commands that can be used to make them en masse. I've verified that bitbake -c patch world works with these, but did not run a world build; the majority of recipes shouldn't need further fixups, but if there are some that still fall out, they can be fixed in followups. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluent-bit: Upgrade to 4.0.1 releaseKhem Raj2025-05-044-33/+26
| | | | | | | Refresh and forward port patches Add -std=gnu17 to fix build with GCC-15 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: fix aws-error-reporter package configPeter Marko2025-03-141-0/+1
| | | | | | | Compilation fails with several errors in flb_aws_error_reporter.c Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: add profiles package configPeter Marko2025-03-141-0/+2
| | | | | | | | | Since the recipe tries to list every single option, add this one which is missing. It is enabled by default in cmake to enabling it by default in package config retains current settings. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: fix shared-lib package configPeter Marko2025-03-141-0/+3
| | | | | | | | | | | | | Add library to packaged files to fix: ERROR: fluentbit-3.2.8-r0 do_package: QA Issue: fluentbit: Files/directories were installed but not shipped in any package: /usr/lib/fluent-bit /usr/lib/fluent-bit/libfluent-bit.so Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. fluentbit: 2 installed and not shipped files. [installed-vs-shipped] Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: fix valgrind package configPeter Marko2025-03-141-1/+1
| | | | | | | | Add valgrind dependency to fix: fatal error: valgrind/valgrind.h: No such file or directory Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: drop compiler optimization package configsPeter Marko2025-03-141-5/+4
| | | | | | | | | | These manipulate compiler flags instead of using what yocto provides. * "coverage" adds paths to binaries and thus causes buildpaths errors * "small" strips binaries, so causes already-stripped error. * DEBUG_BUILD is the correct way to enable debug/release flags in yocto Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: upgrade 3.2.1 -> 3.2.8Peter Marko2025-03-145-112/+11
| | | | | | | | | | | Handle CVE-2024-50608 and CVE-2024-50609 (in 3.2.7). Drop two patches addressed upstream. Refresh remaining patches. zstd is now bundled without possibility to unbundle. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: set UPSTREAM_CHECK_GITTAGREGEXPeter Marko2025-03-141-0/+3
| | | | | | | | | | | | | "devtool latest-version fluentbit" shows currently: INFO: Latest version: 20220215 which is something old. This change switches it to: INFO: Latest version: 3.2.8 which was released on 2025-02-27. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: use system libs instead of vendored onesPatrick Wicki2024-11-291-2/+9
| | | | | | | | | | | 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 <patrick.wicki@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: upgrade to v3.2.1Patrick Wicki2024-11-298-30/+82
| | | | | | | | | | | | | 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 <patrick.wicki@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Add IPO option as a packageconfig knobKhem Raj2024-11-051-0/+4
| | | | | | | | | | | | | | | LTO seems to fail when using clang compiler, therefore disable it for now. | arm-yoe-linux-musleabi-ld.lld: error: undefined hidden symbol: co_swap_function.llvm.232435740610378447 | >>> referenced by arm.c:76 (lib/monkey/deps/flb_libco/arm.c:76) | >>> library/fluent-bit.lto.libfluent-bit.a(flb_input_thread.c.o at 1278594).o:(input_thread) | >>> referenced by flb_input_thread.c:0 (src/flb_input_thread.c:0) | >>> library/fluent-bit.lto.libfluent-bit.a(flb_input_thread.c.o at 1278594).o:(input_thread) | >>> referenced by arm.c:76 (lib/monkey/deps/flb_libco/arm.c:76) | >>> library/fluent-bit.lto.libfluent-bit.a(flb_output.c.o at 1447274).o:(.Lflb_output_task_flush$local) | >>> referenced 88 more times Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: fix building with wasm supportPatrick Wicki2024-10-212-0/+43
| | | | | | | | | Patch the cmake config of the wasm micro runtime dependency. This fixes the build for x86 by avoiding the cmake try_run() which cannot be invoked in cross-compiling mode. Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Mitigate init manager detection issuesNiko Mauno2024-10-213-41/+49
| | | | | | | | | | | | | | | | Avoid following CMake failure which during do_configure stemming from non-cross compile friendly condition check executed on a build host which has /usr/share/upstart directory | CMake Error at src/CMakeLists.txt:550 (install): | install DIRECTORY given unknown argument "/etc/fluent-bit/". Also handle systemd init manager case more appropriately, so that it works also when the build host does not have a /lib/systemd/system directory. Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Upgrade recipe to 3.1.9Niko Mauno2024-10-1017-554/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to https://fluentbit.io/announcements/older-versions/ Security Policy: support for current series ends three months after a new series is released. Fluent Bit v1.9 Series has beel EOL since Dec 5, 2022, so upgrade the recipe to currently supported / newest available version. Relevant changelogs since previous 1.9.9 version of the component - https://fluentbit.io/announcements/v2.0.0/ - https://fluentbit.io/announcements/v2.1.0/ - https://fluentbit.io/announcements/v2.2.0/ - https://fluentbit.io/announcements/v3.0.0/ - https://fluentbit.io/announcements/v3.1.0/ - https://fluentbit.io/announcements/v3.1.1/ - https://fluentbit.io/announcements/v3.1.2/ - https://fluentbit.io/announcements/v3.1.3/ - https://fluentbit.io/announcements/v3.1.4/ - https://fluentbit.io/announcements/v3.1.5/ - https://fluentbit.io/announcements/v3.1.6/ - https://fluentbit.io/announcements/v3.1.7/ - https://fluentbit.io/announcements/v3.1.8/ - https://fluentbit.io/announcements/v3.1.9/ Associated added PACKAGECONFIG knobs are described for the most part in https://github.com/fluent/fluent-bit/blob/v3.1.9/CMakeLists.txt#L107-L167 The PACKAGECONFIG knobs are named according to the constant names used in upstream source code. Please note that here the 'yaml' PACKAGECONFIG option has changed to 'config-yaml', and instead of 'kafka' there is now 'out-kafka'. As a related side note, the plugin options are now defined in https://github.com/fluent/fluent-bit/blob/v3.1.9/cmake/plugins_options.cmake I have tested this change briefly against "qemuarm64" and "qemuppc" machines that the fluent-bit systemd service starts successfully in current master based core-image-minimal, and against "qemuarm" machine using yoe/meta-clang based core-image-minimal. Also tested using an i.MX6 board that the new Fluent Bit version seems to work as well as it did with the old 1.9.9 version with respect to logging in a Yocto Scarthgap based image. Signed-off-by: Niko Mauno <niko.mauno@vaisala.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Make it deprecatedKhem Raj2024-08-191-0/+2
| | | | | | | | | It does not build in a reproducible way that is now enforced by yocto project. Fails with WARNING: fluentbit-1.9.9-r0 do_package_qa: QA Issue: File /usr/bin/.debug/td-agent-bit in package fluentbit-dbg contains reference to TMPDIR [buildpaths] Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Upgrade to 1.9.9Khem Raj2024-05-122-13/+10
| | | | | | | Disable incompatible-pointer-types warning as error to fix build with gcc-14 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: drop ${PE}, ${PR} from /usr/src/debug pathsMartin Jansa2023-11-201-2/+2
| | | | | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* *.patch: add Upstream-Status to all patchesMartin Jansa2023-06-217-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is new patch-status QA check in oe-core: https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a This is temporary work around just to hide _many_ warnings from optional patch-status (if you add it to WARN_QA). This just added Upstream-Status: Pending everywhere without actually investigating what's the proper status. This is just to hide current QA warnings and to catch new .patch files being added without Upstream-Status, but the number of Pending patches is now terrible: 5 (26%) meta-xfce 6 (50%) meta-perl 15 (42%) meta-webserver 21 (36%) meta-gnome 25 (57%) meta-filesystems 26 (43%) meta-initramfs 45 (45%) meta-python 47 (55%) meta-multimedia 312 (63%) meta-networking 756 (61%) meta-oe Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Disable upstart scriptsKhem Raj2023-03-232-0/+47
| | | | | | | | | | | They are not cross compile friendly as they poke into build host directories to determine if system is upstart based and it can fail build on such hosts e.g. ubuntu If someone is still using upstart with OE then please fix it and send a better fix upstream to re-enable it here. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: change of download namePeter Johennecken2023-03-061-1/+1
| | | | | | | | | To prevent naming collisions when BB_GENERATE_MIRROR_TARBALLS is used, the packagename is used for the downloaded file. Otherwise it would just be source-${PV}.tar.gz Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-oe: fix Upstream-Status formatYi Zhao2023-02-241-1/+1
| | | | | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* .patch: fix Upstream-Status formatting issues reported by patchreview tool ↵Martin Jansa2023-01-273-6/+3
| | | | | | | from oe-core Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Link with libatomic on ppc32Khem Raj2023-01-081-0/+1
| | | | | | We do not have 64bit atomics otherwise Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Drop redundant patchKhem Raj2022-09-052-43/+1
| | | | | | | Instead of applying one and then reverting it via another patch, its better to apply SRC_URI:remove on the original patch for x86 (32bit) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Upgrade to 1.9.7 and fix build on x86Khem Raj2022-08-182-2/+47
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Use CMAKE_C_STANDARD_LIBRARIES cmake var to pass libatomicKhem Raj2022-08-181-2/+3
| | | | | | | | | | | | Since libatomic needs to be linked last in the list of libs, take advantange of using CMAKE_C_STANDARD_LIBRARIES insread of FLB_DEPS since DFLB_DEPS is not appended last to linker flags in CMakefiles it ends up with undefined references for libatomic symbols in libs appearing after FLB_LIBS in sequence Use it for mips too Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Fix build with muslKhem Raj2022-08-104-18/+69
| | | | | | | Pass large enough default for FLB_CORO_STACK_SIZE Remove unused jemalloc patch Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Fix build with clangKhem Raj2022-08-108-2/+222
| | | | | | | | Fix build using clang-15 which is even stricter then clang-14 These patches are worth upstream too Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Paulo Neves <ptsneves@gmail.com>
* fluentbit Upgrade to 1.3.5 -> 1.9.6Paulo Neves2022-08-0612-325/+261
| | | | | Signed-off-by: Paulo Neves <ptsneves@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Disable systemd support when systemd distro feature is disabledKhem Raj2022-04-253-4/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Fix build with usrmerge distro featureKhem Raj2022-04-252-1/+30
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-031-6/+6
| | | | | | | | | | This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* fluentbit: Fix SIGSEGV caused by using flb_free instead of mk_mem_freeRamon Fried2021-02-093-1/+128
| | | | | Signed-off-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: fix systemd input pluginRamon Fried2021-02-091-0/+2
| | | | | | | | | Because of missing dependency of systemd, Cmake configure step didn't find systemd and skipped the systemd input plugin. Added necessary dependency if systemd is available. Signed-off-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Link with libatomic on riscv32Khem Raj2020-11-161-0/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Disable LTOKhem Raj2020-11-091-0/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Use -fcommon to compileKhem Raj2020-08-131-0/+2
| | | | | | | gcc10+ defaults to -fno-common and fluentbit does not compile with -fno-common Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-oe: Don't inherit 'features_check' in recipes that don't utilize itJacob Kroon2020-06-101-1/+1
| | | | | Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Link with libatomic on riscvKhem Raj2020-01-281-0/+2
| | | | | | | | | | | | jemalloc uses libatomic functions Fixes ../lib/libjemalloc_pic.a(extent_dss.pic.o): in function `extent_dss_extend ing_start': | /usr/src/debug/fluentbit/1.3.5-r0/fluent-bit-1.3.5/lib/jemalloc-5.2.1/src/extent_dss.c:75: undefined reference to `__atomic_compare _exchange_1' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Fix build on powerpcKhem Raj2020-01-162-0/+39
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Upgrade to 1.3.5Khem Raj2019-12-316-57/+127
| | | | | | | | | | Sync recipe with the one in sourcecode Record Accessor feature requires Flex and Bison fts dependency is needed on musl Delete cmake_multilib.patch its fixed upstream Use builtin nan funciton to avoid linking with libm Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Fix packaging in multilib envKhem Raj2019-12-202-0/+19
| | | | | | | | | Fixes ERROR: fluentbit-0.12.19-r0 do_package: QA Issue: fluentbit: Files/directories were installed but not shipped in any package: /usr/lib/libfluent-bit.so Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: Upgrade 0.12.1 -> 0.12.19Adrian Bunk2019-05-102-38/+2
| | | | | | | Remove patch applied upstream. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fluentbit: use Unix Makefiles OECMAKE generatorMartin Jansa2018-01-261-0/+4
| | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* fluentbit: Upgrade to 0.12.1Khem Raj2017-09-135-57/+58
| | | | | | | | | Drop upstreamed patches Fix jemalloc build with musl Fix linking errors due to missing -lpthread Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* fluentbit: fix SYSTEMD_SERVICE nameMartin Jansa2017-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * the binary and service name was renamed in 0.11.11 from fluent-bit to td-agent-bit, but unfortunately SYSTEMD_SERVICE wasn't updated in the recipe with the upgrade causing do_package failures as in: http://errors.yoctoproject.org/Errors/Details/147040/ ERROR: SYSTEMD_SERVICE_fluentbit value fluent-bit.service does not exist 0.11.3-r0/image/ 0.11.3-r0/image/etc 0.11.3-r0/image/etc/fluent-bit 0.11.3-r0/image/etc/fluent-bit/parsers.conf 0.11.3-r0/image/etc/fluent-bit/fluent-bit.conf 0.11.3-r0/image/lib 0.11.3-r0/image/lib/systemd 0.11.3-r0/image/lib/systemd/system 0.11.3-r0/image/lib/systemd/system/fluent-bit.service 0.11.3-r0/image/usr 0.11.3-r0/image/usr/bin 0.11.3-r0/image/usr/bin/fluent-bit 0.11.3-r0/image/usr/lib 0.11.3-r0/image/usr/lib/libfluent-bit.so 0.11.3-r0/image/usr/lib/pkgconfig 0.11.3-r0/image/usr/lib/pkgconfig/msgpack.pc 0.11.11-r0/image 0.11.11-r0/image/etc 0.11.11-r0/image/etc/td-agent-bit 0.11.11-r0/image/etc/td-agent-bit/parsers.conf 0.11.11-r0/image/etc/td-agent-bit/td-agent-bit.conf 0.11.11-r0/image/lib 0.11.11-r0/image/lib/systemd 0.11.11-r0/image/lib/systemd/system 0.11.11-r0/image/lib/systemd/system/td-agent-bit.service 0.11.11-r0/image/usr 0.11.11-r0/image/usr/bin 0.11.11-r0/image/usr/bin/td-agent-bit 0.11.11-r0/image/usr/lib 0.11.11-r0/image/usr/lib/libfluent-bit.so 0.11.11-r0/image/usr/lib/pkgconfig 0.11.11-r0/image/usr/lib/pkgconfig/msgpack.pc Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* fluentbit: Fix parallel build raceKhem Raj2017-07-142-0/+27
| | | | | | | | | | | | | | | | | Sometimes with high parallism the build fails like below | In file included from /mnt/a/oe/workspace/sources/fluentbit/include/fluent-bit/flb_thread_libco.h:24:0, | from /mnt/a/oe/workspace/sources/fluentbit/include/fluent-bit/flb_thread.h:41, | from /mnt/a/oe/workspace/sources/fluentbit/include/fluent-bit/flb_io.h:26, | from /mnt/a/oe/workspace/sources/fluentbit/include/fluent-bit/flb_output.h:34, | from /mnt/a/oe/workspace/sources/fluentbit/include/fluent-bit/flb_plugin_proxy.h:25, | from /mnt/a/oe/workspace/sources/fluentbit/src/proxy/go/go.c:22: | /mnt/a/oe/workspace/sources/fluentbit/include/fluent-bit/flb_mem.h:31:10: fatal error: jemalloc/jemalloc.h: No such file or directory | #include <jemalloc/jemalloc.h> | ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* fluentbit: Upgrade to 0.11.11Khem Raj2017-07-012-56/+3
| | | | | | | Drop upstreamed patch Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* fluentbit: Upgrade to 0.11.3 releaseKhem Raj2017-04-264-16/+104
| | | | | | | | Fix cross compiling for external modules Fix build with gcc7 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>