* [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9
@ 2023-02-11 18:25 thomas
2023-02-11 18:25 ` [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain thomas
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: thomas @ 2023-02-11 18:25 UTC (permalink / raw)
To: buildroot; +Cc: Thomas Devoogdt, Thomas Devoogdt
From: Thomas Devoogdt <thomas.devoogdt@gmail.com>
- Release Notes:
https://fluentbit.io/announcements/v2.0.9/
- Patch dropped, as it is upstream:
https://github.com/fluent/fluent-bit/commit/7bcb502ebdcd647d6b83c972805e734ad522eb1a
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@gmail.com>
---
v2: moved to a serie of patches
...eLists.txt-only-require-a-C-compiler.patch | 27 -------------------
package/fluent-bit/fluent-bit.hash | 2 +-
package/fluent-bit/fluent-bit.mk | 2 +-
3 files changed, 2 insertions(+), 29 deletions(-)
delete mode 100644 package/fluent-bit/0001-CMakeLists.txt-only-require-a-C-compiler.patch
diff --git a/package/fluent-bit/0001-CMakeLists.txt-only-require-a-C-compiler.patch b/package/fluent-bit/0001-CMakeLists.txt-only-require-a-C-compiler.patch
deleted file mode 100644
index e71bcf0c0d..0000000000
--- a/package/fluent-bit/0001-CMakeLists.txt-only-require-a-C-compiler.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 7bcb502ebdcd647d6b83c972805e734ad522eb1a Mon Sep 17 00:00:00 2001
-From: Thomas Devoogdt <thomas.devoogdt@barco.com>
-Date: Mon, 30 Jan 2023 09:10:37 +0100
-Subject: [PATCH] CMakeLists.txt: only require a C compiler
-
-Fluent-bit is mostly written in C,
-so don't require CXX in the top-level project.
-
-Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index a7adb02de..3ff7360d8 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -1,5 +1,5 @@
- cmake_minimum_required(VERSION 3.12)
--project(fluent-bit)
-+project(fluent-bit C)
-
- # CMP0069 ensures that LTO is enabled for all compilers
- cmake_policy(SET CMP0069 NEW)
---
-2.30.2
-
diff --git a/package/fluent-bit/fluent-bit.hash b/package/fluent-bit/fluent-bit.hash
index ce7cea7b59..0caadcd56f 100644
--- a/package/fluent-bit/fluent-bit.hash
+++ b/package/fluent-bit/fluent-bit.hash
@@ -1,3 +1,3 @@
# Locally computed
-sha256 8ff5566389033669feabc9c69a5c6f417dad5c8b066454388e6a706507262acf fluent-bit-2.0.8.tar.gz
+sha256 393ad4a6ced48c327607653d610ef273843085a17b6e5c8013877abdf31e6945 fluent-bit-2.0.9.tar.gz
sha256 0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594 LICENSE
diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/fluent-bit.mk
index 13077e53cc..c10ef613d7 100644
--- a/package/fluent-bit/fluent-bit.mk
+++ b/package/fluent-bit/fluent-bit.mk
@@ -4,7 +4,7 @@
#
################################################################################
-FLUENT_BIT_VERSION = 2.0.8
+FLUENT_BIT_VERSION = 2.0.9
FLUENT_BIT_SITE = $(call github,fluent,fluent-bit,v$(FLUENT_BIT_VERSION))
FLUENT_BIT_LICENSE = Apache-2.0
FLUENT_BIT_LICENSE_FILES = LICENSE
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain
2023-02-11 18:25 [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9 thomas
@ 2023-02-11 18:25 ` thomas
2023-02-15 9:21 ` Peter Korsgaard
2023-02-11 18:25 ` [Buildroot] [PATCH v2 3/3] package/fluent-bit: fix builds on s390x architectures thomas
2023-02-15 9:19 ` [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9 Peter Korsgaard
2 siblings, 1 reply; 8+ messages in thread
From: thomas @ 2023-02-11 18:25 UTC (permalink / raw)
To: buildroot; +Cc: Thomas Devoogdt, Thomas Devoogdt
From: Thomas Devoogdt <thomas.devoogdt@barco.com>
- require threads and dynamic library support
- require sync_4 support
- provide fts.h trough musl-fts
static_assert is not available if no C++ toolchain or no glibc
is used, so add two patches to fix this
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
---
v2: rebased the c-ares patch
.../0001-lib-cfl-fixup-static_assert.patch | 33 +++++++++++
.../0002-lib-c-ares-fixup-static_assert.patch | 56 +++++++++++++++++++
package/fluent-bit/Config.in | 10 +++-
package/fluent-bit/fluent-bit.mk | 11 +++-
4 files changed, 105 insertions(+), 5 deletions(-)
create mode 100644 package/fluent-bit/0001-lib-cfl-fixup-static_assert.patch
create mode 100644 package/fluent-bit/0002-lib-c-ares-fixup-static_assert.patch
diff --git a/package/fluent-bit/0001-lib-cfl-fixup-static_assert.patch b/package/fluent-bit/0001-lib-cfl-fixup-static_assert.patch
new file mode 100644
index 0000000000..19dab7cac6
--- /dev/null
+++ b/package/fluent-bit/0001-lib-cfl-fixup-static_assert.patch
@@ -0,0 +1,33 @@
+From e4f825dd9e952f4a056bf89342049e67102ae6bb Mon Sep 17 00:00:00 2001
+From: Thomas Devoogdt <thomas.devoogdt@barco.com>
+Date: Wed, 1 Feb 2023 11:38:15 +0100
+Subject: [PATCH] lib: cfl: fixup static_assert
+
+"undefined reference to 'static_assert'"
+
+Not defined when using uClibc or if not C++ >= 11.
+
+upstream: https://github.com/Cyan4973/xxHash/commit/6189ecd3d44a693460f86280ccf49d33cb4b18e1
+
+Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
+---
+ lib/cfl/lib/xxhash/xxhash.h | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/lib/cfl/lib/xxhash/xxhash.h b/lib/cfl/lib/xxhash/xxhash.h
+index 08ab79457..511c4d12b 100644
+--- a/lib/cfl/lib/xxhash/xxhash.h
++++ b/lib/cfl/lib/xxhash/xxhash.h
+@@ -1546,8 +1546,7 @@ static void* XXH_memcpy(void* dest, const void* src, size_t size)
+ /* note: use after variable declarations */
+ #ifndef XXH_STATIC_ASSERT
+ # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) /* C11 */
+-# include <assert.h>
+-# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
++# define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { _Static_assert((c),m); } while(0)
+ # elif defined(__cplusplus) && (__cplusplus >= 201103L) /* C++11 */
+ # define XXH_STATIC_ASSERT_WITH_MESSAGE(c,m) do { static_assert((c),m); } while(0)
+ # else
+--
+2.34.1
+
diff --git a/package/fluent-bit/0002-lib-c-ares-fixup-static_assert.patch b/package/fluent-bit/0002-lib-c-ares-fixup-static_assert.patch
new file mode 100644
index 0000000000..d9b918ea8a
--- /dev/null
+++ b/package/fluent-bit/0002-lib-c-ares-fixup-static_assert.patch
@@ -0,0 +1,56 @@
+From f55f9bf6d9201169d2e5d3782068b03ff17dec90 Mon Sep 17 00:00:00 2001
+From: Thomas Devoogdt <thomas.devoogdt@barco.com>
+Date: Wed, 1 Feb 2023 11:26:56 +0100
+Subject: [PATCH] lib: c-ares: fixup static_assert
+
+"undefined reference to 'static_assert'"
+
+Not defined when using uClibc or if not C++ >= 11.
+
+upstream: https://github.com/c-ares/c-ares/issues/504
+
+Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
+---
+ lib/c-ares-1.19.0/configure | 4 ++++
+ lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4 | 3 +++
+ 2 files changed, 7 insertions(+)
+
+diff --git a/lib/c-ares-1.19.0/configure b/lib/c-ares-1.19.0/configure
+index 4c5e1a966..58712ec34 100755
+--- a/lib/c-ares-1.19.0/configure
++++ b/lib/c-ares-1.19.0/configure
+@@ -6317,6 +6317,8 @@ else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
++#define static_assert _Static_assert
++
+ template <typename T>
+ struct check
+ {
+@@ -6394,6 +6396,8 @@ else $as_nop
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
++#define static_assert _Static_assert
++
+ template <typename T>
+ struct check
+ {
+diff --git a/lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4 b/lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4
+index 229de3091..fe4a11c67 100644
+--- a/lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4
++++ b/lib/c-ares-1.19.0/m4/ax_cxx_compile_stdcxx_11.m4
+@@ -37,6 +37,9 @@
+ #serial 9
+
+ m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[
++
++#define static_assert _Static_assert
++
+ template <typename T>
+ struct check
+ {
+--
+2.34.1
+
diff --git a/package/fluent-bit/Config.in b/package/fluent-bit/Config.in
index 6c2299e695..f53eacb447 100644
--- a/package/fluent-bit/Config.in
+++ b/package/fluent-bit/Config.in
@@ -1,6 +1,9 @@
config BR2_PACKAGE_FLUENT_BIT
bool "fluent-bit"
- depends on BR2_TOOLCHAIN_USES_GLIBC
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
+ depends on !BR2_STATIC_LIBS # dlfcn.h
+ select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_LIBYAML
help
@@ -29,5 +32,6 @@ config BR2_PACKAGE_FLUENT_BIT_WASM
endif
-comment "fluent-bit needs a glibc toolchain"
- depends on !BR2_TOOLCHAIN_USES_GLIBC
+comment "fluent-bit needs a toolchain w/ threads, dynamic library"
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/fluent-bit.mk
index c10ef613d7..4ecf813511 100644
--- a/package/fluent-bit/fluent-bit.mk
+++ b/package/fluent-bit/fluent-bit.mk
@@ -49,12 +49,19 @@ FLUENT_BIT_CONF_OPTS += \
-DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -U_FILE_OFFSET_BITS" \
-DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -U_FILE_OFFSET_BITS"
+ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
+FLUENT_BIT_DEPENDENCIES += musl-fts
+FLUENT_BIT_LDFLAGS += -lfts
+endif
+
# Uses __atomic_compare_exchange_8
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
-FLUENT_BIT_CONF_OPTS += \
- -DCMAKE_EXE_LINKER_FLAGS=-latomic
+FLUENT_BIT_LDFLAGS += -latomic
endif
+FLUENT_BIT_CONF_OPTS += \
+ -DCMAKE_EXE_LINKER_FLAGS="$(FLUENT_BIT_LDFLAGS)"
+
define FLUENT_BIT_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/fluent-bit/S99fluent-bit \
$(TARGET_DIR)/etc/init.d/S99fluent-bit
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH v2 3/3] package/fluent-bit: fix builds on s390x architectures
2023-02-11 18:25 [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9 thomas
2023-02-11 18:25 ` [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain thomas
@ 2023-02-11 18:25 ` thomas
2023-02-15 9:22 ` Peter Korsgaard
2023-02-15 9:19 ` [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9 Peter Korsgaard
2 siblings, 1 reply; 8+ messages in thread
From: thomas @ 2023-02-11 18:25 UTC (permalink / raw)
To: buildroot; +Cc: Thomas Devoogdt, Thomas Devoogdt
From: Thomas Devoogdt <thomas.devoogdt@gmail.com>
Fixes:
- http://autobuild.buildroot.net/results/856fd250f75a696694c70e3208ffcef7470a7082
- http://autobuild.buildroot.net/results/dceb413fb5d459338417d8dd5a42d95aa23e849b
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@gmail.com>
---
v2: new patch in this serie
package/fluent-bit/fluent-bit.mk | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/fluent-bit.mk
index 4ecf813511..d618fdf1e2 100644
--- a/package/fluent-bit/fluent-bit.mk
+++ b/package/fluent-bit/fluent-bit.mk
@@ -12,6 +12,9 @@ FLUENT_BIT_CPE_ID_VENDOR = treasuredata
FLUENT_BIT_CPE_ID_PRODUCT = fluent_bit
FLUENT_BIT_DEPENDENCIES = host-bison host-flex libyaml openssl
+FLUENT_BIT_CFLAGS = $(TARGET_CFLAGS)
+FLUENT_BIT_CXXFLAGS = $(TARGET_CXXFLAGS)
+
FLUENT_BIT_CONF_OPTS += \
-DFLB_DEBUG=No \
-DFLB_RELEASE=Yes \
@@ -42,12 +45,16 @@ FLUENT_BIT_CONF_OPTS += \
FLUENT_BIT_CONF_OPTS += \
-DCMAKE_INSTALL_SYSCONFDIR="/etc/"
+# Fix multiple definition of `mk_tls_*'.
+# https://github.com/fluent/fluent-bit/issues/5537
+FLUENT_BIT_CFLAGS += -fcommon
+FLUENT_BIT_CXXFLAGS += -fcommon
+
# Undefining _FILE_OFFSET_BITS here because of a "bug" with glibc fts.h
# large file support.
-# See https://bugzilla.redhat.com/show_bug.cgi?id=574992 for more information.
-FLUENT_BIT_CONF_OPTS += \
- -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -U_FILE_OFFSET_BITS" \
- -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -U_FILE_OFFSET_BITS"
+# https://bugzilla.redhat.com/show_bug.cgi?id=574992
+FLUENT_BIT_CFLAGS += -U_FILE_OFFSET_BITS
+FLUENT_BIT_CXXFLAGS += -U_FILE_OFFSET_BITS
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
FLUENT_BIT_DEPENDENCIES += musl-fts
@@ -60,7 +67,9 @@ FLUENT_BIT_LDFLAGS += -latomic
endif
FLUENT_BIT_CONF_OPTS += \
- -DCMAKE_EXE_LINKER_FLAGS="$(FLUENT_BIT_LDFLAGS)"
+ -DCMAKE_EXE_LINKER_FLAGS="$(FLUENT_BIT_LDFLAGS)" \
+ -DCMAKE_C_FLAGS="$(FLUENT_BIT_CFLAGS)" \
+ -DCMAKE_CXX_FLAGS="$(FLUENT_BIT_CXXFLAGS)"
define FLUENT_BIT_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/fluent-bit/S99fluent-bit \
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9
2023-02-11 18:25 [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9 thomas
2023-02-11 18:25 ` [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain thomas
2023-02-11 18:25 ` [Buildroot] [PATCH v2 3/3] package/fluent-bit: fix builds on s390x architectures thomas
@ 2023-02-15 9:19 ` Peter Korsgaard
2 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2023-02-15 9:19 UTC (permalink / raw)
To: thomas; +Cc: Thomas Devoogdt, buildroot
>>>>> "thomas" == thomas <thomas@devoogdt.com> writes:
> From: Thomas Devoogdt <thomas.devoogdt@gmail.com>
> - Release Notes:
> https://fluentbit.io/announcements/v2.0.9/
> - Patch dropped, as it is upstream:
> https://github.com/fluent/fluent-bit/commit/7bcb502ebdcd647d6b83c972805e734ad522eb1a
> Signed-off-by: Thomas Devoogdt <thomas.devoogdt@gmail.com>
> ---
> v2: moved to a serie of patches
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain
2023-02-11 18:25 ` [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain thomas
@ 2023-02-15 9:21 ` Peter Korsgaard
2023-02-15 11:41 ` Thomas Devoogdt
0 siblings, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2023-02-15 9:21 UTC (permalink / raw)
To: thomas; +Cc: Thomas Devoogdt, buildroot
>>>>> "thomas" == thomas <thomas@devoogdt.com> writes:
> From: Thomas Devoogdt <thomas.devoogdt@barco.com>
> - require threads and dynamic library support
> - require sync_4 support
> - provide fts.h trough musl-fts
> static_assert is not available if no C++ toolchain or no glibc
> is used, so add two patches to fix this
> Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
Committed, thanks. We do have xxhash and c-ares packages in Buildroot,
could you have a look at using those instead of these vendored
libraries?
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH v2 3/3] package/fluent-bit: fix builds on s390x architectures
2023-02-11 18:25 ` [Buildroot] [PATCH v2 3/3] package/fluent-bit: fix builds on s390x architectures thomas
@ 2023-02-15 9:22 ` Peter Korsgaard
0 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2023-02-15 9:22 UTC (permalink / raw)
To: thomas; +Cc: Thomas Devoogdt, buildroot
>>>>> "thomas" == thomas <thomas@devoogdt.com> writes:
> From: Thomas Devoogdt <thomas.devoogdt@gmail.com>
> Fixes:
> - http://autobuild.buildroot.net/results/856fd250f75a696694c70e3208ffcef7470a7082
> - http://autobuild.buildroot.net/results/dceb413fb5d459338417d8dd5a42d95aa23e849b
> Signed-off-by: Thomas Devoogdt <thomas.devoogdt@gmail.com>
> ---
> v2: new patch in this serie
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain
2023-02-15 9:21 ` Peter Korsgaard
@ 2023-02-15 11:41 ` Thomas Devoogdt
2023-02-15 12:52 ` Peter Korsgaard
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Devoogdt @ 2023-02-15 11:41 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: Thomas Devoogdt, Thomas Devoogdt, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 1192 bytes --]
Hi, Peter
It would indeed be better to link against those,
but this is sadly the nature of how fluent-bit is made.
Next to those two libs, there are a dozen of other libs that are also
literally copied in their code base. What you are proposing is to adapt
their cmakefile and only compile the static libs if no dynamic lib could be
found. Or even never compile it and just pass the linker flags. I'm afraid
that we could have compatibility problems by that, so I would keep it
static for now.
Kr
Thomas Devoogdt
Op wo 15 feb. 2023 10:21 schreef Peter Korsgaard <peter@korsgaard.com>:
> >>>>> "thomas" == thomas <thomas@devoogdt.com> writes:
>
> > From: Thomas Devoogdt <thomas.devoogdt@barco.com>
> > - require threads and dynamic library support
> > - require sync_4 support
> > - provide fts.h trough musl-fts
>
> > static_assert is not available if no C++ toolchain or no glibc
> > is used, so add two patches to fix this
>
> > Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
>
> Committed, thanks. We do have xxhash and c-ares packages in Buildroot,
> could you have a look at using those instead of these vendored
> libraries?
>
> --
> Bye, Peter Korsgaard
>
>
[-- Attachment #1.2: Type: text/html, Size: 2040 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain
2023-02-15 11:41 ` Thomas Devoogdt
@ 2023-02-15 12:52 ` Peter Korsgaard
0 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2023-02-15 12:52 UTC (permalink / raw)
To: Thomas Devoogdt; +Cc: Thomas Devoogdt, buildroot
>>>>> "Thomas" == Thomas Devoogdt <thomas@devoogdt.com> writes:
> Hi, Peter
> It would indeed be better to link against those,
> but this is sadly the nature of how fluent-bit is made.
Do you know why they have made that choice? From a quick look it doesn't
seem like the code has been modified.
> Next to those two libs, there are a dozen of other libs that are also
> literally copied in their code base. What you are proposing is to adapt
> their cmakefile and only compile the static libs if no dynamic lib could be
> found. Or even never compile it and just pass the linker flags. I'm afraid
> that we could have compatibility problems by that, so I would keep it
> static for now.
If that is the only option supported by upstream, then indeed that is
what we will have to do. Will you monitor for security vulnerabilities
in the vendored libraries and ensure this is also fixed there? E.G. we
recently had a (low risk) vulnerability in c-ares.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-02-15 12:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-11 18:25 [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9 thomas
2023-02-11 18:25 ` [Buildroot] [PATCH v2 2/3] package/fluent-bit: add support for non glibc toolchain thomas
2023-02-15 9:21 ` Peter Korsgaard
2023-02-15 11:41 ` Thomas Devoogdt
2023-02-15 12:52 ` Peter Korsgaard
2023-02-11 18:25 ` [Buildroot] [PATCH v2 3/3] package/fluent-bit: fix builds on s390x architectures thomas
2023-02-15 9:22 ` Peter Korsgaard
2023-02-15 9:19 ` [Buildroot] [PATCH v2 1/3] package/fluent-bit: bump to version 2.0.9 Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.