summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-06-02 15:44:55 +0200
committerLudovic Courtès <ludo@gnu.org>2023-06-02 15:47:28 +0200
commit48c7e71cd7c3690203d4a8961a651cae090af83f (patch)
tree4a7cb16f980dc20cd91c3befcdd21e0d0422f69f
parent0a8f53d61b054fefccb63bb2a2bce9ef3f8d9352 (diff)
downloadguix-48c7e71cd7c3690203d4a8961a651cae090af83f.tar.gz
gnu: gcc-boot0: Do not use 'coreutils-boot0' on GNU/Hurd.
Fixes <https://issues.guix.gnu.org/63789>.
Reported by Janneke Nieuwenhuizen <janneke@gnu.org>.

* gnu/packages/commencement.scm (gcc-boot0)[source]: Use
'%bootstrap-coreutils&co' when on GNU/Hurd.
-rw-r--r--gnu/packages/commencement.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 78cfa4acd0..7c7c11c174 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2333,7 +2333,12 @@ exec " gcc "/bin/" program
              ;; names, which cannot be repacked by BOOTSTRAP-ORIGIN.  Nor
              ;; can it be deleted from Guile, so resort to this evil hack.
              #$(origin-snippet (package-source gcc))
-             (system* #$(file-append coreutils-boot0 "/bin/rm") "-rf"
+             (system* #$(file-append (let-system system
+                                       ;; 'coreutils-boot0' is Linux-only.
+                                       (if (target-hurd? system)
+                                           %bootstrap-coreutils&co
+                                           coreutils-boot0))
+                                     "/bin/rm") "-rf"
                       "gcc/testsuite/go.test/test/fixedbugs/issue27836.dir"))))))
     (arguments
      (cons*