[Buildroot] [PATCH] package: add new package: fluent-bit

Matthew Weber matthew.weber at rockwellcollins.com
Fri Feb 8 14:42:01 UTC 2019


Kevin,

On Fri, Feb 8, 2019 at 8:40 AM Matthew Weber
<matthew.weber at rockwellcollins.com> wrote:
>
> Kevin,
>
>
> On Thu, Feb 7, 2019 at 4:36 PM Kevin Hilman <khilman at baylibre.com> wrote:
> >
> > From https://fluentbit.io/:
> >
> >   Fluent Bit is an open source and multi-platform Log Processor and
> >   Forwarder which allows you to collect data/logs from different
> >   sources, unify and send them to multiple destinations.
> >
>
> Thanks for sending the patch, see a few comments below.

Sorry keyboard shortcuts sent my email early.  More below.

>
> > Signed-off-by: Kevin Hilman <khilman at baylibre.com>
> > ---
> >  package/Config.in                |  1 +
> >  package/fluent-bit/Config.in     | 10 ++++++++++
> >  package/fluent-bit/fluent-bit.mk | 23 +++++++++++++++++++++++
> >  3 files changed, 34 insertions(+)
> >  create mode 100644 package/fluent-bit/Config.in
> >  create mode 100644 package/fluent-bit/fluent-bit.mk
> >
> > diff --git a/package/Config.in b/package/Config.in
> > index 29862c478c5a..ffee39127d5a 100644
> > --- a/package/Config.in
> > +++ b/package/Config.in
> > @@ -1445,6 +1445,7 @@ endmenu
> >
> >  menu "Logging"
> >         source "package/eventlog/Config.in"
> > +       source "package/fluent-bit/Config.in"
> >         source "package/glog/Config.in"
> >         source "package/liblog4c-localtime/Config.in"
> >         source "package/liblogging/Config.in"
> > diff --git a/package/fluent-bit/Config.in b/package/fluent-bit/Config.in
> > new file mode 100644
> > index 000000000000..f04bad1d8324
> > --- /dev/null
> > +++ b/package/fluent-bit/Config.in
> > @@ -0,0 +1,10 @@
> > +config BR2_PACKAGE_FLUENT_BIT
> > +       bool "fluent-bit"
> > +       depends on BR2_INSTALL_LIBSTDCPP
>
> Looks like some architectural limitations? (x86 / ARM)
> https://docs.fluentbit.io/manual/installation/requirements
>
> You could also run a ./util/test-pkg build to see if there are any std
> library limitations with musl/uclibc/glibc.  To do that you create a
> new file with your BR2_PACKAGE_FLUENT_BIT=y and then call the script
> with that file like the following.
> ./utils/test-pkg -d <build-test-dir> -c <cfg_file> -a
>
> > +       help
> > +         Fluent Bit is an open source and multi-platform Log
> > +         processor and forwarder which allows you to collect
> > +         data/logs from different sources, unify and send them to
> > +         multiple destinations.
> > +
> > +         http://fluentbit.io
> > diff --git a/package/fluent-bit/fluent-bit.mk b/package/fluent-bit/fluent-bit.mk
> > new file mode 100644
> > index 000000000000..96d0a5eaad27
> > --- /dev/null
> > +++ b/package/fluent-bit/fluent-bit.mk
> > @@ -0,0 +1,23 @@
> > +################################################################################
> > +#
> > +# fluent
> > +#
> > +################################################################################
> > +
> > +FLUENT_BIT_VERSION=v1.0.4
> > +FLUENT_BIT_SITE=https://github.com/fluent/fluent-bit.git
> > +FLUENT_BIT_SITE_METHOD=git
> > +FLUENT_BIT_INSTALL_STAGING = YES
>
> What is used from staging?
>
> > +FLUENT_BIT_DEPENDENCIES = zlib
>
> You'll need to add a select in your Config.in after your depends.
>

select BR2_PACKAGE_ZLIB

>
> > +
> > +# Disable LuaJIT and filter_lua support
> > +FLUENT_BIT_CONF_OPTS += -DFLB_LUAJIT=OFF -DFLB_FILTER_LUA=OFF
> > +
> > +# Disable Library and examples
> > +FLUENT_BIT_CONF_OPTS += -DFLB_SHARED_LIB=OFF -DBUILD_SHARED_LIBS=OFF
> > +FLUENT_BIT_CONF_OPTS += -DFLB_EXAMPLES=OFF

Based on disabling the libraries, is the FLUENT_BIT_INSTALL_STAGING =
YES required?

Thanks!

Matt



More information about the buildroot mailing list