[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49672] [PATCH v2 2/6] gnu: libgc: Use default argument in ‘target-h
From: |
Thiago Jung Bauermann |
Subject: |
[bug#49672] [PATCH v2 2/6] gnu: libgc: Use default argument in ‘target-hurd?’ call |
Date: |
Sun, 27 Mar 2022 18:40:22 -0300 |
‘%current-system’ is always defined, so the expression
“(or (%current-system) (%current-target-system))” is equivalent to
“(%current-system)”, which is unlikely to be the intent of the code.
The default argument for ‘target-hurd?’ has the ‘or’ expression in the
correct order, so just use that.
* gnu/packages/bdw-gc.scm (libgc)[arguments]<#:configure-flags>: Omit
argument in call to ‘target-hurd?’.
---
gnu/packages/bdw-gc.scm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm
index 2698d56da00b..13a6691db4b2 100644
--- a/gnu/packages/bdw-gc.scm
+++ b/gnu/packages/bdw-gc.scm
@@ -56,8 +56,7 @@ (define-public libgc
;; to configure script. See bug report and discussion:
;; <https://lists.opendylan.org/pipermail/bdwgc/2017-April/006275.html>
;; <https://lists.gnu.org/archive/html/bug-hurd/2017-01/msg00008.html>
- ,@(if (target-hurd? (or (%current-system)
- (%current-target-system)))
+ ,@(if (target-hurd?)
'("--disable-gcj-support")
'()))))
(native-inputs (list pkg-config))
- [bug#49672] [PATCH v2 0/6] Target check fixes for cross compilation, Thiago Jung Bauermann, 2022/03/27
- [bug#49672] [PATCH v2 1/6] gnu: Fix GNU/Linux system detection, Thiago Jung Bauermann, 2022/03/27
- [bug#49672] [PATCH v2 2/6] gnu: libgc: Use default argument in ‘target-hurd?’ call,
Thiago Jung Bauermann <=
- [bug#49672] [PATCH v2 6/6] gnu: Fix check of ‘%current-system’ and ‘%current-target-system’, Thiago Jung Bauermann, 2022/03/27
- [bug#49672] [PATCH v2 4/6] gnu: Use ‘current-target-nix-system’ for matches, Thiago Jung Bauermann, 2022/03/27
- [bug#49672] [PATCH v2 5/6] gnu: Query membership in ‘supported-systems’ list with Nix identifier, Thiago Jung Bauermann, 2022/03/27
- [bug#49672] [PATCH v2 3/6] utils: Introduce the ‘current-target-nix-system’ procedure, Thiago Jung Bauermann, 2022/03/27
- [bug#49672] [PATCH v2 0/6] Target check fixes for cross compilation, Maxime Devos, 2022/03/28