conmon: compile with journald support if systemd is enabled
PATCH 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
@@ -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
Quoted 21 lines · Stefan Agner
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 journalMake 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 <[email protected]>--- recipes-containers/conmon/conmon_2.0.9.bb | 3 +++ 1 file changed, 3 insertions(+)recipes-containers/conmon/conmon_2.0.9.bb +0
-0
recipes-containers/conmon/conmon_2.0.9.bb inherit pkgconfig · line 23
Quoted 4 lines
recipes-containers/conmon/conmon_2.0.9.bb +1
-0@@ -20,6 +20,9 @@ inherit pkgconfig EXTRA_OEMAKE = "PREFIX=${prefix} BINDIR=${bindir} LIBEXECDIR=${libexecdir}" +PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
We should still make this something that can be easily overridden, i.e. ?= for the default PACKAGECONFIG.
Bruce
Quoted 9 lines
recipes-containers/conmon/conmon_2.0.9.bb +2
-1+PACKAGECONFIG[systemd] = ",,systemd" + do_install() { oe_runmake 'DESTDIR=${D}' install } --2.17.1
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II