~ruther/guix-local

881038ccdc2b1c42138c66f2a70fdcfc465eb5fe — André Batista 6 months ago 09e7d18
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>
1 files changed, 8 insertions(+), 0 deletions(-)

M gnu/packages/bootloaders.scm
M gnu/packages/bootloaders.scm => gnu/packages/bootloaders.scm +8 -0
@@ 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 _