summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorbernhardkaindl <43588962+bernhardkaindl@users.noreply.github.com>2021-09-26 10:24:30 +0200
committerGitHub <noreply@github.com>2021-09-26 10:24:30 +0200
commitc411779c51a812e6fa0e882fc1d942e1ec75413a (patch)
tree5b354b3c08e94774756a8e29ce1d61f8eee89ff1 /var
parent17857083b09176c9c067a8ee6ed8f04d06385a59 (diff)
downloadspack-c411779c51a812e6fa0e882fc1d942e1ec75413a.tar.gz
spack-c411779c51a812e6fa0e882fc1d942e1ec75413a.tar.bz2
spack-c411779c51a812e6fa0e882fc1d942e1ec75413a.tar.xz
spack-c411779c51a812e6fa0e882fc1d942e1ec75413a.zip
libfuse: Fix build when meson doesn't get host's udev pkg (#26147)
Despite the patch disabling installation of rules, meson's setup stage looks up the udev package to get `/lib/udev/rules.d`, but as spack has no `systemd/udev` package, it would fail to build. Fix such builds by passing `-Dudevrulesdir` and bump version to 3.10.5
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libfuse/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libfuse/package.py b/var/spack/repos/builtin/packages/libfuse/package.py
index 4f69d2bdcd..90577dba96 100644
--- a/var/spack/repos/builtin/packages/libfuse/package.py
+++ b/var/spack/repos/builtin/packages/libfuse/package.py
@@ -15,6 +15,7 @@ class Libfuse(MesonPackage):
homepage = "https://github.com/libfuse/libfuse"
url = "https://github.com/libfuse/libfuse/releases/download/fuse-2.9.9/fuse-2.9.9.tar.gz"
+ version('3.10.5', sha256='e73f75e58da59a0e333d337c105093c496c0fd7356ef3a5a540f560697c9c4e6')
version('3.10.4', sha256='bfcb2520fd83db29e9fefd57d3abd5285f38ad484739aeee8e03fbec9b2d984a')
version('3.10.3', sha256='c32527782cef620df58b162aa29901d1fb13253b029375d5860a2253a810344e')
version('3.10.2', sha256='a16f93cc083264afd0d2958a0dc88f24c6c5d40a9f3842c645b1909e13edb75f')
@@ -60,6 +61,13 @@ class Libfuse(MesonPackage):
else:
args.append('-Duseroot=false')
+ if '~system_install' in self.spec:
+ # Fix meson's setup if meson does not have the host system's udev package:
+ args.append('-Dudevrulesdir={0}'.format(self.prefix.etc.rules.d))
+ else:
+ # Likewise, but with +system_install, it may install to /lib/udev/rules.d:
+ args.append('-Dudevrulesdir={0}'.format('/lib/udev/rules.d'))
+
return args
# Before libfuse 3.x this was an autotools package