summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAndré Batista <nandre@riseup.net>2025-09-17 16:58:59 -0300
committerVagrant Cascadian <vagrant@debian.org>2025-09-17 14:04:28 -0700
commit881038ccdc2b1c42138c66f2a70fdcfc465eb5fe (patch)
treee8b29363d97834706b20b89bb68fd75053c4f226 /gnu
parent09e7d188dd4b590c58b7a03d95508ddf9ec03e4b (diff)
gnu: ipxe-qemu: Fix build on x86-32.
* gnu/packages/bootloaders.scm (ipxe) [arguments] <#:phases>: Conditionally add a 'fix-x86-align phase to fix (U)INT64 assertion failure on these arches. Change-Id: I9481b41c563984e7cd120b3039c08fe086263f72 Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/bootloaders.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 0632f5de653..ae2bf2218f0 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -22,6 +22,7 @@
;;; Copyright © 2023 Simon Tournier <zimon.toutoune@gmail.com>
;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2025 Esther Flashner <esther@flashner.co.il>
+;;; Copyright © 2025 André Batista <nandre@riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2031,6 +2032,13 @@ order to add a suitable bootloader menu entry.")
"/share/syslinux \\\n"
all))))))
#~())
+ #$@(if (target-x86-32?)
+ ;; Otherwise (u)int64 assertion failure on this arch.
+ ;; See <https://github.com/ipxe/ipxe/issues/1506>
+ #~((add-after 'enter-source-directory 'fix-x86-align
+ (lambda _
+ (setenv "HOST_EFI_CFLAGS" "-malign-double"))))
+ #~())
(delete 'configure) ; no configure script
(replace 'install
(lambda _