Skip to contentSkip to conversation

syslog-ng: disable mongodb

PATCH New Baruch Siach 3 participants 3 messages Apr 21, 2017 – Apr 22, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 syslog-ng: disable mongodb

libbson is a dependency of the mongo-c-driver that syslog-ng uses. Buildroot doesn't package mongo-c-driver so syslog-ng uses the bundled one. The bundled mongo-c-driver in turn may optionally use a bundled libbson. When Buildroot builds libbson mongo-c-driver detects that and does not configure its bundled libbson. This breaks the build of the syslog-ng mongodb module because it adds the bundled libbson to the headers search path.

Disable the mongodb module to avoid this issue.

Fixes:
http://autobuild.buildroot.net/results/843/84331e9a168d8bdf2cceca8e9e1480611c1ecaed/
http://autobuild.buildroot.net/results/b5b/b5bad64abbf5764faf2a7129a1a25ad75c34980b/
http://autobuild.buildroot.net/results/3c3/3c32f4eb7436da06f3fb59f928363959df2a5e86/

---
v2: Don't use bundled mongo-c-driver and libbson, just disable mongodb (Thomas P)

---
 package/syslog-ng/syslog-ng.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/syslog-ng/syslog-ng.mk +1 -1
index 192a52bafbd1..980c78357ea2 100644
@@ -13,7 +13,7 @@ SYSLOG_NG_DEPENDENCIES = host-bison host-flex host-pkgconf \
 # rabbit-mq needs -lrt
 SYSLOG_NG_CONF_ENV = LIBS=-lrt
 SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \
-	--disable-java --disable-java-modules
+	--disable-java --disable-java-modules --disable-mongodb
 
 # We override busybox's S01logging init script
 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 syslog-ng: disable mongodb

Quoted 36 lines · Baruch Siach

libbson is a dependency of the mongo-c-driver that syslog-ng uses. Buildroot doesn't package mongo-c-driver so syslog-ng uses the bundled one. The bundled mongo-c-driver in turn may optionally use a bundled libbson. When Buildroot builds libbson mongo-c-driver detects that and does not configure its bundled libbson. This breaks the build of the syslog-ng mongodb module because it adds the bundled libbson to the headers search path.

Disable the mongodb module to avoid this issue.

Fixes:
http://autobuild.buildroot.net/results/843/84331e9a168d8bdf2cceca8e9e1480611c1ecaed/
http://autobuild.buildroot.net/results/b5b/b5bad64abbf5764faf2a7129a1a25ad75c34980b/
http://autobuild.buildroot.net/results/3c3/3c32f4eb7436da06f3fb59f928363959df2a5e86/

---
v2: Don't use bundled mongo-c-driver and libbson, just disable mongodb (Thomas P)

---
 package/syslog-ng/syslog-ng.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/syslog-ng/syslog-ng.mk +1 -2
index 192a52bafbd1..980c78357ea2 100644
@@ -13,7 +13,7 @@ SYSLOG_NG_DEPENDENCIES = host-bison host-flex host-pkgconf \
 # rabbit-mq needs -lrt
 SYSLOG_NG_CONF_ENV = LIBS=-lrt
 SYSLOG_NG_CONF_OPTS = --disable-manpages --localstatedir=/var/run \
-       --disable-java --disable-java-modules
+       --disable-java --disable-java-modules --disable-mongodb
 
 # We override busybox's S01logging init script
 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
--
Quoted 2 lines

2.11.0

#2 lore raw

PATCH v2 1/1 syslog-ng: disable mongodb

In reply to Baruch Siach

Hello,

Quoted 14 lines · Baruch Siach

libbson is a dependency of the mongo-c-driver that syslog-ng uses. Buildroot doesn't package mongo-c-driver so syslog-ng uses the bundled one. The bundled mongo-c-driver in turn may optionally use a bundled libbson. When Buildroot builds libbson mongo-c-driver detects that and does not configure its bundled libbson. This breaks the build of the syslog-ng mongodb module because it adds the bundled libbson to the headers search path.

Disable the mongodb module to avoid this issue.

Fixes:
http://autobuild.buildroot.net/results/843/84331e9a168d8bdf2cceca8e9e1480611c1ecaed/
http://autobuild.buildroot.net/results/b5b/b5bad64abbf5764faf2a7129a1a25ad75c34980b/
http://autobuild.buildroot.net/results/3c3/3c32f4eb7436da06f3fb59f928363959df2a5e86/

Quoted 7 lines

---
v2: Don't use bundled mongo-c-driver and libbson, just disable mongodb (Thomas P)

---
 package/syslog-ng/syslog-ng.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com