[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
49/75: gnu: Add fuse-3.
From: |
guix-commits |
Subject: |
49/75: gnu: Add fuse-3. |
Date: |
Mon, 27 Sep 2021 07:17:26 -0400 (EDT) |
mothacehe pushed a commit to branch wip-gnome40
in repository guix.
commit 3d7016f2906ae6a7946a83a1c1f41ac04cbd2858
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Sun Sep 26 07:27:05 2021 +0000
gnu: Add fuse-3.
* gnu/packages/linux.scm (fuse-3): New variable.
---
gnu/packages/linux.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b771f65..a919183 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3377,6 +3377,66 @@ user-space processes.")
(license (list license:lgpl2.1 ;library
license:gpl2+)))) ;command-line utilities
+(define-public fuse-3
+ (package
+ (inherit fuse)
+ (name "fuse")
+ (version "3.10.5")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://github.com/libfuse/libfuse/releases/"
+ "download/fuse-" version
+ "/fuse-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0rlnnsiw614qcmgy8xz67044gqc1pbvvf2yxjv44lh27bm487qmj"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:configure-flags
+ ,#~(list
+ (string-append "-Dudevrulesdir=" #$output "/udev/rules.d")
+ "-Duseroot=false")
+ #:tests? #f
+ #:phases
+ ,#~(modify-phases %standard-phases
+ (add-after 'unpack 'set-file-names
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; libfuse calls out to mount(8) and umount(8). Make sure
+ ;; it refers to the right ones.
+ (substitute* '("lib/mount_util.c")
+ (("/bin/(u?)mount" _ maybe-u)
+ (search-input-file inputs
+ (string-append "bin/"
+ maybe-u "mount"))))
+ (substitute* '("util/mount.fuse.c")
+ (("/bin/sh")
+ (search-input-file inputs "/bin/sh")))
+
+ ;; This hack leads libfuse to search for 'fusermount' in
+ ;; $PATH, where it may find a setuid-root binary, instead of
+ ;; trying solely $out/sbin/fusermount and failing because
+ ;; it's not setuid.
+ (substitute* "lib/meson.build"
+ (("-DFUSERMOUNT_DIR=[[:graph:]]+")
+ "-DFUSERMOUNT_DIR=\"/var/empty\"'"))))
+ (add-after 'unpack 'fix-install
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* '("util/meson.build")
+ (("install_helper.sh") "true"))
+ (substitute* '("util/meson.build")
+ (("fuseconf_path = .*")
+ "fuseconf_path = '/etc/fuse.conf'"))))
+ (add-before 'configure 'set-paths
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((dummy-init.d
+ (string-append (getcwd) "/etc/init.d")))
+ (setenv "MOUNT_FUSE_PATH"
+ (string-append #$output "/sbin"))
+ (setenv "UDEV_RULES_PATH"
+ (string-append #$output
+ "/lib/udev/rules.d"))))))))))
+
(define-public unionfs-fuse
(package
(name "unionfs-fuse")
- 19/75: gnu: libgweather: Update to 40.0., (continued)
- 19/75: gnu: libgweather: Update to 40.0., guix-commits, 2021/09/27
- 55/75: gnu: gnome-keyring: Update to 40.0., guix-commits, 2021/09/27
- 57/75: gnu: Remove gnome-getting-started-docs., guix-commits, 2021/09/27
- 61/75: gnu: gdm: Update to 40.1., guix-commits, 2021/09/27
- 62/75: gnu: gnome-music: Update to 40.1.1., guix-commits, 2021/09/27
- 48/75: gnu: mutter: Update to 40.5., guix-commits, 2021/09/27
- 65/75: gnu: gnome: Add gnome-music and gnome-photo., guix-commits, 2021/09/27
- 72/75: gnu: gnome-tweaks: Update to 40.0., guix-commits, 2021/09/27
- 75/75: gnu: gnome-music: Add gst-plugins-good., guix-commits, 2021/09/27
- 56/75: gnu: gnome-color-manager: Update to 3.36.0., guix-commits, 2021/09/27
- 49/75: gnu: Add fuse-3.,
guix-commits <=
- 54/75: gnu: gnome-settings-daemon: Update to 40.0.1., guix-commits, 2021/09/27
- 60/75: gnu: accountsservice: Update to 0.6.55., guix-commits, 2021/09/27
- 58/75: gnu: gnome-initial-setup: Update to 40.4., guix-commits, 2021/09/27
- 59/75: gnu: gnome-control-center: Update to 40.1., guix-commits, 2021/09/27
- 64/75: gnu: gnome-photos: Update to 40.0., guix-commits, 2021/09/27
- 71/75: gnu: gnome-dictionary: Update to 40.0., guix-commits, 2021/09/27
- 74/75: gnu: gnome: Add tracker-miners., guix-commits, 2021/09/27
- 46/75: gnu: eog-plugins: Update to 3.26.7., guix-commits, 2021/09/27
- 51/75: gnu: libgdata: Update to 0.18.1., guix-commits, 2021/09/27
- 47/75: gnu: gsettings-desktop-schemas: Update to 40.0., guix-commits, 2021/09/27