gnu: gcc-11: Adapt patching for hurd to not use gexp's.
As this causes issues with gcc-cross-boot0, since it doesn't use gexp's and that means the builder script ends up broken. I'm not testing this properly, I've only confirmed that with this change, you can generate a derivation for hello for i586-gnu where that derivation and all inputs don't have broken builder scripts. Plus the output for hello on x86_64-linux is unchanged. * gnu/packages/gcc.scm (gcc-11)[arguments]: Rewrite to not use gexps. [native-inputs]: Add a patch for the hurd if that's the target.
This commit is contained in:
parent
916c6e5716
commit
08acdd0765
1 changed files with 13 additions and 9 deletions
|
@ -715,22 +715,26 @@ It also includes runtime support libraries for these languages.")
|
||||||
(snippet gcc-canadian-cross-objdump-snippet)))
|
(snippet gcc-canadian-cross-objdump-snippet)))
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments gcc-8)
|
(substitute-keyword-arguments (package-arguments gcc-8)
|
||||||
((#:phases phases #~%standard-phases)
|
((#:phases phases '%standard-phases)
|
||||||
(if (target-hurd?)
|
(if (target-hurd?)
|
||||||
#~(modify-phases #$phases
|
`(modify-phases ,phases
|
||||||
(add-after 'unpack 'patch-hurd-libpthread
|
(add-after 'unpack 'patch-hurd-libpthread
|
||||||
(lambda _
|
(lambda (#:key inputs)
|
||||||
(define patch
|
(invoke "patch" "--force" "-p1" "-i"
|
||||||
#$(local-file
|
(assoc-ref inputs "hurd-patch")
|
||||||
(search-patch "gcc-11-libstdc++-hurd-libpthread.patch")))
|
patch))))
|
||||||
(invoke "patch" "--force" "-p1" "-i" patch))))
|
|
||||||
phases))))
|
phases))))
|
||||||
(properties
|
(properties
|
||||||
`((compiler-cpu-architectures
|
`((compiler-cpu-architectures
|
||||||
("aarch64" ,@%gcc-11-aarch64-micro-architectures)
|
("aarch64" ,@%gcc-11-aarch64-micro-architectures)
|
||||||
("armhf" ,@%gcc-11-armhf-micro-architectures)
|
("armhf" ,@%gcc-11-armhf-micro-architectures)
|
||||||
("x86_64" ,@%gcc-11-x86_64-micro-architectures))
|
("x86_64" ,@%gcc-11-x86_64-micro-architectures))
|
||||||
,@(package-properties gcc-8)))))
|
,@(package-properties gcc-8)))
|
||||||
|
(native-inputs
|
||||||
|
`(,@(if (target-hurd?)
|
||||||
|
`(("hurd-patch" ,(search-patch "gcc-11-libstdc++-hurd-libpthread.patch")))
|
||||||
|
'())
|
||||||
|
,@(package-native-inputs gcc-8)))))
|
||||||
|
|
||||||
(define-public gcc-12
|
(define-public gcc-12
|
||||||
(package
|
(package
|
||||||
|
|
Reference in a new issue