package/slirp: add libglib2 mandatory dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 11 Nov 2020 10:11:52 +0000 (11:11 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 11 Nov 2020 10:47:19 +0000 (11:47 +0100)
slirp depends on libglib2, don't update xen as it already depends on it

Fixes:
 - http://autobuild.buildroot.org/results/0b9cff1bc650876a6fff6102b2cb31dcdf4c5e8f

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/slirp/Config.in
package/slirp/slirp.mk

index 8f57c4fa6a6205dccc36f580b432b512a6b91185..38fd5277af37bd8b858bc8d0b7a7743a5d69f6b2 100644 (file)
@@ -1,5 +1,9 @@
 config BR2_PACKAGE_SLIRP
        bool "slirp"
+       depends on BR2_USE_MMU # libglib2
+       depends on BR2_USE_WCHAR # libglib2
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
+       select BR2_PACKAGE_LIBGLIB2
        help
          libslirp is a user-mode networking library used by virtual
          machines, containers or various tools.
@@ -18,3 +22,7 @@ config BR2_PACKAGE_SLIRP
              around May 2009 which archived it in 2012
            - So we switched to
              https://gitlab.freedesktop.org/slirp/libslirp
+
+comment "slirp needs a toolchain w/ wchar, threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
index d046e0cf75f7f5e841f068eeb5c8ffaf1c6428a8..ed6d8855e55ea30ead7db672628acf10ecb752da 100644 (file)
@@ -12,5 +12,6 @@ SLIRP_SITE = https://elmarco.fedorapeople.org
 SLIRP_LICENSE = BSD-3-Clause
 SLIRP_LICENSE_FILES = COPYRIGHT
 SLIRP_INSTALL_STAGING = YES
+SLIRP_DEPENDENCIES = libglib2
 
 $(eval $(meson-package))