summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/libfuse/package.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/libfuse/package.py b/var/spack/repos/builtin/packages/libfuse/package.py
index 5790b46cf8..a8242f97d2 100644
--- a/var/spack/repos/builtin/packages/libfuse/package.py
+++ b/var/spack/repos/builtin/packages/libfuse/package.py
@@ -32,11 +32,12 @@ class Libfuse(MesonPackage):
return "https://github.com/libfuse/libfuse/releases/download/fuse-{0}/fuse-{1}.tar.gz".format(version, version)
return "https://github.com/libfuse/libfuse/archive/refs/tags/fuse-{0}.tar.gz".format(version)
- variant('useroot', default=False, description="Use root privileges to make fusermount a setuid binary after installation")
- variant('system_install', default=False, description=(
+ variant('useroot', when='+utils', default=False, description="Use root privileges to make fusermount a setuid binary after installation")
+ variant('system_install', when='+utils', default=False, description=(
"Do not run the post-install script "
"which typically sets up udev rules and "
"and init script in /etc/init.d"))
+ variant('utils', default=True, description='Build and install helper and example programs.')
depends_on('autoconf', type='build', when='@:2')
depends_on('automake', type='build', when='@:2')
@@ -67,6 +68,13 @@ class Libfuse(MesonPackage):
def meson_args(self):
args = []
+ if '+utils' in self.spec:
+ args.append('-Dutils=true')
+ args.append('-Dexamples=true')
+ else:
+ args.append('-Dutils=false')
+ args.append('-Dexamples=false')
+
if '+useroot' in self.spec:
args.append('-Duseroot=true')
else: