Skip to contentSkip to conversation

syslog-ng: fix build without json

PATCH In review Joe Slater 2 participants 2 messages Jun 18, 2018

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

PATCH v3 1/1 syslog-ng: fix build without json

Remove configurations requiring json from target.

---
 meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 7 +++++++
 1 file changed, 7 insertions(+)
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +7 -0
index a0ae7bd..417e8c6 100644
@@ -80,6 +80,13 @@ do_install_append() {
     # Remove /var/run as it is created on startup
     rm -rf ${D}${localstatedir}/run
 
+    # If json is not supported, remove certain conf files.
+    if ! ${@bb.utils.contains('PACKAGECONFIG','json','true','false',d)} ; then
+        for f in cim elasticsearch ewmm graylog2 loggly logmatic ; do
+            rm -rf ${D}${datadir}/${BPN}/include/scl/$f
+        done
+    fi
+
     # support for systemd
     if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
         install -d ${D}${systemd_unitdir}/system/
Signature · 1 line
2.7.4
#1 lore raw
Quoted 13 lines · Joe Slater

Remove configurations requiring json from target.

---
 meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 7 +++++++
 1 file changed, 7 insertions(+)
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +0 -0
index a0ae7bd..417e8c6 100644

meta-oe/recipes-support/syslog-ng/syslog-ng.inc do_install_append() { · line 89

Quoted 10 lines
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +7 -0
@@ -80,6 +80,13 @@ do_install_append() {
     # Remove /var/run as it is created on startup
     rm -rf ${D}${localstatedir}/run
 
+    # If json is not supported, remove certain conf files.
+    if ! ${@bb.utils.contains('PACKAGECONFIG','json','true','false',d)} ; then
+        for f in cim elasticsearch ewmm graylog2 loggly logmatic ; do
+            rm -rf ${D}${datadir}/${BPN}/include/scl/$f
+        done
+    fi
+

package them into a separate package and let that package rdep on json

Quoted 11 lines
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +0 -1
     # support for systemd
     if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
         install -d ${D}${systemd_unitdir}/system/
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel