aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/nfs.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-01-03 09:37:25 +0100
committerRicardo Wurmus <rekado@elephly.net>2020-01-04 22:38:12 +0100
commitb224ff4a2d962d0206262cd18cdae8c169e41a0c (patch)
treef69d0340642538e94ebffa6a294e64a881376c3a /gnu/packages/nfs.scm
parentbcd47c67b04c94e33631fd9a71fd907a9eed379b (diff)
downloadguix-b224ff4a2d962d0206262cd18cdae8c169e41a0c.tar
guix-b224ff4a2d962d0206262cd18cdae8c169e41a0c.tar.gz
gnu: nfs-utils: Update to 2.4.2.
* gnu/packages/nfs.scm (nfs-utils): Update to 2.4.2. [source]: Remove patch. [arguments]: Update configure flags, remove fix-glibc-compatability phase, update substitutions. [inputs]: Add keyutils and rpcsvc-proto. * gnu/packages/patches/nfs-utils-missing-headers.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it.
Diffstat (limited to 'gnu/packages/nfs.scm')
-rw-r--r--gnu/packages/nfs.scm45
1 files changed, 25 insertions, 20 deletions
diff --git a/gnu/packages/nfs.scm b/gnu/packages/nfs.scm
index 9d7acc3592..a3d5383c4d 100644
--- a/gnu/packages/nfs.scm
+++ b/gnu/packages/nfs.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
;;; Copyright © 2017, 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -20,6 +21,7 @@
(define-module (gnu packages nfs)
#:use-module (gnu packages)
+ #:use-module (gnu packages crypto)
#:use-module (gnu packages linux)
#:use-module (gnu packages libevent)
#:use-module (gnu packages kerberos)
@@ -42,32 +44,27 @@
(define-public nfs-utils
(package
(name "nfs-utils")
- (version "2.1.1")
+ (version "2.4.2")
(source (origin
(method url-fetch)
(uri (string-append
"mirror://kernel.org/linux/utils/nfs-utils/" version
"/nfs-utils-" version ".tar.xz"))
- (patches (search-patches "nfs-utils-missing-headers.patch"))
(sha256
(base32
- "1vqrqzhg9nh2wj1icp7k8v9dibgnn521b45np79nnkmqf16bbbhg"))))
+ "0f0hm8jq1p5gra55v621qpbb3mryakaikzpy5znkvxym0dx76r24"))))
(build-system gnu-build-system)
(arguments
`(#:configure-flags
`("--without-tcp-wrappers"
,(string-append "--with-start-statd="
(assoc-ref %outputs "out") "/sbin/start-statd")
- ,(string-append "--with-krb5=" (assoc-ref %build-inputs "mit-krb5")))
+ ,(string-append "--with-krb5=" (assoc-ref %build-inputs "mit-krb5"))
+ ,(string-append "--with-pluginpath="
+ (assoc-ref %outputs "out")
+ "/lib/libnfsidmap"))
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'fix-glibc-compatability
- (lambda _
- (substitute* '("utils/blkmapd/device-discovery.c"
- "utils/blkmapd/dm-device.c")
- (("<sys/stat.h>")
- "<sys/stat.h>\n#include <sys/sysmacros.h>"))
- #t))
(add-before 'configure 'adjust-command-file-names
(lambda _
;; Remove assumptions of FHS from start-statd script
@@ -81,6 +78,11 @@
(string-append "exec "
(assoc-ref %outputs "out") "/sbin/rpc.statd")))
+ ;; find rpcgen
+ (substitute* "configure"
+ (("/usr/local/bin/rpcgen")
+ (which "rpcgen")))
+
;; This hook tries to write to /var
;; That needs to be done by a service too.
(substitute* `("Makefile.in")
@@ -96,20 +98,23 @@
(substitute* `("utils/statd/statd.c")
(("/usr/sbin/")
(string-append (assoc-ref %outputs "out") "/sbin/")))
- (substitute* `("utils/osd_login/Makefile.in"
- "utils/mount/Makefile.in"
+ (substitute* `("utils/mount/Makefile.in"
+ "utils/nfsdcld/Makefile.in"
"utils/nfsdcltrack/Makefile.in")
(("^sbindir = /sbin")
(string-append "sbindir = "
(assoc-ref %outputs "out") "/sbin")))
#t)))))
- (inputs `(("libevent" ,libevent)
- ("libnfsidmap" ,libnfsidmap)
- ("sqlite" ,sqlite)
- ("lvm2" ,lvm2)
- ("util-linux" ,util-linux)
- ("mit-krb5" ,mit-krb5)
- ("libtirpc" ,libtirpc)))
+ (inputs
+ `(("keyutils" ,keyutils)
+ ("libevent" ,libevent)
+ ("libnfsidmap" ,libnfsidmap)
+ ("rpcsvc-proto" ,rpcsvc-proto) ;for 'rpcgen'
+ ("sqlite" ,sqlite)
+ ("lvm2" ,lvm2)
+ ("util-linux" ,util-linux)
+ ("mit-krb5" ,mit-krb5)
+ ("libtirpc" ,libtirpc)))
(native-inputs
`(("pkg-config" ,pkg-config)))
(home-page "http://www.kernel.org/pub/linux/utils/nfs-utils/")