guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#49672] [PATCH 8/9] gnu: ustr: Don’t pass default argument


From: Thiago Jung Bauermann
Subject: [bug#49672] [PATCH 8/9] gnu: ustr: Don’t pass default argument
Date: Tue, 20 Jul 2021 22:00:42 -0300

The default argument to ‘target-64bit?’ already is
`(or (%current-target-system) (%current-system))`, so there’s no need to
duplicate code.

* gnu/packages/textutils.scm (ustr)[arguments]<#:phases>: Don’t pass default
argument to ‘target-64bit?’.
---
 gnu/packages/textutils.scm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index c3f4580a47c7..0f23a166e7c0 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -331,8 +331,7 @@ input bits thoroughly but are not suitable for 
cryptography.")
            (lambda _
              (substitute* "Makefile"
                (("\\./autoconf_64b")
-                ,(if (target-64bit? (or (%current-target-system)
-                                        (%current-system)))
+                ,(if (target-64bit?)
                      "echo 1"
                      "echo 0"))
                (("\\./autoconf_vsnprintf") "echo 0"))))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]