[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
197/295: gnu: fuse: Update package definition.
From: |
guix-commits |
Subject: |
197/295: gnu: fuse: Update package definition. |
Date: |
Mon, 27 Jul 2020 06:26:10 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 20662d3da16b4fa23ed4cdaaf4531771c8916d3a
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Sat Jul 4 07:05:52 2020 -0400
gnu: fuse: Update package definition.
* gnu/packages/linux.scm (fuse) [version]: Update to 3.9.2.
[source]<origin>[method]: Change from url-fetch to git-fetch.
[build-system]: Change from gnu to meson.
[arguments]: Modify inaccordance with build-system.
[native-inputs]: Add pkg-config.
[inputs]: Add bash, eudev and libiconv.
[synopsis]: Modify.
[description]: Modify.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/linux.scm | 103 +++++++++++++++++++++++++------------------------
1 file changed, 52 insertions(+), 51 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index cadfd18..21d0e55 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2607,64 +2607,65 @@ processes currently causing I/O.")
(define-public fuse
(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)))
+ (version "3.9.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/libfuse/libfuse.git")
+ (commit (string-append name "-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "10xsbly7rv895c9zv4fqmnrxbdc0kd1qhlk75x4m9cv95f93k843"))))
+ (build-system meson-build-system)
(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"))
+ `(#:tests? #f ; FIX-ME: Fails with wrong commands
+ #:configure-flags
+ (list
+ (string-append "-Dudevrulesdir="
+ (assoc-ref %outputs "out")
+ "/lib/udev/rules.d")
+ "-Duseroot=false")
#:phases
(modify-phases %standard-phases
- (add-before 'build 'set-file-names
+ (add-after 'unpack 'patch-program-references
(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")
+ (substitute* "lib/mount.c"
+ (("/bin/mount")
+ (string-append (assoc-ref inputs "util-linux") "/bin/mount"))
+ (("/bin/umount")
+ (string-append (assoc-ref inputs "util-linux") "/bin/umount")))
+ (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\\\""))
+ (string-append (assoc-ref inputs "bash") "/bin/sh")))
+ #t))
+ (add-after 'unpack 'patch-install-dir
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "util/install_helper.sh"
+ (("\\$\\{DESTDIR\\}/etc/init.d/fuse3")
+ (string-append (assoc-ref outputs "out") "/etc/init.d/fuse3")))
#t)))))
- (supported-systems (delete "i586-gnu" %supported-systems))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("bash" ,bash)
+ ("eudev" ,eudev)
+ ("libiconv" ,libiconv)
+ ("util-linux" ,util-linux)))
+ (synopsis "Filesystem in Userspace")
+ (description "FUSE is an interface for userspace programs to export a
+filesystem to the Linux kernel. The FUSE project consists of two components:
+the fuse kernel module (maintained in the regular kernel repositories) and the
+libfuse userspace library (maintained in this repository). Libfuse provides
the
+reference implementation for communicating with the FUSE kernel module.")
(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
+ (license
+ (list
+ ;; Headers and Libraries.
+ license:lgpl2.1
+ ;; Others.
+ license:gpl2+))))
(define-public unionfs-fuse
(package
- 176/295: gnu: Add lksctp-tools., (continued)
- 176/295: gnu: Add lksctp-tools., guix-commits, 2020/07/27
- 177/295: gnu: Add srt., guix-commits, 2020/07/27
- 172/295: gnu: Add mjpegtools., guix-commits, 2020/07/27
- 173/295: gnu: Add libofa., guix-commits, 2020/07/27
- 183/295: gnu: Add wildmidi., guix-commits, 2020/07/27
- 181/295: gnu: Add vo-aacenc., guix-commits, 2020/07/27
- 175/295: gnu: Add tinyalsa., guix-commits, 2020/07/27
- 187/295: gnu: Add libnice., guix-commits, 2020/07/27
- 189/295: gnu: gtk+-2: Update package definition., guix-commits, 2020/07/27
- 194/295: gnu: gtksourceview: Update package definition., guix-commits, 2020/07/27
- 197/295: gnu: fuse: Update package definition.,
guix-commits <=
- 199/295: gnu: gvfs: Update package definition., guix-commits, 2020/07/27
- 200/295: gnu: Add openni2., guix-commits, 2020/07/27
- 201/295: gnu: Add opensles., guix-commits, 2020/07/27
- 202/295: gnu: gst-plugins-bad: Update package definition., guix-commits, 2020/07/27
- 203/295: gnu: gst-plugins-ugly: Update package definition., guix-commits, 2020/07/27
- 214/295: gnu: Add rust-float-cmp@0.6.0., guix-commits, 2020/07/27
- 215/295: gnu: Add rust-serial-test-derive@0.4.0., guix-commits, 2020/07/27
- 204/295: gnu: gst-libav: Update package definition., guix-commits, 2020/07/27
- 216/295: gnu: Add rust-serial-test@0.4.0., guix-commits, 2020/07/27
- 219/295: gnu: Add rust-gio@0.8.0., guix-commits, 2020/07/27