diff options
author | Mike Gilbert <floppym@gentoo.org> | 2024-07-05 11:14:33 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2024-07-05 11:15:14 -0400 |
commit | 5f3d40981d25130e09e0defb0841c2da3ccc595e (patch) | |
tree | d45b87c10a717d93937beea1230b015cf45eed59 /sys-apps | |
parent | sys-kernel/gentoo-kernel-bin: Bump to 5.10.221 (diff) | |
download | gentoo-5f3d40981d25130e09e0defb0841c2da3ccc595e.tar.gz gentoo-5f3d40981d25130e09e0defb0841c2da3ccc595e.tar.bz2 gentoo-5f3d40981d25130e09e0defb0841c2da3ccc595e.zip |
sys-apps/systemd: disable vmspawn on arches with no support
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/systemd/systemd-256.1-r3.ebuild | 9 | ||||
-rw-r--r-- | sys-apps/systemd/systemd-9999.ebuild | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/sys-apps/systemd/systemd-256.1-r3.ebuild b/sys-apps/systemd/systemd-256.1-r3.ebuild index 78f1f78f01df..8c37a752ba7f 100644 --- a/sys-apps/systemd/systemd-256.1-r3.ebuild +++ b/sys-apps/systemd/systemd-256.1-r3.ebuild @@ -368,9 +368,16 @@ multilib_src_configure() { $(meson_native_true timesyncd) $(meson_native_true tmpfiles) $(meson_native_true vconsole) - $(meson_native_enabled vmspawn) ) + case $(tc-arch) in + amd64|arm|arm64|loong|ppc|ppc64|riscv|s390|x86) + # src/vmspawn/vmspawn-util.h: QEMU_MACHINE_TYPE + myconf+=( $(meson_native_enabled vmspawn) ) ;; + *) + myconf+=( -Dvmspawn=disabled ) ;; + esac + meson_src_configure "${myconf[@]}" } diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild index 78f1f78f01df..8c37a752ba7f 100644 --- a/sys-apps/systemd/systemd-9999.ebuild +++ b/sys-apps/systemd/systemd-9999.ebuild @@ -368,9 +368,16 @@ multilib_src_configure() { $(meson_native_true timesyncd) $(meson_native_true tmpfiles) $(meson_native_true vconsole) - $(meson_native_enabled vmspawn) ) + case $(tc-arch) in + amd64|arm|arm64|loong|ppc|ppc64|riscv|s390|x86) + # src/vmspawn/vmspawn-util.h: QEMU_MACHINE_TYPE + myconf+=( $(meson_native_enabled vmspawn) ) ;; + *) + myconf+=( -Dvmspawn=disabled ) ;; + esac + meson_src_configure "${myconf[@]}" } |