diff mbox series

[2/2] syslog-ng: Add an option to make awk optional.

Message ID 2f78e6bc74f8df296707f94a936ecc614606b29c.1780050236.git.alexander.v.yurkov@gmail.com
State New
Headers show
Series [1/2] syslog-ng: Add backport patches from syslog-ng. | expand

Commit Message

alexander.v.yurkov@gmail.com May 29, 2026, 12:09 p.m. UTC
From: Alexander Yurkov <alexander.v.yurkov@gmail.com>

Breaking change: Awk will now be turned off by default.
The change is introduced to avoid licensing issues: Syslog-ng is GPLv2,
gawk is GPLv3.

Signed-off-by: Alexander Yurkov <alexander.v.yurkov@gmail.com>
---
 meta-oe/recipes-support/syslog-ng/syslog-ng_4.11.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_4.11.0.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.11.0.bb
index 9c6f62856b..65cb8f7db2 100644
--- a/meta-oe/recipes-support/syslog-ng/syslog-ng_4.11.0.bb
+++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_4.11.0.bb
@@ -67,6 +67,7 @@  PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c,"
 PACKAGECONFIG[geoip] = "--enable-geoip,--disable-geoip,geoip,"
 PACKAGECONFIG[native] = "--enable-native,--disable-native,,"
 PACKAGECONFIG[examples] = "--enable-example-modules,--disable-example-modules,,"
+PACKAGECONFIG[scl-syslogconf-awk] = "--enable-scl-syslogconf-awk,--disable-scl-syslogconf-awk,,gawk"
 
 do_install:append() {
     install -d ${D}${sysconfdir}/${BPN}
@@ -108,7 +109,7 @@  do_install:append() {
 }
 
 FILES:${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools ${systemd_unitdir}/system/multi-user.target.wants/*"
-RDEPENDS:${PN} += "gawk ${@bb.utils.contains('PACKAGECONFIG','json','${PN}-jconf','',d)}"
+RDEPENDS:${PN} += "${@bb.utils.contains('PACKAGECONFIG','json','${PN}-jconf','',d)}"
 
 FILES:${PN}-jconf += " \
 ${datadir}/${BPN}/include/scl/cim \