From b1ff64b8e8fbb8ad172e690eeba2b3df1d8b49fb Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 1 Mar 2026 20:37:08 +0100 Subject: [PATCH] package/libvirt: fix dependency of lxc support Buildroot commit ed12e2fbed3d4298ebff9da54fe56b91fa75c41e in 2021 added BR2_PACKAGE_LIBVIRT_LXC which selects BR2_PACKAGE_LXC but did not add the dependency !BR2_TOOLCHAIN_USES_UCLIBC which was added to lxc in 2019 by buildroot commit 63aad8a53e33e3fae4793e05662f47637e9e9bfc causing Kconfig warnings: WARNING: unmet direct dependencies detected for BR2_PACKAGE_LXC Depends on [n]: BR2_TOOLCHAIN_HAS_THREADS [=y] && BR2_USE_MMU [=y] && !BR2_STATIC_LIBS [=n] && BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 [=y] && BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 [=y] && !BR2_TOOLCHAIN_USES_UCLIBC [=y] Selected by [y]: - BR2_PACKAGE_LIBVIRT_LXC [=y] && BR2_PACKAGE_LIBVIRT [=y] && BR2_PACKAGE_LIBVIRT_DAEMON [=y] && BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 [=y] Signed-off-by: Bernd Kuhls Signed-off-by: Peter Korsgaard (cherry picked from commit 88d1fde405054b2f39a5a12531a3a50b32c254db) Signed-off-by: Thomas Perale --- package/libvirt/Config.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/libvirt/Config.in b/package/libvirt/Config.in index 5664f69dd8..0f73128d09 100644 --- a/package/libvirt/Config.in +++ b/package/libvirt/Config.in @@ -89,12 +89,14 @@ comment "qemu needs a toolchain with gcc >= 8" config BR2_PACKAGE_LIBVIRT_LXC bool "lxc" depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # lxc + depends on !BR2_TOOLCHAIN_USES_UCLIBC # lxc select BR2_PACKAGE_LXC help Linux Container support -comment "lxc needs a toolchain w/ gcc >= 4.7" - depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 +comment "lxc needs a glibc or musl toolchain w/ gcc >= 4.7" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \ + || BR2_TOOLCHAIN_USES_UCLIBC endif