Subject: bug#31999: closed ([bug#31999] [PATCH 7/7] gnu: Update udisks to 2.7.7.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 30 Jul 2018 19:54:02 +0000

Your bug report

#31999: [PATCH 1/7] gnu: Add volume-key.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
31999: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31999
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [bug#31999] [PATCH 7/7] gnu: Update udisks to 2.7.7.
From: Pierre Neidhardt <[email-masked]>
To: [email-masked]
Date: Mon, 30 Jul 2018 21:53:00 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Merged.

Subject: [PATCH 1/7] gnu: Add volume-key.
From: Pierre Neidhardt <[email-masked]>
To: [email-masked]
Date: Thu, 28 Jun 2018 23:32:37 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/package/disk.scm (volume-key): New variable.
---
 gnu/packages/disk.scm | 47 ++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 46 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index bdd24a315..9c5cdf956 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -12,6 +12,7 @@
 ;;; Copyright © 2018 Vasile Dumitrascu <[email-masked]>
 ;;; Copyright © 2018 Eric Bavier <[email-masked]>
 ;;; Copyright © 2018 Rutger Helling <[email-masked]>
+;;; Copyright © 2018 Pierre Neidhardt <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -55,7 +56,11 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages vim)
   #:use-module (gnu packages w3m)
-  #:use-module (gnu packages xml))
+  #:use-module (gnu packages xml)
+  #:use-module (gnu packages cryptsetup)
+  #:use-module (gnu packages gnuzilla)
+  #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages swig))
 
 (define-public parted
   (package
@@ -547,3 +552,43 @@ provides a minimalistic and nice curses interface with a view on the directory
 hierarchy.  It ships with @code{rifle}, a file launcher that is good at
 automatically finding out which program to use for what file type.")
     (license license:gpl3)))
+
+(define-public volume-key
+  (package
+    (name "volume-key")
+    (version "0.3.10")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://releases.pagure.org/volume_key/volume_key-"
+                                  version ".tar.xz"))
+              (sha256
+               (base32
+                "19wqgrd0cnnjs1b1d7s9ssc957vis8vj7bls9rkwhf9ywgkrswn5"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("util-linux" ,util-linux)
+       ("glib" ,glib)
+       ("swig" ,swig)
+       ("lvm2" ,lvm2)
+       ("python" ,python-2)))           ; Used to generate the Python bindings.
+    (inputs
+     `(("cryptsetup" ,cryptsetup)
+       ("nss" ,nss)
+       ("gpgme" ,gpgme)))
+    (arguments
+     `(#:tests? #f ; Not sure how tests are supposed to pass, even when run manually.
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'patch-python.h-path
+           (lambda _
+             (let ((python (assoc-ref %build-inputs "python")))
+               (substitute* "Makefile.in"
+                 (("/usr/include/python") (string-append python "/include/python")))
+               #t))))))
+    (home-page "https://pagure.io/volume_key")
+    (synopsis "Manipulate storage volume encryption keys")
+    (description
+     "A library for manipulating storage volume encryption keys and storing
+them separately from volumes to handle forgotten passphrases.")
+    (license license:gpl2+)))
-- 
2.17.1