[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
283/402: gnu: Add fuse@2.9.9.
From: |
guix-commits |
Subject: |
283/402: gnu: Add fuse@2.9.9. |
Date: |
Tue, 18 Aug 2020 16:48:03 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit be3744d86fb57b6bc5dae5fb567605127d591a22
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Wed Aug 5 15:27:26 2020 -0400
gnu: Add fuse@2.9.9.
* gnu/packages/linux.scm (fuse-legacy): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/linux.scm | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 3251205..c26984c 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2802,6 +2802,68 @@ reference implementation for communicating with the FUSE
kernel module.")
;; Others.
license:gpl2+))))
+(define-public fuse-legacy
+ (package
+ (name "fuse")
+ (version "2.9.9")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
"https://github.com/libfuse/libfuse/releases/"
+ "download/fuse-" version
+ "/fuse-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1ddlq6kzxilccgbvxjfx80jx6kamgw4sv49phks2zhlcc1frvrnh"))
+ (patches (search-patches "fuse-overlapping-headers.patch"))))
+ (build-system gnu-build-system)
+ (inputs `(("util-linux" ,util-linux)))
+ (arguments
+ '(#:configure-flags (list (string-append "MOUNT_FUSE_PATH="
+ (assoc-ref %outputs "out")
+ "/sbin")
+ (string-append "INIT_D_PATH="
+ (assoc-ref %outputs "out")
+ "/etc/init.d")
+
+ ;; The rule makes /dev/fuse 666.
+ (string-append "UDEV_RULES_PATH="
+ (assoc-ref %outputs "out")
+ "/lib/udev/rules.d"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build '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" "util/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")))
+
+ ;; 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/Makefile"
+ (("-DFUSERMOUNT_DIR=[[:graph:]]+")
+ "-DFUSERMOUNT_DIR=\\\"/var/empty\\\""))
+ #t)))))
+ (supported-systems (delete "i586-gnu" %supported-systems))
+ (home-page "https://github.com/libfuse/libfuse")
+ (synopsis "Support file systems implemented in user space")
+ (description
+ "As a consequence of its monolithic design, file system code for Linux
+normally goes into the kernel itself---which is not only a robustness issue,
+but also an impediment to system extensibility. FUSE, for \"file systems in
+user space\", is a kernel module and user-space library that tries to address
+part of this problem by allowing users to run file system implementations as
+user-space processes.")
+ (license (list license:lgpl2.1 ;library
+ license:gpl2+)))) ;command-line utilities
+
(define-public unionfs-fuse
(package
(name "unionfs-fuse")
- 246/402: gnu: gnome-boxes: Update package definition., (continued)
- 246/402: gnu: gnome-boxes: Update package definition., guix-commits, 2020/08/18
- 255/402: gnu: gnome-boxes: Fix home-page., guix-commits, 2020/08/18
- 264/402: gnu: rust-cssparser: Remove duplicate definition., guix-commits, 2020/08/18
- 265/402: gnu: rust-cssparser-macros@0.6.0: Fix reference to rust-quote., guix-commits, 2020/08/18
- 267/402: gnu: rust-serial-test-derive@0.4.0: Fix reference to rust-quote., guix-commits, 2020/08/18
- 269/402: gnu: rust-peg@0.5.7: Remove duplicate definition., guix-commits, 2020/08/18
- 276/402: gnu: rust-serial-test-derive@0.4.0: Fix reference to rust-syn., guix-commits, 2020/08/18
- 277/402: gnu: rust-rgb@0.8.20: Fix references to rust-bytemuck, rust-serde, rust-serde-json., guix-commits, 2020/08/18
- 279/402: gnu: gnome-desktop: Update package definition., guix-commits, 2020/08/18
- 282/402: gnu: gnome-getting-started-docs: Update package definition., guix-commits, 2020/08/18
- 283/402: gnu: Add fuse@2.9.9.,
guix-commits <=
- 286/402: gnu: malcontent: Update package definition., guix-commits, 2020/08/18
- 291/402: gnu: gnome-music: Update package definition., guix-commits, 2020/08/18
- 293/402: gnu: gnome-screenshot: Update package definition., guix-commits, 2020/08/18
- 296/402: gnu: gnome-shell-extensions: Update package definition., guix-commits, 2020/08/18
- 304/402: gnu: Add liblouis., guix-commits, 2020/08/18
- 305/402: gnu: Add liblouisutdml., guix-commits, 2020/08/18
- 306/402: gnu: Add latex2html., guix-commits, 2020/08/18
- 310/402: gnu: gst-editing-services: Update package definition., guix-commits, 2020/08/18
- 315/402: gnu: totem: Update package definition., guix-commits, 2020/08/18
- 313/402: gnu: libmusicbrainz: Propagate inputs., guix-commits, 2020/08/18