gnu: xen: Fix compilation.

Suggested by Skyler <skyvine@protonmail.com>.

* gnu/packages/virtualization.scm (xen)[arguments]: In 'patch' phase,
substitute ".note.gnu.build-id" in 'xen.lds.S'.
This commit is contained in:
Ludovic Courtès 2022-03-24 22:47:00 +01:00
parent 07f55a361e
commit 462f3b064f
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -2152,7 +2152,12 @@ (define-public xen
(string-append "runtime_library_dirs = ['"
(assoc-ref outputs "out")
"/lib'],\nlibrary_dirs =")))
#t))
;; This needs to be quoted:
;; <https://lists.gnu.org/archive/html/guix-devel/2022-03/msg00113.html>.
(substitute* "xen/arch/x86/xen.lds.S"
((".note.gnu.build-id")
"\".note.gnu.build-id\""))))
(add-before 'configure 'patch-xen-script-directory
(lambda* (#:key outputs #:allow-other-keys)
(substitute* '("configure"