All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2, 1/1] package/libvirt: fix libvirtd dependency
@ 2022-08-14  8:39 Fabrice Fontaine
  2022-08-14 10:02 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-08-14  8:39 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine, Jared Bents

Add a dependency to BR2_TOOLCHAIN_USES_GLIBC to fix the following
libvirtd build failure raised since commit
f81242ae4fb64ab85af5d38e70246222276552ae:

Makefile:575: *** libbsd is in the dependency chain of netcat-openbsd that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in.  Stop.

BR2_TOOLCHAIN_USES_GLIBC is only needed by netcat-openbsd, but a
dependency on BR2_TOOLCHAIN_USES_GLIBC || !BR2_PACKAGE_NETCAT_OPENBSD
can't be added as it will create a circular dependency

An other option would be to revert
f81242ae4fb64ab85af5d38e70246222276552ae and to always mandate C++ even
if it is only needed by nmap-ncat

Fixes:
 - http://autobuild.buildroot.org/results/aada1d92df6cab0d01e27431b7b7483e3d165e79

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1 -> v2 (after review of Yann E. Morin):
 - Fix patch (rebase on top of current master)

 package/libvirt/Config.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/libvirt/Config.in b/package/libvirt/Config.in
index 5a6b067a0d..f24647bb2d 100644
--- a/package/libvirt/Config.in
+++ b/package/libvirt/Config.in
@@ -38,6 +38,7 @@ if BR2_PACKAGE_LIBVIRT
 config BR2_PACKAGE_LIBVIRT_DAEMON
 	bool "libvirtd"
 	default y
+	depends on BR2_TOOLCHAIN_USES_GLIBC # netcat-openbsd
 	select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	select BR2_PACKAGE_DNSMASQ
 	select BR2_PACKAGE_EBTABLES
@@ -50,6 +51,9 @@ config BR2_PACKAGE_LIBVIRT_DAEMON
 	  Build the libvirt daemon (libvirtd) otherwise build only the
 	  utility programs.
 
+comment "libvirtd needs a glibc toolchain"
+	depends on !BR2_TOOLCHAIN_USES_GLIBC
+
 # Stateful drivers are useful only when building the daemon.
 if BR2_PACKAGE_LIBVIRT_DAEMON
 
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v2, 1/1] package/libvirt: fix libvirtd dependency
  2022-08-14  8:39 [Buildroot] [PATCH v2, 1/1] package/libvirt: fix libvirtd dependency Fabrice Fontaine
@ 2022-08-14 10:02 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-14 10:02 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Jared Bents, buildroot

Hello Fabrice,

On Sun, 14 Aug 2022 10:39:49 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Add a dependency to BR2_TOOLCHAIN_USES_GLIBC to fix the following
> libvirtd build failure raised since commit
> f81242ae4fb64ab85af5d38e70246222276552ae:
> 
> Makefile:575: *** libbsd is in the dependency chain of netcat-openbsd that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in.  Stop.
> 
> BR2_TOOLCHAIN_USES_GLIBC is only needed by netcat-openbsd, but a
> dependency on BR2_TOOLCHAIN_USES_GLIBC || !BR2_PACKAGE_NETCAT_OPENBSD
> can't be added as it will create a circular dependency
> 
> An other option would be to revert
> f81242ae4fb64ab85af5d38e70246222276552ae and to always mandate C++ even
> if it is only needed by nmap-ncat

My opinion is that it would make more sense to always mandate C++.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-08-14 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-14  8:39 [Buildroot] [PATCH v2, 1/1] package/libvirt: fix libvirtd dependency Fabrice Fontaine
2022-08-14 10:02 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.