Page MenuHomeFreeBSD

No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None
diff --git a/sysutils/fluent-bit/Makefile b/sysutils/fluent-bit/Makefile
index 00961271e4a8..a1ddc8129f62 100644
--- a/sysutils/fluent-bit/Makefile
+++ b/sysutils/fluent-bit/Makefile
@@ -1,57 +1,58 @@
PORTNAME= fluent-bit
DISTVERSIONPREFIX= v
DISTVERSION= 4.2.2
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= girgen@FreeBSD.org
COMMENT= Fast and lightweight data forwarder
WWW= https://fluentbit.io/
LICENSE= APACHE20
BROKEN_mips= fails to build: conflicting types for 'restrict'
BROKEN_mips64= fails to build: conflicting types for 'restrict'
LIB_DEPENDS= libyaml.so:textproc/libyaml
USES= bison cmake:noninja compiler:c11 gmake localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= fluent
USE_RC_SUBR= ${PORTNAME}
CMAKE_ARGS= -DFLB_DEBUG=Off \
-DFLB_TRACE=Off
LDFLAGS+= -lexecinfo
OPTIONS_DEFINE= LUA_FILTER PGSQL SSL
OPTIONS_DEFAULT= LUA_FILTER PGSQL SSL
LUA_FILTER_DESC= Support for modifying incoming records using Lua scripts
LUA_FILTER_USES= luajit:luajit pkgconfig
LUA_FILTER_CMAKE_ON= -DFLB_FILTER_LUA=On \
-DFLB_LUAJIT=On \
-DFLB_PREFER_SYSTEM_LIB_LUAJIT=On
LUA_FILTER_CMAKE_OFF= -DFLB_LUAJIT=Off
PGSQL_USES= pgsql
PGSQL_CMAKE_ON= -DFLB_OUT_PGSQL=On
PGSQL_CMAKE_OFF= -DFLB_OUT_PGSQL=Off
SSL_USES= ssl
SSL_CMAKE_ON= -DFLB_TLS=On
SSL_CMAKE_OFF= -DFLB_TLS=Off
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD
CFLAGS+= -Wno-error=int-conversion
.endif
post-install:
${MV} ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
${MV} ${STAGEDIR}${ETCDIR}/parsers.conf ${STAGEDIR}${ETCDIR}/parsers.conf.sample
do-test-LUA_FILTER-on:
${STAGEDIR}${PREFIX}/bin/fluent-bit --help 2>/dev/null | grep -w -q lua
.include <bsd.port.mk>
diff --git a/sysutils/fluent-bit/files/patch-plugins_in__tail_tail__fs__inotify.c b/sysutils/fluent-bit/files/patch-plugins_in__tail_tail__fs__inotify.c
new file mode 100644
index 000000000000..cb66728a9e7a
--- /dev/null
+++ b/sysutils/fluent-bit/files/patch-plugins_in__tail_tail__fs__inotify.c
@@ -0,0 +1,17 @@
+diff --git a/sysutils/fluent-bit/files/patch-plugins_in__tail_tail__fs__inotify.c b/sysutils/fluent-bit/files/patch-plugins_in__tail_tail__fs__inotify.c
+new file mode 100644
+index 00000000000..1b638908f85
+--- /dev/null
++++ b/sysutils/fluent-bit/files/patch-plugins_in__tail_tail__fs__inotify.c
+@@ -0,0 +1,11 @@
++--- plugins/in_tail/tail_fs_inotify.c.orig 2026-01-21 11:26:30 UTC
+++++ plugins/in_tail/tail_fs_inotify.c
++@@ -107,7 +107,7 @@ static int tail_fs_add(struct flb_tail_file *file, int
++ * lines from the file and once we reach EOF (and a watch_fd exists),
++ * we update the flags to receive notifications.
++ */
++- flags = IN_ATTRIB | IN_IGNORED | IN_MODIFY | IN_Q_OVERFLOW;
+++ flags = IN_ATTRIB | IN_MODIFY;
++
++ if (check_rotated == FLB_TRUE) {
++ flags |= IN_MOVE_SELF;

File Metadata

Mime Type
text/x-diff
Expires
Sun, Mar 29, 2:14 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28211501
Default Alt Text
(2 KB)

Event Timeline