git: b53024c1ba3b - 2026Q1 - sysutils/fluent-bit: fix problem with tail module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 29 Jan 2026 08:50:57 UTC
The branch 2026Q1 has been updated by michaelo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b53024c1ba3b114f061f88ac510f4e5d23653915
commit b53024c1ba3b114f061f88ac510f4e5d23653915
Author: Palle Girgensohn <girgen@FreeBSD.org>
AuthorDate: 2026-01-22 09:51:30 +0000
Commit: Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-01-29 08:50:31 +0000
sysutils/fluent-bit: fix problem with tail module
On FreeBSD, userland inotify functions do not accept IN_IGNORED and
IN_Q_OVERFLOW flags (they are only returned from system calls by
kernel), and if specified, invokes an error.
PR: 292629
Submitted by: Hiroo Ono
(cherry picked from commit bd220a9cae5310798cdd5788e8e8805c8e7c61e0)
---
sysutils/fluent-bit/Makefile | 1 +
.../files/patch-plugins_in__tail_tail__fs__inotify.c | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
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,6 +1,7 @@
PORTNAME= fluent-bit
DISTVERSIONPREFIX= v
DISTVERSION= 4.2.2
+PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= girgen@FreeBSD.org
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;