[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: uftrace: Use (ice-9 match).
From: |
guix-commits |
Subject: |
06/07: gnu: uftrace: Use (ice-9 match). |
Date: |
Sun, 9 Jul 2023 14:15:15 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit bc93884523ca72c5078df3e7a4ecfd2ebf986af9
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 2 02:00:00 2023 +0200
gnu: uftrace: Use (ice-9 match).
* gnu/packages/instrumentation.scm (uftrace)[arguments]:
Prefer MATCH over COND.
---
gnu/packages/instrumentation.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm
index 4969f52e66..9d658aa4c9 100644
--- a/gnu/packages/instrumentation.scm
+++ b/gnu/packages/instrumentation.scm
@@ -552,6 +552,9 @@ whole-system symbolic access, and can also handle simple
tracing jobs.")
(build-system gnu-build-system)
(arguments
(list
+ #:modules
+ `((ice-9 match)
+ ,@%gnu-build-system-modules)
#:make-flags
#~(list
(string-append "CC=" #$(cc-for-target)))
@@ -568,9 +571,9 @@ whole-system symbolic access, and can also handle simple
tracing jobs.")
(or (%current-target-system)
(%current-system))))))
(setenv "ARCH"
- (cond
- ((string=? arch "arm64") "aarch64")
- (else arch)))
+ (match arch
+ ("arm64" "aarch64")
+ (_ arch)))
(when target
(setenv "CROSS_COMPILE" (string-append target "-"))))
(setenv "SHELL" (which "sh"))
- branch master updated (2ba2e80ee6 -> f0ca6346a4), guix-commits, 2023/07/09
- 01/07: gnu: btrfs-progs: Update to 6.3.2., guix-commits, 2023/07/09
- 02/07: gnu: btrbk: Update to 0.32.6., guix-commits, 2023/07/09
- 04/07: gnu: bees: Update to 0.10., guix-commits, 2023/07/09
- 05/07: gnu: uftrace: Use G-expressions., guix-commits, 2023/07/09
- 07/07: gnu: babeltrace: Update to 2.0.5., guix-commits, 2023/07/09
- 06/07: gnu: uftrace: Use (ice-9 match).,
guix-commits <=
- 03/07: gnu: btrbk: Re-use $PREFIX in our substitution., guix-commits, 2023/07/09