[Buildroot] [PATCH 1/1] package/fluent-bit: fix build without c++

Thomas Devoogdt thomas at devoogdt.com
Fri Jul 28 05:01:09 UTC 2023


Hi Bernd,


I know, I have a PR open for this upstream.
https://github.com/confluentinc/librdkafka/pull/4366

Which will then be added to fluent-bit.
https://github.com/fluent/fluent-bit/compare/master...ThomasDevoogdt:fluent-bit:bugfix/7741-librdkafka-without-cxx-support

The last one could then be applied in buildroot as a patch, or will be part
of a next fluent-bit release.

This is the issue which I originally submitted:
https://github.com/fluent/fluent-bit/issues/7741


Kr,

Thomas Devoogdt


Op do 27 jul. 2023 23:20 schreef Bernd Kuhls <bernd at kuhls.net>:

> The kafka plugin needs c++.
>
> Fixes:
>
> http://autobuild.buildroot.net/results/709/70960056479eab860e94eed993566fcb78c4dbbe/
>
> Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
> ---
>  package/fluent-bit/fluent-bit.mk | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/
> fluent-bit.mk
> index 1185860661..245f6ecf44 100644
> --- a/package/fluent-bit/fluent-bit.mk
> +++ b/package/fluent-bit/fluent-bit.mk
> @@ -22,6 +22,16 @@ FLUENT_BIT_CONF_OPTS += \
>         -DFLB_PREFER_SYSTEM_LIBS=Yes \
>         -DFLB_BACKTRACE=No
>
> +ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
> +FLUENT_BIT_CONF_OPTS += \
> +       -DFLB_IN_KAFKA=Yes \
> +       -DFLB_OUT_KAFKA=Yes
> +else
> +FLUENT_BIT_CONF_OPTS += \
> +       -DFLB_IN_KAFKA=No \
> +       -DFLB_OUT_KAFKA=No
> +endif
> +
>  ifeq ($(BR2_PACKAGE_FLUENT_BIT_WASM),y)
>  FLUENT_BIT_WAMR_ARCH = $(call qstrip,$(BR2_PACKAGE_FLUENT_BIT_WASM_ARCH))
>
> --
> 2.39.2
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20230728/7b539ccf/attachment-0001.html>


More information about the buildroot mailing list