Skip to contentSkip to conversation

lxc: Fix meson build issue

PATCH Applied Pawan 2 participants 2 messages Jul 10, 2024 – Jul 22, 2024

lore
Share & tools
lore

Pawan

author
#0 lore raw

PATCH 1/1 lxc: Fix meson build issue

Build is failing during do_configure stage for lxc as meson does not support --with-systemdsystemunitdir config parameter.

Error:
meson: error: unrecognized arguments: --with-systemdsystemunitdir=/etc/systemd/system/

Hence, use -Dsystemd-unitdir config parameter instead.

---
 recipes-containers/lxc/lxc_git.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
recipes-containers/lxc/lxc_git.bb +1 -2
index 09d5a05e..22ab80c9 100644
@@ -79,8 +79,7 @@ PACKAGECONFIG[apparmor] = "-Dapparmor=true,-Dapparmor=false,apparmor,apparmor"
 PACKAGECONFIG[templates] = ",,, ${PN}-templates"
 PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux,libselinux"
 PACKAGECONFIG[seccomp] ="-Dseccomp=true,-Dseccomp=false,libseccomp,libseccomp"
-# meson equiv for the unitdir found yet
-# PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd,"
+PACKAGECONFIG[systemd] = "-Dsystemd-unitdir=${sysconfdir}/systemd/system/, -Dsystemd-unitdir=, systemd,"
 PACKAGECONFIG[systemd] = "-Dinit-script=systemd,-Dinit-script=sysvinit,systemd,"
 
 # required by python3 to run setup.py
Signature · 1 line
2.25.1
#1 lore raw

In message: [meta-virtualization][master][PATCH] lxc: Fix meson build issue

Quoted 7 lines · on 10/07/2024 Pawan Badganchi via lists.yoctoproject.org wrote:

Build is failing during do_configure stage for lxc as meson does not support --with-systemdsystemunitdir config parameter.

Error:
meson: error: unrecognized arguments: --with-systemdsystemunitdir=/etc/systemd/system/

Hence, use -Dsystemd-unitdir config parameter instead.

merged to master-next

Bruce

Quoted 33 lines
---
 recipes-containers/lxc/lxc_git.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
recipes-containers/lxc/lxc_git.bb +1 -2
index 09d5a05e..22ab80c9 100644
@@ -79,8 +79,7 @@ PACKAGECONFIG[apparmor] = "-Dapparmor=true,-Dapparmor=false,apparmor,apparmor"
 PACKAGECONFIG[templates] = ",,, ${PN}-templates"
 PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux,libselinux"
 PACKAGECONFIG[seccomp] ="-Dseccomp=true,-Dseccomp=false,libseccomp,libseccomp"
-# meson equiv for the unitdir found yet
-# PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd,"
+PACKAGECONFIG[systemd] = "-Dsystemd-unitdir=${sysconfdir}/systemd/system/, -Dsystemd-unitdir=, systemd,"
 PACKAGECONFIG[systemd] = "-Dinit-script=systemd,-Dinit-script=sysvinit,systemd,"
 
 # required by python3 to run setup.py
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8834): https://lists.yoctoproject.org/g/meta-virtualization/message/8834
Mute This Topic: https://lists.yoctoproject.org/mt/107140196/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-