Date: Thu, 22 Jan 2026 09:54:44 +0000 From: Palle Girgensohn <girgen@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: bd220a9cae53 - main - sysutils/fluent-bit: fix problem with tail module Message-ID: <6971f3e4.26d1a.205fe2ec@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by girgen: URL: https://cgit.FreeBSD.org/ports/commit/?id=bd220a9cae5310798cdd5788e8e8805c8e7c61e0 commit bd220a9cae5310798cdd5788e8e8805c8e7c61e0 Author: Palle Girgensohn <girgen@FreeBSD.org> AuthorDate: 2026-01-22 09:51:30 +0000 Commit: Palle Girgensohn <girgen@FreeBSD.org> CommitDate: 2026-01-22 09:54:42 +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 --- 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;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6971f3e4.26d1a.205fe2ec>
