[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/30: gnu: hurd: Fix hurd-target?, add hurd-system?.
From: |
guix-commits |
Subject: |
02/30: gnu: hurd: Fix hurd-target?, add hurd-system?. |
Date: |
Sat, 21 Mar 2020 19:36:23 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit 3424b7088ebf5be8513602aa7f05b6b7f1eae218
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Wed Mar 4 11:49:46 2020 -0500
gnu: hurd: Fix hurd-target?, add hurd-system?.
* gnu/packages/hurd.scm (hurd-target?): Bugfix; the arguments to
string-suffix? to test (%current-system) were transposed, always resulting
in #f. Use hurd-triplet?.
(hurd-system?): New exported variable.
---
gnu/packages/hurd.scm | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index c147bac..59d5c31 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2018 Ludovic Courtès <address@hidden>
;;; Copyright © 2020 Efraim Flashner <address@hidden>
;;; Copyright © 2020 Marius Bakke <address@hidden>
+;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -34,8 +35,9 @@
#:use-module (gnu packages base)
#:use-module (gnu packages texinfo)
#:use-module (guix git-download)
- #:export (hurd-triplet?
- hurd-target?))
+ #:export (hurd-system?
+ hurd-target?
+ hurd-triplet?))
(define (hurd-triplet? triplet)
(and (string-suffix? "-gnu" triplet)
@@ -45,7 +47,12 @@
"Return true if the cross-compilation target or the current system is
GNU/Hurd."
(or (and=> (%current-target-system) hurd-triplet?)
- (string-suffix? (%current-system) "-gnu")))
+ (and (not (%current-target-system))
+ (and=> (%current-system) hurd-triplet?))))
+
+(define (hurd-system?)
+ "Return true if the current system is the Hurd."
+ (and=> (%current-system) hurd-triplet?))
(define (hurd-source-url version)
(string-append "mirror://gnu/hurd/hurd-"
- branch wip-hurd created (now a016b45), guix-commits, 2020/03/21
- 02/30: gnu: hurd: Fix hurd-target?, add hurd-system?.,
guix-commits <=
- 05/30: gnu: cross-libc: Build fix for the Hurd., guix-commits, 2020/03/21
- 08/30: gnu: bootstrap: Use fall-back mechanism for bootstrap-executables., guix-commits, 2020/03/21
- 01/30: gnu: grub: Support for the Hurd., guix-commits, 2020/03/21
- 11/30: gnu: make: Support for the Hurd., guix-commits, 2020/03/21
- 07/30: gnu: bootstrap: gcc-static: Use gcc-5., guix-commits, 2020/03/21
- 10/30: gnu: java-jansi-native: Compile fix for the Hurd., guix-commits, 2020/03/21
- 04/30: gnu: glibc: Add signal SA_SIGINFO support for the Hurd., guix-commits, 2020/03/21
- 15/30: gnu: commencement: glibc-intermediate: Build fixes for the Hurd., guix-commits, 2020/03/21
- 03/30: gnu: glibc: Add clock patches for the Hurd., guix-commits, 2020/03/21
- 12/30: gnu: commencement: gnumach-headers-boot0: Build from tarball., guix-commits, 2020/03/21