rofiles-fuse: Build using FUSE 3 if possible, falling back to FUSE 2

This adds build-time configuration logic to automatically detect
and switch between libfuse 2.x and 3.x.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Co-authored-by: Luca BRUNO <luca.bruno@coreos.com>
This commit is contained in:
Simon McVittieandLuca BRUNO authored and Luca BRUNO committed 2022-01-04 09:41:38 +00:00
1 parent 4d47733f98
commit 43859b58f6
4 files changed
+81 -6

No files matched your search

+13
View File
@@ -43,6 +43,19 @@ case "$ID" in
# Ubuntu package data:
# https://packages.ubuntu.com/source/impish/ostree
#
# Use libfuse3-dev unless otherwise specified
case " $* " in
(*\ libfuse-dev\ *)
;;
(*\ libfuse3-dev\ *)
;;
(*)
set -- "$@" libfuse3-dev
;;
esac
# TODO: fetch this list from the Debian packaging git repository?
# First construct a list of Build-Depends common to all