guix_mirror_bot pushed a commit to branch master
in repository guix.
commit ee99aeb9125c038d8d7cddd71ecaac2dccb4c290
Author: Yelninei <[email protected]>
AuthorDate: Sat Oct 17 17:54:11 2026 +0000
gnu: gcc-11: Fix applying the x86_64-gnu patch.
* gnu/packages/gcc.scm (gcc-11)[arguments]<phases>
{apply-x86_64-hurd-patch}: Remove nested lambda and add local-file.
Fixes: 998665fb04e1 ("gnu: gcc-11: Support x86_64-gnu.")
Merges: https://codeberg.org/guix/guix/pulls/11903
Reviewed-by: Ludovic Courtès <[email protected]>
Signed-off-by: Nguyễn Gia Phong <[email protected]>
---
gnu/packages/gcc.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index ae02fca6300..077adc5ddc2 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -952,10 +952,10 @@ It also includes runtime support libraries for these
languages.")
(if (and (target-hurd64?) (version-prefix? "11" (package-version
this-package)))
#~(modify-phases #$phases
(add-after 'unpack 'apply-x86_64-hurd-patch
- (lambda _
- (lambda* (#:key native-inputs inputs #:allow-other-keys)
- (invoke "patch" "--force" "-p1" "-i"
- #$(search-patch "gcc-11-x86_64-gnu.patch"))))))
+ (lambda* (#:key native-inputs inputs #:allow-other-keys)
+ (invoke "patch" "--force" "-p1" "-i"
+ #$(local-file
+ (search-patch "gcc-11-x86_64-gnu.patch"))))))
phases))))
(properties
`((compiler-cpu-architectures