Skip to contentSkip to conversation

package: add new package: fluent-bit

PATCH New Kevin Hilman 2 participants 3 messages Feb 7, 2019 – Feb 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package: add new package: fluent-bit

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.

---
 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
package/Config.in +1 -0
index 29862c478c5a..ffee39127d5a 100644
@@ -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"
package/fluent-bit/Config.in new file +10 -0
new file mode 100644
index 000000000000..f04bad1d8324
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_FLUENT_BIT
+	bool "fluent-bit"
+	depends on BR2_INSTALL_LIBSTDCPP
+	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
package/fluent-bit/fluent-bit.mk new file +23 -0
new file mode 100644
index 000000000000..96d0a5eaad27
@@ -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
+FLUENT_BIT_DEPENDENCIES = 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
+
+# Ensure that uses of autoconf behave with cross-compliation
+FLUENT_BIT_CONF_OPTS += -DGNU_HOST=$(GNU_TARGET_NAME)
+
+$(eval $(cmake-package))
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package: add new package: fluent-bit

Kevin,

Quoted 7 lines · Kevin Hilman

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.

Quoted 27 lines
---
 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
package/Config.in +1 -0
index 29862c478c5a..ffee39127d5a 100644
@@ -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"
package/fluent-bit/Config.in new file +0 -0
new file mode 100644
index 000000000000..f04bad1d8324

package/fluent-bit/Config.in line 3

Quoted 3 lines
package/fluent-bit/Config.in new file +3 -0
@@ -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

Quoted 13 lines
package/fluent-bit/Config.in new file +7 -0
+       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
package/fluent-bit/fluent-bit.mk new file +0 -0
new file mode 100644
index 000000000000..96d0a5eaad27

package/fluent-bit/fluent-bit.mk line 10

Quoted 10 lines
package/fluent-bit/fluent-bit.mk new file +10 -0
@@ -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?

package/fluent-bit/fluent-bit.mk line 11

Quoted 1 line
package/fluent-bit/fluent-bit.mk new file +1 -0
+FLUENT_BIT_DEPENDENCIES = zlib

You'll need to add a select in your Config.in after your depends.

Quoted 19 lines
package/fluent-bit/fluent-bit.mk new file +12 -1
+
+# 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
+
+# Ensure that uses of autoconf behave with cross-compliation
+FLUENT_BIT_CONF_OPTS += -DGNU_HOST=$(GNU_TARGET_NAME)
+
+$(eval $(cmake-package))
--

2.20.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 23 lines
Matthew Weber | Pr. Software Engineer | Commercial Avionics

COLLINS AEROSPACE

400 Collins Road NE, Cedar Rapids, Iowa 52498, USA

Tel: +1 319 295 7349 | FAX: +1 319 263 6099

matthew.weber at collins.com | collinsaerospace.com



CONFIDENTIALITY WARNING: This message may contain proprietary and/or
privileged information of Collins Aerospace and its affiliated
companies. If you are not the intended recipient, please 1) Do not
disclose, copy, distribute or use this message or its contents. 2)
Advise the sender by return email. 3) Delete all copies (including all
attachments) from your computer. Your cooperation is greatly
appreciated.


Any export restricted material should be shared using my
matthew.weber at corp.rockwellcollins.com address.
#2 lore raw

PATCH 1/1 package: add new package: fluent-bit

Kevin,

Quoted 6 lines · Matthew Weber

Kevin,

Quoted 1 line · Kevin Hilman
Quoted 8 lines
Quoted 6 lines

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.

Quoted 67 lines
Quoted 28 lines
---
 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
package/Config.in +1 -0
index 29862c478c5a..ffee39127d5a 100644
@@ -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"
package/fluent-bit/Config.in new file +0 -0
new file mode 100644
index 000000000000..f04bad1d8324

package/fluent-bit/Config.in line 3

Quoted 3 lines
package/fluent-bit/Config.in new file +3 -0
@@ -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

Quoted 13 lines
package/fluent-bit/Config.in new file +7 -0
+       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
package/fluent-bit/fluent-bit.mk new file +0 -0
new file mode 100644
index 000000000000..96d0a5eaad27

package/fluent-bit/fluent-bit.mk line 10

Quoted 10 lines
package/fluent-bit/fluent-bit.mk new file +10 -0
@@ -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?

Quoted 4 lines

package/fluent-bit/fluent-bit.mk line 11

Quoted 1 line
package/fluent-bit/fluent-bit.mk new file +1 -0
+FLUENT_BIT_DEPENDENCIES = zlib

You'll need to add a select in your Config.in after your depends.

select BR2_PACKAGE_ZLIB

Quoted 8 lines

package/fluent-bit/fluent-bit.mk line 18

Quoted 8 lines
package/fluent-bit/fluent-bit.mk new file +7 -0
+
+# 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