Skip to content
Snippets Groups Projects
Commit 74067e1a authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

gnu: Gracefully handle circular dependencies between 'base' and 'linux'.

* gnu/packages/base.scm (linux-libre-headers-boot0): Turn into a thunk.
  User updated.
parent 9a6a9dae
No related branches found
No related tags found
No related merge requests found
...@@ -764,7 +764,10 @@ (define gcc-boot0 ...@@ -764,7 +764,10 @@ (define gcc-boot0
(native-inputs (alist-delete "texinfo" (native-inputs (alist-delete "texinfo"
(package-native-inputs gcc-4.7)))))) (package-native-inputs gcc-4.7))))))
(define linux-libre-headers-boot0 (define (linux-libre-headers-boot0)
"Return Linux-Libre header files for the bootstrap environment."
;; Note: this is wrapped in a thunk to nicely handle circular dependencies
;; between (gnu packages linux) and this module.
(package-with-bootstrap-guile (package-with-bootstrap-guile
(package (inherit linux-libre-headers) (package (inherit linux-libre-headers)
(arguments `(#:guile ,%bootstrap-guile (arguments `(#:guile ,%bootstrap-guile
...@@ -809,7 +812,7 @@ (define glibc-final-with-bootstrap-bash ...@@ -809,7 +812,7 @@ (define glibc-final-with-bootstrap-bash
;; install rpc/*.h. ;; install rpc/*.h.
"--enable-obsolete-rpc") "--enable-obsolete-rpc")
,flags))))) ,flags)))))
(propagated-inputs `(("linux-headers" ,linux-libre-headers-boot0))) (propagated-inputs `(("linux-headers" ,(linux-libre-headers-boot0))))
(inputs (inputs
`( ;; A native GCC is needed to build `cross-rpcgen'. `( ;; A native GCC is needed to build `cross-rpcgen'.
("native-gcc" ,@(assoc-ref %boot0-inputs "gcc")) ("native-gcc" ,@(assoc-ref %boot0-inputs "gcc"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment