Skip to contentSkip to conversation

syslog-ng: fix build without json

PATCH Superseded Joe Slater 2 participants 2 messages May 30, 2018 – May 31, 2018

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Joe Slater

author
#0 lore raw

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

Remove configurations requiring json from target.

---
 meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +5 -0
index 771cdb1..a5e4e72 100644
@@ -83,6 +83,11 @@ do_install_append() {
     install -d ${D}/${localstatedir}/lib/${BPN}
     # Remove /var/run as it is created on startup
     rm -rf ${D}${localstatedir}/run
+
+    # If json is not supported, remove certain conf files.
+    if ${@oe.utils.conditional('PACKAGECONFIG','json','false','true',d)} ; then
+        rm -rf ${D}${datadir}/${BPN}/include/scl/{loggly,logmatic,cim,elasticsearch}
+    fi
 }
 
 FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 12 lines · Joe Slater

Remove configurations requiring json from target.

---
 meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +0 -0
index 771cdb1..a5e4e72 100644

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

Quoted 6 lines
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +3 -0
@@ -83,6 +83,11 @@ do_install_append() {
     install -d ${D}/${localstatedir}/lib/${BPN}
     # Remove /var/run as it is created on startup
     rm -rf ${D}${localstatedir}/run
+
+    # If json is not supported, remove certain conf files.
+    if ${@oe.utils.conditional('PACKAGECONFIG','json','false','true',d)} ; then

oe.utils.conditional() probably isn't the best way to test whether or not PACKAGECONFIG contains a particular value. Maybe try bb.utils.contains() instead?

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

Quoted 1 line
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +1 -0
+        rm -rf ${D}${datadir}/${BPN}/include/scl/{loggly,logmatic,cim,elasticsearch}

This kind of brace expansion is bash specific.

Quoted 12 lines
meta-oe/recipes-support/syslog-ng/syslog-ng.inc +1 -1
+    fi
 }
 
 FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools"
--

2.7.4

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