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.
This commit is contained in:
Ludovic Courtès 2023-06-02 15:44:55 +02:00
parent 0a8f53d61b
commit 48c7e71cd7
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -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*