[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
43/108: gnu: Add fuse3.
From: |
guix-commits |
Subject: |
43/108: gnu: Add fuse3. |
Date: |
Sat, 25 Apr 2020 15:22:48 -0400 (EDT) |
kkebreau pushed a commit to branch wip-gnome3.36
in repository guix.
commit 17c8e9132832e3ac9ce2587c458113909c55c674
Author: Kei Kebreau <address@hidden>
AuthorDate: Sun Apr 19 12:25:46 2020 -0400
gnu: Add fuse3.
* gnu/packages/linux.scm (fuse3): New variable.
---
gnu/packages/linux.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 6315183..36d5b9f 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -43,6 +43,7 @@
;;; Copyright © 2020 Chris Marusich <address@hidden>
;;; Copyright © 2020 Vincent Legoll <address@hidden>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <address@hidden>
+;;; Copyright © 2020 Kei Kebreau <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2506,6 +2507,67 @@ user-space processes.")
(license (list license:lgpl2.1 ;library
license:gpl2+)))) ;command-line utilities
+(define-public fuse3
+ (package (inherit fuse)
+ (name "fuse3")
+ (version "3.9.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"https://github.com/libfuse/libfuse/releases/"
+ "download/fuse-" version
+ "/fuse-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0ig6kgw8bplgi24fkkfnk90bhvhhm4r2b0pb1dxmp8vbqvbczbqv"))))
+ (build-system meson-build-system)
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("which" ,which)))
+ (arguments
+ `(#:tests? #f ; all tests are skipped in the build environment
+ ,@(substitute-keyword-arguments (package-arguments fuse)
+ ((#:configure-flags _)
+ ``(,(string-append "-Dudevrulesdir="
+ (assoc-ref %outputs "out")
+ "/lib/udev/rules.d")
+ ;; Don't set owner and setuid bits on installed files
+ "-Duseroot=false"))
+ ((#:phases phases)
+ ;; The old 'set-file-names phase does not work for fuse3, and
should
+ ;; be placed directly after the 'unpack phase to work with the
+ ;; meson-build-system.
+ `(modify-phases (alist-delete 'set-file-names ,phases)
+ (add-after 'unpack 'pre-configure
+ (lambda* (#:key inputs outputs #: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)
+ (string-append (assoc-ref inputs "util-linux")
+ "/bin/" maybe-u "mount")))
+ (substitute* "util/mount.fuse.c"
+ (("/bin/sh") (which "sh")))
+ (substitute* "test/util.py"
+ (("'which'") (string-append "'" (which "which") "'")))
+ (substitute* "util/install_helper.sh"
+ (("\\$\\{DESTDIR\\}/etc/init.d")
+ (string-append (assoc-ref outputs "out") "/etc/init.d")))
+
+ ;; 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\"'"))
+ (setenv "MOUNT_FUSE_PATH"
+ (string-append (assoc-ref outputs "out") "/sbin"))
+
+ #t))
+ (replace 'check
+ (lambda _
+ (invoke "python3" "-m" "pytest" "test/"))))))))))
+
(define-public unionfs-fuse
(package
(name "unionfs-fuse")
- 21/108: gnu: libchamplain: Update to 0.12.20., (continued)
- 21/108: gnu: libchamplain: Update to 0.12.20., guix-commits, 2020/04/25
- 13/108: gnu: cogl: Update to 1.22.6., guix-commits, 2020/04/25
- 14/108: gnu: clutter: Update to 1.26.4., guix-commits, 2020/04/25
- 24/108: gnu: gnome-menus: Update to 3.36.0., guix-commits, 2020/04/25
- 26/108: gnu: python-pyatspi: Update to 2.36.0., guix-commits, 2020/04/25
- 28/108: gnu: gcr: Update to 3.36.0., guix-commits, 2020/04/25
- 32/108: gnu: gtk-vnc: Update to 1.0.0., guix-commits, 2020/04/25
- 40/108: gnu: yelp-xsl: Update to 3.36.0., guix-commits, 2020/04/25
- 29/108: gnu: evolution-data-server: Update to 3.36.1., guix-commits, 2020/04/25
- 42/108: gnu: yelp: Update to 3.36.0., guix-commits, 2020/04/25
- 43/108: gnu: Add fuse3.,
guix-commits <=
- 44/108: gnu: libgdata: Update to 0.17.12., guix-commits, 2020/04/25
- 31/108: gnu: evolution: Update to 3.36.1., guix-commits, 2020/04/25
- 51/108: gnu: gnome-color-manager: Update to 3.36.0., guix-commits, 2020/04/25
- 34/108: gnu: gnome-bluetooth: Update to 3.34.1., guix-commits, 2020/04/25
- 46/108: gnu: nautilus: Update to 3.36.1.1., guix-commits, 2020/04/25
- 49/108: gnu: pipewire: Update to 0.3.2., guix-commits, 2020/04/25
- 54/108: gnu: network-manager-applet: Update to 1.16.0., guix-commits, 2020/04/25
- 41/108: gnu: dconf: Update to 0.36.0., guix-commits, 2020/04/25
- 48/108: gnu: wayland-protocols: Update to 1.20., guix-commits, 2020/04/25
- 53/108: gnu: libnma: Update to 1.8.28., guix-commits, 2020/04/25