From: Christopher Baines <mail@cbaines.net>
To: 29468@debbugs.gnu.org
Subject: [bug#29468] [PATCH 2/2] gnu: Patch udisks to directly reference cryptsetup and parted.
Date: Mon, 27 Nov 2017 08:48:15 +0000 [thread overview]
Message-ID: <20171127084815.20587-2-mail@cbaines.net> (raw)
In-Reply-To: <20171127084815.20587-1-mail@cbaines.net>
This fixes some functionality in gnome-disks, which uses udisks. Adding
cryptsetup enables creating partitions using LUKS, and adding parted enables
editing the partition tables through the disks application.
* gnu/packages/freedesktop.scm (udisks)[inputs]: Add cryptsetup and parted.
(arguments): Rename set-mount-file-name phase, and add cryptsetup and
parted.
---
gnu/packages/freedesktop.scm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index cac1f67c5..b0f711440 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -40,7 +40,9 @@
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
+ #:use-module (gnu packages cryptsetup)
#:use-module (gnu packages databases)
+ #:use-module (gnu packages disk)
#:use-module (gnu packages docbook)
#:use-module (gnu packages documentation)
#:use-module (gnu packages gettext)
@@ -613,7 +615,9 @@ Analysis and Reporting Technology) functionality.")
("libatasmart" ,libatasmart)
("libgudev" ,libgudev)
("polkit" ,polkit)
- ("util-linux" ,util-linux)))
+ ("util-linux" ,util-linux)
+ ("cryptsetup" ,cryptsetup)
+ ("parted" ,parted)))
(outputs '("out"
"doc")) ;5 MiB of gtk-doc HTML
(arguments
@@ -653,14 +657,18 @@ Analysis and Reporting Technology) functionality.")
"girdir = $(datadir)/gir-1.0\n")
(("typelibsdir = .*")
"typelibsdir = $(libdir)/girepository-1.0\n"))))
- (add-after 'install 'set-mount-file-name
+ (add-after 'install 'wrap-udisksd
(lambda* (#:key outputs inputs #:allow-other-keys)
;; Tell 'udisksd' where to find the 'mount' command.
(let ((out (assoc-ref outputs "out"))
- (utils (assoc-ref inputs "util-linux")))
+ (utils (assoc-ref inputs "util-linux"))
+ (cryptsetup (assoc-ref inputs "cryptsetup"))
+ (parted (assoc-ref inputs "parted")))
(wrap-program (string-append out "/libexec/udisks2/udisksd")
`("PATH" ":" prefix
(,(string-append utils "/bin") ;for 'mount'
+ ,(string-append cryptsetup "/sbin")
+ ,(string-append parted "/sbin")
"/run/current-system/profile/bin"
"/run/current-system/profile/sbin")))
#t))))))
--
2.14.2
next prev parent reply other threads:[~2017-11-27 8:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 8:38 [bug#29468] [PATCH 0/2] Fix some functionality in gnome-disks Christopher Baines
2017-11-27 8:48 ` [bug#29468] [PATCH 1/2] services: desktop: Create /var/run/udisks2 for the udisks service Christopher Baines
2017-11-27 8:48 ` Christopher Baines [this message]
2017-11-27 14:09 ` [bug#29468] [PATCH 2/2] gnu: Patch udisks to directly reference cryptsetup and parted Ludovic Courtès
2017-11-27 19:47 ` bug#29468: " Christopher Baines
2017-11-27 14:08 ` [bug#29468] [PATCH 1/2] services: desktop: Create /var/run/udisks2 for the udisks service Ludovic Courtès
2017-11-27 19:29 ` Christopher Baines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171127084815.20587-2-mail@cbaines.net \
--to=mail@cbaines.net \
--cc=29468@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.