Skip to contentSkip to conversation

conmon: compile with journald support if systemd is enabled

PATCH In review Stefan Agner 2 participants 2 messages Jan 27, 2020 – Jan 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 conmon: compile with journald support if systemd is enabled

From: Stefan Agner <[email protected]>

Currently conman is compiled without journald support which leads to this error message when trying to use it (e.g. --log-driver=journald with podman):
[conmon:e] Include journald in compilation path to log to systemd journal

Make sure to build with journald backend compiled-in when systemd is in distro features by adding systemd to DEPENDS (through PACKAGECONFIG).

---
 recipes-containers/conmon/conmon_2.0.9.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-containers/conmon/conmon_2.0.9.bb +3 -0
index fc76f15..af7847b 100644
@@ -20,6 +20,9 @@ inherit pkgconfig
 
 EXTRA_OEMAKE = "PREFIX=${prefix} BINDIR=${bindir} LIBEXECDIR=${libexecdir}"
 
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+PACKAGECONFIG[systemd] = ",,systemd"
+
 do_install() {
     oe_runmake 'DESTDIR=${D}' install
 }
Signature · 1 line
2.17.1
#1 lore raw

merged.

Bruce

In message: [meta-virtualization][PATCH v2] conmon: compile with journald support if systemd is enabled

Quoted 34 lines · on 27/01/2020 Stefan Agner wrote:

From: Stefan Agner <[email protected]>

Currently conman is compiled without journald support which leads to this error message when trying to use it (e.g. --log-driver=journald with podman):
[conmon:e] Include journald in compilation path to log to systemd journal

Make sure to build with journald backend compiled-in when systemd is in distro features by adding systemd to DEPENDS (through PACKAGECONFIG).

---
 recipes-containers/conmon/conmon_2.0.9.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-containers/conmon/conmon_2.0.9.bb +3 -0
index fc76f15..af7847b 100644
@@ -20,6 +20,9 @@ inherit pkgconfig
 
 EXTRA_OEMAKE = "PREFIX=${prefix} BINDIR=${bindir} LIBEXECDIR=${libexecdir}"
 
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
+PACKAGECONFIG[systemd] = ",,systemd"
+
 do_install() {
     oe_runmake 'DESTDIR=${D}' install
 }
Signature · 1 line
2.17.1