[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
31/31: gnu: fuse@2, fuse@3: Reverse inheritance.
From: |
guix-commits |
Subject: |
31/31: gnu: fuse@2, fuse@3: Reverse inheritance. |
Date: |
Sat, 29 Jul 2023 20:05:02 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 6b903e210462f7c1e428e0ded7e690d315e1f7a1
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 23 02:00:00 2023 +0200
gnu: fuse@2, fuse@3: Reverse inheritance.
* gnu/packages/linux.scm (fuse-2)[inherit]: From fuse.
[inputs, supported-systems, home-page, synopsis, description, license]:
…move these fields from here…
(fuse)
[inputs, supported-systems, home-page, synopsis, description, license]:
…to here, respectively.
[inherit]: Remove field.
---
gnu/packages/linux.scm | 147 +++++++++++++++++++++++++------------------------
1 file changed, 74 insertions(+), 73 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c2ab05ac5d..b2bea201d2 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3692,79 +3692,8 @@ are blocking others and adjust their priority (using
@command{ionice}) or stop
or kill them altogether.")
(license license:gpl2+)))
-(define-public fuse-2
- (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"
- "fuse-glibc-2.34.patch"))))
- (build-system gnu-build-system)
- (native-inputs
- (list autoconf automake gettext-minimal libtool))
- (inputs
- (list bash-minimal 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 'bootstrap 'force-bootstrap
- (lambda _
- ;; Force a bootstrap to make the patch changes effective.
- (delete-file "configure")))
- (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)
- (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/Makefile"
- (("-DFUSERMOUNT_DIR=[[:graph:]]+")
- "-DFUSERMOUNT_DIR=\\\"/var/empty\\\"")))))))
- (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 fuse
(package
- (inherit fuse-2)
(name "fuse")
(version "3.10.5")
(source (origin
@@ -3777,6 +3706,8 @@ user-space processes.")
(base32
"0rlnnsiw614qcmgy8xz67044gqc1pbvvf2yxjv44lh27bm487qmj"))))
(build-system meson-build-system)
+ (inputs
+ (list bash-minimal util-linux))
(arguments
`(#:configure-flags
,#~(list
@@ -3809,7 +3740,7 @@ user-space processes.")
(lambda* (#:key inputs #:allow-other-keys)
(substitute* '("util/meson.build")
(("install_helper.sh") "true"))
- (substitute* '("util/meson.build")
+ (substitute* '("util/meson.build")
(("fuseconf_path = .*")
"fuseconf_path = '/etc/fuse.conf'"))))
(add-before 'configure 'set-paths
@@ -3820,7 +3751,77 @@ user-space processes.")
(string-append #$output "/sbin"))
(setenv "UDEV_RULES_PATH"
(string-append #$output
- "/lib/udev/rules.d"))))))))))
+ "/lib/udev/rules.d"))))))))
+ (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 fuse-2
+ (package
+ (inherit fuse)
+ (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"
+ "fuse-glibc-2.34.patch"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ (list autoconf automake gettext-minimal libtool))
+ (arguments
+ '(#:tests? #t
+ #: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 'bootstrap 'force-bootstrap
+ (lambda _
+ ;; Force a bootstrap to make the patch changes effective.
+ (delete-file "configure")))
+ (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)
+ (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/Makefile"
+ (("-DFUSERMOUNT_DIR=[[:graph:]]+")
+ "-DFUSERMOUNT_DIR=\\\"/var/empty\\\"")))))))))
(define-public unionfs-fuse
(package
- 06/31: gnu: fasm: Update to 1.73.31., (continued)
- 06/31: gnu: fasm: Update to 1.73.31., guix-commits, 2023/07/29
- 05/31: gnu: perl-db-file: Use G-expressions., guix-commits, 2023/07/29
- 24/31: gnu: lxcfs: Fix build., guix-commits, 2023/07/29
- 01/31: gnu: bcachefs-tools: Fix shell script wrappers., guix-commits, 2023/07/29
- 02/31: gnu: bcachefs-tools: Remove obsolete phase & inputs., guix-commits, 2023/07/29
- 07/31: gnu: bmake: Update to 20230723., guix-commits, 2023/07/29
- 08/31: gnu: bindfs: Update to 1.17.4., guix-commits, 2023/07/29
- 19/31: gnu: font-sarasa-gothic: Update to 0.41.4., guix-commits, 2023/07/29
- 25/31: gnu: lxcfs: Use G-expressions., guix-commits, 2023/07/29
- 22/31: gnu: rewritefs: Update to 0.0.0-1.3a56de8., guix-commits, 2023/07/29
- 31/31: gnu: fuse@2, fuse@3: Reverse inheritance.,
guix-commits <=
- 03/31: gnu: curlftpfs: Add patches to fix bugs., guix-commits, 2023/07/29
- 10/31: gnu: fuse@3: Bind to default FUSE variable., guix-commits, 2023/07/29
- 21/31: gnu: jmtpfs: Mark up description., guix-commits, 2023/07/29
- 26/31: gnu: lxcfs: Update to 5.0.4., guix-commits, 2023/07/29
- 29/31: gnu: unionfs-fuse-static: Update package style., guix-commits, 2023/07/29
- 20/31: gnu: python-llfuse: Update to 1.4.4., guix-commits, 2023/07/29
- 15/31: gnu: python-psycopg2: Update to 2.9.6., guix-commits, 2023/07/29
- 23/31: gnu: rewritefs: Use G-expressions., guix-commits, 2023/07/29
- 13/31: gnu: postgresql@13: Update to 13.11., guix-commits, 2023/07/29
- 09/31: gnu: btrfs-progs: Update to 6.3.3., guix-commits, 2023/07/29