From: Brice Waegeneire <brice@waegenei.re>
To: 41247@debbugs.gnu.org
Subject: [bug#41247] [PATCH 5/5] gnu: libblockdev: Set default configuration directory.
Date: Thu, 14 May 2020 00:25:42 +0200 [thread overview]
Message-ID: <20200513222542.29411-5-brice@waegenei.re> (raw)
In-Reply-To: <20200513222409.28811-1-brice@waegenei.re>
Fix error from 'udisks': “Failed to get contents of the config
dir (/etc/libblockdev/conf.d/)Error opening directory
"/etc/libblockdev/conf.d/": No such file or directory.”
* gnu/packages/disk.scm (libblockdev)[arguments]: Add phase
'patch-configuration-directory'.
---
gnu/packages/disk.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 346a912cf4..a5f4d4f7a6 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -802,6 +802,14 @@ to create devices with respective mappings for the ATARAID sets discovered.")
(base32
"15c7g2gbkahmy8c6677pvbvblan5h8jxcqqmn6nlvqwqynq2mkjm"))))
(build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-configuration-directory
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (substitute* "src/lib/blockdev.c"
+ (("/etc/libblockdev/conf.d/" path) (string-append out path)))))))))
(native-inputs
`(("gobject-introspection" ,gobject-introspection)
("pkg-config" ,pkg-config)
--
2.26.2
next prev parent reply other threads:[~2020-05-13 22:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-13 22:24 [bug#41247] [PATCH 0/5] Fix and update udisks Brice Waegeneire
2020-05-13 22:25 ` [bug#41247] [PATCH 1/5] gnu: udisks: Update to 2.8.4 Brice Waegeneire
2020-05-13 22:25 ` [bug#41247] [PATCH 2/5] gnu: udisks: Appease guix lint Brice Waegeneire
2020-05-13 22:25 ` [bug#41247] [PATCH 3/5] gnu: libblockdev: " Brice Waegeneire
2020-05-13 22:25 ` [bug#41247] [PATCH 4/5] gnu: libblockdev: Add input 'xfsprogs' Brice Waegeneire
2020-05-13 22:25 ` Brice Waegeneire [this message]
2020-05-14 8:25 ` [bug#41247] [PATCH 0/5] Fix and update udisks Efraim Flashner
2020-05-14 13:50 ` Brice Waegeneire
2020-05-19 8:24 ` Efraim Flashner
2020-05-14 8:34 ` Efraim Flashner
2022-09-28 20:09 ` bug#41247: " Maxim Cournoyer
2020-05-14 16:16 ` [bug#41247] [PATCH v2] gnu: libblockdev: Move filesystems utilities to 'propagated-inputs' Brice Waegeneire
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200513222542.29411-5-brice@waegenei.re \
--to=brice@waegenei.re \
--cc=41247@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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).