package/libostree: libfuse is optional, not mandatory
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 9 Feb 2021 20:07:57 +0000 (21:07 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 9 Feb 2021 21:31:22 +0000 (22:31 +0100)
libfuse is optional since its addition in version 2016.2 with
https://github.com/ostreedev/ostree/commit/e9ccdd2d007801ef25cc7283188942d791889c27

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libostree/Config.in
package/libostree/libostree.mk

index 4a6ab5464fb0a4ef4a69016f4f921bff33279bed..14ae4da4c8eace6c7121bd4ef9709bdbaa89856e 100644 (file)
@@ -1,14 +1,12 @@
 config BR2_PACKAGE_LIBOSTREE
        bool "libostree"
        depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgpgme, libgpg-error
-       depends on !BR2_STATIC_LIBS # libfuse
        depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
        depends on BR2_USE_WCHAR # libglib2
-       depends on BR2_USE_MMU # e2fsprogs, libfuse, libglib2, libgpgme
+       depends on BR2_USE_MMU # e2fsprogs, libglib2, libgpgme
        # doesn't build with musl due to lack of TEMP_FAILURE_RETRY()
        depends on !BR2_TOOLCHAIN_USES_MUSL
        select BR2_PACKAGE_E2FSPROGS
-       select BR2_PACKAGE_LIBFUSE
        select BR2_PACKAGE_LIBGLIB2
        select BR2_PACKAGE_LIBGPG_ERROR
        select BR2_PACKAGE_LIBGPGME
index 9406e023bd1d8016693a771d1b3a1e280fffdb99..7c887ebee8192b694f30a1f532409350abe1590b 100644 (file)
@@ -10,7 +10,7 @@ LIBOSTREE_SITE = https://github.com/ostreedev/ostree/releases/download/v$(LIBOST
 
 LIBOSTREE_LICENSE = LGPL-2.0+
 LIBOSTREE_LICENSE_FILES = COPYING
-LIBOSTREE_DEPENDENCIES = e2fsprogs host-bison host-pkgconf libfuse libglib2 libgpg-error libgpgme xz
+LIBOSTREE_DEPENDENCIES = e2fsprogs host-bison host-pkgconf libglib2 libgpg-error libgpgme xz
 LIBOSTREE_INSTALL_STAGING = YES
 
 LIBOSTREE_CONF_ENV = \
@@ -69,6 +69,13 @@ else
 LIBOSTREE_CONF_OPTS += --without-libarchive
 endif
 
+ifeq ($(BR2_PACKAGE_LIBFUSE),y)
+LIBOSTREE_CONF_OPTS += --enable-rofiles-fuse
+LIBOSTREE_DEPENDENCIES += libfuse
+else
+LIBOSTREE_CONF_OPTS += --disable-rofiles-fuse
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
 LIBOSTREE_CONF_OPTS += --with-selinux
 LIBOSTREE_DEPENDENCIES += libselinux