mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
fluent-bit: bump version and adjust patch accordingly
This commit is contained in:
parent
64c6ff7787
commit
87aa6ea898
2 changed files with 5 additions and 31 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=fluent-bit
|
PKG_NAME:=fluent-bit
|
||||||
PKG_VERSION:=4.0.2
|
PKG_VERSION:=4.0.4
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
LOCAL_DEV:=0
|
LOCAL_DEV:=0
|
||||||
|
|
@ -13,7 +13,7 @@ ifneq ($(LOCAL_DEV),1)
|
||||||
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL_FILE:=v$(PKG_VERSION).tar.gz
|
PKG_SOURCE_URL_FILE:=v$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/fluent/fluent-bit/archive/refs/tags/
|
PKG_SOURCE_URL:=https://github.com/fluent/fluent-bit/archive/refs/tags/
|
||||||
PKG_HASH:=aa0577ba7251081c8d5398b2a905b5b0585bb657ca13b39a5e12931437516f08
|
PKG_HASH:=591037d249d9058e69d83e94a47cb507fa423f0c7d4df202229a01da4996407b
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,8 @@
|
||||||
diff --git a/plugins/in_kmsg/in_kmsg.c b/plugins/in_kmsg/in_kmsg.c
|
diff --git a/plugins/in_kmsg/in_kmsg.c b/plugins/in_kmsg/in_kmsg.c
|
||||||
index 9bafd1b60..9524cf194 100644
|
index cd5c4cd17..9524cf194 100644
|
||||||
--- a/plugins/in_kmsg/in_kmsg.c
|
--- a/plugins/in_kmsg/in_kmsg.c
|
||||||
+++ b/plugins/in_kmsg/in_kmsg.c
|
+++ b/plugins/in_kmsg/in_kmsg.c
|
||||||
@@ -36,6 +36,7 @@
|
@@ -165,6 +165,15 @@ static inline int process_line(const char *line,
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <sys/time.h>
|
|
||||||
#include <inttypes.h>
|
|
||||||
+#include <time.h>
|
|
||||||
|
|
||||||
#include "in_kmsg.h"
|
|
||||||
|
|
||||||
@@ -143,7 +144,7 @@ static inline int process_line(const char *line,
|
|
||||||
}
|
|
||||||
p++;
|
|
||||||
|
|
||||||
- val = strtol(p, &end, 10);
|
|
||||||
+ val = strtoul(p, &end, 10);
|
|
||||||
if ((errno == ERANGE && (val == INT_MAX || val == INT_MIN))
|
|
||||||
|| (errno != 0 && val == 0)) {
|
|
||||||
goto fail;
|
|
||||||
@@ -153,7 +154,7 @@ static inline int process_line(const char *line,
|
|
||||||
p = ++end;
|
|
||||||
|
|
||||||
/* Timestamp */
|
|
||||||
- val = strtol(p, &end, 10);
|
|
||||||
+ val = strtoul(p, &end, 10);
|
|
||||||
if ((errno == ERANGE && (val == INT_MAX || val == INT_MIN))
|
|
||||||
|| (errno != 0 && val == 0)) {
|
|
||||||
goto fail;
|
|
||||||
@@ -164,6 +165,15 @@ static inline int process_line(const char *line,
|
|
||||||
|
|
||||||
flb_time_set(&ts, ctx->boot_time.tv_sec + tv.tv_sec, tv.tv_usec * 1000);
|
flb_time_set(&ts, ctx->boot_time.tv_sec + tv.tv_sec, tv.tv_usec * 1000);
|
||||||
|
|
||||||
|
|
@ -44,7 +18,7 @@ index 9bafd1b60..9524cf194 100644
|
||||||
/* Now process the human readable message */
|
/* Now process the human readable message */
|
||||||
p = strchr(p, ';');
|
p = strchr(p, ';');
|
||||||
if (!p) {
|
if (!p) {
|
||||||
@@ -197,7 +207,10 @@ static inline int process_line(const char *line,
|
@@ -198,7 +207,10 @@ static inline int process_line(const char *line,
|
||||||
FLB_LOG_EVENT_UINT64_VALUE(tv.tv_usec),
|
FLB_LOG_EVENT_UINT64_VALUE(tv.tv_usec),
|
||||||
|
|
||||||
FLB_LOG_EVENT_CSTRING_VALUE("msg"),
|
FLB_LOG_EVENT_CSTRING_VALUE("msg"),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue