gnu: zfs: update to 2.0.1.
* gnu/packages/file-systems.scm (zfs): Update version to 2.0.1. [arguments]: Adjust 'patch-source phase for changes in tarball. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
849e3dd043
commit
e2fe05284d
@ -847,7 +847,7 @@ APFS.")
|
|||||||
(define-public zfs
|
(define-public zfs
|
||||||
(package
|
(package
|
||||||
(name "zfs")
|
(name "zfs")
|
||||||
(version "0.8.5")
|
(version "2.0.1")
|
||||||
(outputs '("out" "module" "src"))
|
(outputs '("out" "module" "src"))
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
@ -856,7 +856,7 @@ APFS.")
|
|||||||
"/download/zfs-" version
|
"/download/zfs-" version
|
||||||
"/zfs-" version ".tar.gz"))
|
"/zfs-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0gfdnynmsxbhi97q73smrgmcw1k8zmlr1hgljfn38sk0kimivd6v"))))
|
(base32 "0y3992l4nzr67q18lz1kizw0za1shvqbpmsjz9shv4frh5ihllbi"))))
|
||||||
(build-system linux-module-build-system)
|
(build-system linux-module-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(;; The ZFS kernel module should not be downloaded since the license
|
`(;; The ZFS kernel module should not be downloaded since the license
|
||||||
@ -887,18 +887,31 @@ APFS.")
|
|||||||
(util-linux (assoc-ref inputs "util-linux"))
|
(util-linux (assoc-ref inputs "util-linux"))
|
||||||
(nfs-utils (assoc-ref inputs "nfs-utils"))
|
(nfs-utils (assoc-ref inputs "nfs-utils"))
|
||||||
(kmod (assoc-ref inputs "kmod-runtime")))
|
(kmod (assoc-ref inputs "kmod-runtime")))
|
||||||
|
(substitute* "etc/Makefile.in"
|
||||||
|
;; This just contains an example configuration file for
|
||||||
|
;; configuring ZFS on traditional init systems, skip it
|
||||||
|
;; since we cannot use it anyway; the install target becomes
|
||||||
|
;; misdirected.
|
||||||
|
(("= default ") "= "))
|
||||||
|
(substitute* "lib/libzfs/os/linux/libzfs_util_os.c"
|
||||||
|
;; Use path to /gnu/store/*-kmod in actual path that is exec'ed.
|
||||||
|
(("\"/sbin/modprobe\"")
|
||||||
|
(string-append "\"" kmod "/bin/modprobe" "\""))
|
||||||
|
;; Just use 'modprobe' in message to user, since Guix
|
||||||
|
;; does not have a traditional /sbin/
|
||||||
|
(("'/sbin/modprobe ") "'modprobe "))
|
||||||
(substitute* "contrib/Makefile.in"
|
(substitute* "contrib/Makefile.in"
|
||||||
;; This is not configurable nor is its hard-coded /usr prefix.
|
;; This is not configurable nor is its hard-coded /usr prefix.
|
||||||
((" initramfs") ""))
|
((" initramfs") ""))
|
||||||
(substitute* "module/zfs/zfs_ctldir.c"
|
(substitute* "module/os/linux/zfs/zfs_ctldir.c"
|
||||||
(("/usr/bin/env\", \"umount")
|
(("/usr/bin/env\", \"umount")
|
||||||
(string-append util-linux "/bin/umount\", \"-n"))
|
(string-append util-linux "/bin/umount\", \"-n"))
|
||||||
(("/usr/bin/env\", \"mount")
|
(("/usr/bin/env\", \"mount")
|
||||||
(string-append util-linux "/bin/mount\", \"-n")))
|
(string-append util-linux "/bin/mount\", \"-n")))
|
||||||
(substitute* "lib/libzfs/libzfs_mount.c"
|
(substitute* "lib/libzfs/os/linux/libzfs_mount_os.c"
|
||||||
(("/bin/mount") (string-append util-linux "/bin/mount"))
|
(("/bin/mount") (string-append util-linux "/bin/mount"))
|
||||||
(("/bin/umount") (string-append util-linux "/bin/umount")))
|
(("/bin/umount") (string-append util-linux "/bin/umount")))
|
||||||
(substitute* "lib/libshare/nfs.c"
|
(substitute* "lib/libshare/os/linux/nfs.c"
|
||||||
(("/usr/sbin/exportfs")
|
(("/usr/sbin/exportfs")
|
||||||
(string-append nfs-utils "/sbin/exportfs")))
|
(string-append nfs-utils "/sbin/exportfs")))
|
||||||
(substitute* "config/zfs-build.m4"
|
(substitute* "config/zfs-build.m4"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user