[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/12: gnu: libblockdev: Use gexps.
From: |
guix-commits |
Subject: |
08/12: gnu: libblockdev: Use gexps. |
Date: |
Wed, 16 Oct 2024 13:28:08 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit a8bd933362f6bf26e4a11d062228aa52c2c0add1
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Oct 7 22:12:31 2024 +0200
gnu: libblockdev: Use gexps.
* gnu/packages/disk.scm (libblockdev)
[phases]: Use gexps.
{patch-plugin-paths}: Use search-input-file.
Change-Id: I61f9b3dfdd4dc249fb0f59abb99826a8e759bb42
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/disk.scm | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 81bd4ec688..00674016a4 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -1191,19 +1191,26 @@ to create devices with respective mappings for the
ATARAID sets discovered.")
"1ny2glwmb5dcdv2x0giinbyma9fhk59z8117k1kr15pm7yjk7jx5"))))
(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")))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-configuration-directory
+ (lambda _
(substitute* "src/lib/blockdev.c"
- (("/etc/libblockdev/conf.d/" path) (string-append out
path))))))
- (add-after 'unpack 'patch-plugin-paths
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* (find-files "src/plugins" "\\.c$")
- (("(gchar \\*arg.+\\{\")([^\"]+)" all start program)
- ;; XXX: Use 'search-input-file' when available.
- (string-append start (or (which program) program)))))))))
+ (("/etc/libblockdev/conf.d/" path)
+ (string-append #$output path)))))
+ (add-after 'unpack 'patch-plugin-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* (find-files "src/plugins" "\\.c$")
+ (("(gchar \\*arg.+\\{\")([^\"]+)" all start program)
+ (string-append
+ start (or (false-if-exception
+ (search-input-file inputs
+ (string-append "bin/"
program)))
+ (false-if-exception
+ (search-input-file inputs
+ (string-append "sbin/"
program)))
+ program)))))))))
(native-inputs
(list gobject-introspection
pkg-config
- branch master updated (b3b98151f3 -> d95588242c), guix-commits, 2024/10/16
- 03/12: gnu: gtkwave: Update to 3.3.121., guix-commits, 2024/10/16
- 01/12: gnu: guile-git: Update to 0.9.0., guix-commits, 2024/10/16
- 09/12: gnu: udisks: Update to 2.10.1., guix-commits, 2024/10/16
- 04/12: gnu: libbytesize: Update to 2.10., guix-commits, 2024/10/16
- 07/12: gnu: libblockdev: Update to 3.1.1., guix-commits, 2024/10/16
- 06/12: gnu: libblockdev: Fix inputs., guix-commits, 2024/10/16
- 08/12: gnu: libblockdev: Use gexps.,
guix-commits <=
- 05/12: gnu: libblockdev: Embed executable paths., guix-commits, 2024/10/16
- 02/12: Add copyright lines., guix-commits, 2024/10/16
- 10/12: gnu: udisks: Remove obsolete wrap-udisksd phase., guix-commits, 2024/10/16
- 12/12: gnu: awscli@1: Fix broken build., guix-commits, 2024/10/16
- 11/12: gnu: fossil: Update to 2.23., guix-commits, 2024/10/16