[oe] [meta-oe][PATCH 1/1] syslog-ng: fix build without json

Joe Slater joe.slater at windriver.com
Wed May 30 17:18:10 UTC 2018


Remove configurations requiring json from target.

Signed-off-by: Joe Slater <joe.slater at windriver.com>
---
 meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
index 771cdb1..a5e4e72 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
@@ -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"
-- 
2.7.4




More information about the Openembedded-devel mailing list