Yocto Meta Virtualization
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH v2] conmon: compile with journald support if systemd is enabled
@ 2020-01-27 21:48 Stefan Agner
  2020-01-29 15:39 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Agner @ 2020-01-27 21:48 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Stefan Agner

From: Stefan Agner <stefan.agner@toradex.com>

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).

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
---
 recipes-containers/conmon/conmon_2.0.9.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-containers/conmon/conmon_2.0.9.bb b/recipes-containers/conmon/conmon_2.0.9.bb
index fc76f15..af7847b 100644
--- a/recipes-containers/conmon/conmon_2.0.9.bb
+++ b/recipes-containers/conmon/conmon_2.0.9.bb
@@ -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
 }
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-29 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-27 21:48 [meta-virtualization][PATCH v2] conmon: compile with journald support if systemd is enabled Stefan Agner
2020-01-29 15:39 ` Bruce Ashfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox