14 Commits
Author SHA1 Message Date
Alexandru Ardelean 927fc5ea54 fluent-bit: fix HTTP output SIGSEGV on too-small coroutine stack
Each output flush runs in a coroutine whose stack was forced to 4096 (one
page). The HTTP output plugin overflows it and crashes with SIGSEGV after
the flush (issue #30113). Pin FLB_CORO_STACK_SIZE to upstream's own 64K
floor (FLB_CORO_STACK_SIZE_MIN_BYTE), which the musl-shrunk default undercuts.

Also add a regression test: drive the dummy input into the http output and
assert fluent-bit survives a few flush cycles instead of dying from a signal
(no listener needed -- the overflow happens while composing the request).

Fixes: https://github.com/openwrt/packages/issues/30113
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-08-01 21:19:47 +03:00
Sebastian Hamann b442c043a7 fluent-bit: add init script
A init script allows running fluent-bit as a system service.

Signed-off-by: Sebastian Hamann <code@ares-macrotechnology.com>
2026-07-20 12:10:04 +03:00
Alexandru Ardelean 7b5d7e39fb fluent-bit: update to 5.0.8, adopt maintainer, fix musl startup segfault
Update 4.2.0 -> 5.0.8 and adopt maintainership. fluent-bit segfaulted at
startup on every musl target: under GCC 14 the upstream C-TLS probe no longer
compiles (undeclared __tls_get_addr), so the pthread_key fallback calls
pthread_getspecific() before pthread_key_create() and derefs a NULL tsd array
on musl (glibc is unaffected). Force -DFLB_HAVE_C_TLS=Yes for __thread TLS.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-07-09 20:41:02 +03:00
Philip A. Prindeville c08761bfcc treewide: homogenize references to libfts for MUSL
The way we use -lfts isn't particularly consistent.  There's no reason
it shouldn't be.  glibc users shouldn't have to deal with someone else's
lack of rigor.

Signed-off-by: Philip A. Prindeville <philipp@redfish-solutions.com>
2026-07-05 22:45:59 -06:00
Philip A. Prindeville 01a60d05db fluent-bit: fix CI/CD tests
Getting segfault because stack size is inadequate.

Fixes: https://github.com/openwrt/packages/issues/29777
Signed-off-by: Philip A. Prindeville <philipp@redfish-solutions.com>
2026-07-05 22:45:59 -06:00
Philip A. Prindeville b4c6064f20 treewide: musl-fts is only needed when using MUSL
Two packages (fluent-bit and nnn) don't properly gate musl-fts as
only required when using MUSL.

Signed-off-by: Philip A. Prindeville <philipp@redfish-solutions.com>
2026-06-20 15:06:22 -06:00
Fabrice Fontaine 6b6eeca888 admin/fluent-bit: assign PKG_CPE_ID
cpe:/a:treasuredata:fluent_bit is the correct CPE ID for fluent_bit:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:treasuredata:fluent_bit

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2026-03-19 14:34:51 +02:00
Biao Zhu e58ea6de40 fluent-bit: update to 4.2.0
Build system: aarch64
Build-tested: mediatek/filogic
Run-tested: mediatek/filogic

Signed-off-by: Biao Zhu <zhumouren0623@qq.com>
2025-11-23 08:45:50 +01:00
Biao Zhu 20f0c74de8 fluent-bit: update to 4.1.1
- Add newly libsasl2 dependency

Build system: aarch64
Build-tested: mediatek/filogic
Run-tested: mediatek/filogic

Signed-off-by: Biao Zhu <zhumouren0623@qq.com>
2025-10-13 19:15:18 +03:00
Biao Zhu 2cea4de176 fluent-bit: update to 4.1.0
- Remove obsolete patch

Build system: aarch64
Build-tested: mediatek/filogic
Run-tested: mediatek/filogic

Signed-off-by: Biao Zhu <zhumouren0623@qq.com>
2025-09-27 08:19:41 +03:00
Biao Zhu 2b99cd7d76 fluent-bit: update to 4.0.9
- Remove obsolete patch
- Add patch replace NPN with ALPN for client connections \
because the default OpenSSL library does not enable NPN.
- Add newly libstdcpp dependency

Build system: aarch64
Build-tested: mediatek/filogic
Run-tested: mediatek/filogic

Signed-off-by: Biao Zhu <zhumouren0623@qq.com>
2025-09-18 22:18:54 +03:00
Rosen Penev 625c55f04a fluent-bit: update to 3.1.9
Add patch from Alpine to fix compilation with GCC14.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-11-11 18:48:55 +02:00
Hauke Mehrtens ce6ca4137c fluent-bit: Deactivate sasl2, zlib and zstd
Deactivate the dependencies to libsals2, libzlib and libzstd.
This fixes the build of fluent-bit.

This fixes the following problem:
```
Package fluent-bit is missing dependencies for the following libraries:
libsasl2.so.3
libz.so.1
libzstd.so.1
```

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-10-13 18:03:34 -07:00
Rahul Thakur 9be88f24b3 fluent-bit: add package
* add package fluent-bit v3.1.3
* test performed
  - compile-test
  - run-test on target

* fluent-bit package is added to provide another option for
  log collection and management. It integrates well with
  a wide variety of environments and deployments. It is widely
  used by a number of organizations and is supported across a
  variety of platforms. Integrating it to make it available as
  an openwrt package.

Signed-off-by: Rahul Thakur <rahul.thakur@iopsys.eu>
2024-07-18 14:31:50 +02:00