gnu: gcc-11: Fix patch-hurd-libpthread phase.

It didn't work when it was introduced in
08acdd0765.

* gnu/packages/gcc.scm (gcc-11)[arguments]: Remove the procedure arguments,
and use %build-inputs rather than inputs.
* gnu/packages/commencement.scm (gcc-boot0)[native-inputs]: Add hurd-patch, as
this package inherits from gcc-11.
This commit is contained in:
Christopher Baines 2023-05-05 14:25:49 +01:00
parent dc8b3ebe5d
commit 6922069bcb
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577
2 changed files with 6 additions and 4 deletions

View file

@ -719,10 +719,9 @@ It also includes runtime support libraries for these languages.")
(if (target-hurd?)
`(modify-phases ,phases
(add-after 'unpack 'patch-hurd-libpthread
(lambda (#:key inputs)
(lambda _
(invoke "patch" "--force" "-p1" "-i"
(assoc-ref inputs "hurd-patch")
patch))))
(assoc-ref %build-inputs "hurd-patch")))))
phases))))
(properties
`((compiler-cpu-architectures