[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/50: gnu: grub: Fix build for the 64bit Hurd.
From: |
guix-commits |
Subject: |
36/50: gnu: grub: Fix build for the 64bit Hurd. |
Date: |
Mon, 18 Nov 2024 16:43:20 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit 534e928735f001ae205527eebdeb35218ada3a4b
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Fri Nov 8 11:55:59 2024 +0100
gnu: grub: Fix build for the 64bit Hurd.
* gnu/packages/patches/grub-hurd64.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/bootloaders.scm (grub)[arguments]: When building for the
64bit
Hurd, use it in new "apply-hurd64-patch" stage.
Change-Id: I780f6a92418b49e5fe0d23eb1c90e155216f1428
---
gnu/local.mk | 1 +
gnu/packages/bootloaders.scm | 8 ++++++++
gnu/packages/patches/grub-hurd64.patch | 32 ++++++++++++++++++++++++++++++++
3 files changed, 41 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 83387dadb5..e5580fcc24 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1494,6 +1494,7 @@ dist_patch_DATA =
\
%D%/packages/patches/gromacs-tinyxml2.patch \
%D%/packages/patches/groovy-add-exceptionutilsgenerator.patch \
%D%/packages/patches/grub-efi-fat-serial-number.patch \
+ %D%/packages/patches/grub-hurd64.patch \
%D%/packages/patches/grub-setup-root.patch \
%D%/packages/patches/guile-1.8-cpp-4.5.patch \
%D%/packages/patches/guile-2.2-skip-oom-test.patch \
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index da5abaca55..61ea74b69a 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -192,6 +192,14 @@
(setenv "BUILD_FREETYPE_CFLAGS"
(string-append "-I" freetype
"/include/freetype2"))))))
+ #$@(if (target-hurd64?)
+ #~((add-after 'unpack 'apply-hurd64-patch
+ (lambda _
+ (let ((patch
+ #$(local-file
+ (search-patch "grub-hurd64.patch"))))
+ (invoke "patch" "--force" "-p1" "-i" patch)))))
+ #~())
(add-before 'check 'disable-flaky-test
(lambda _
;; This test is unreliable. For more information, see:
diff --git a/gnu/packages/patches/grub-hurd64.patch
b/gnu/packages/patches/grub-hurd64.patch
new file mode 100644
index 0000000000..d5acd99eb8
--- /dev/null
+++ b/gnu/packages/patches/grub-hurd64.patch
@@ -0,0 +1,32 @@
+Upstream-status: Not presented upstream.
+
+From a4eb7d1f2cbd02132a9f5512f1294182576d4653 Mon Sep 17 00:00:00 2001
+From: Janneke Nieuwenhuizen <janneke@gnu.org>
+Date: Fri, 8 Nov 2024 11:47:49 +0100
+Subject: [PATCH] osdep/hurd: Support the 64bit Hurd.
+Content-Transfer-Encoding: 8bit
+Content-Type: text/plain; charset=UTF-8
+
+* grub-core/osdep/hurd/getroot.c (grub_util_find_hurd_root_device):
+Use mach_msg_type_number_t instead of size_t.
+---
+ grub-core/osdep/hurd/getroot.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/grub-core/osdep/hurd/getroot.c b/grub-core/osdep/hurd/getroot.c
+index 0efefdab4..b849700e6 100644
+--- a/grub-core/osdep/hurd/getroot.c
++++ b/grub-core/osdep/hurd/getroot.c
+@@ -58,7 +58,7 @@ grub_util_find_hurd_root_device (const char *path)
+ file_t file;
+ error_t err;
+ char *argz = NULL, *name = NULL, *ret;
+- size_t argz_len = 0;
++ mach_msg_type_number_t argz_len = 0;
+ int i;
+
+ file = file_name_lookup (path, 0, 0);
+--
+Janneke Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond https://LilyPond.org
+Freelance IT https://www.JoyOfSource.com | AvatarĀ® https://AvatarAcademy.com
+
- 38/50: gnu: m4: Fix build for the 64bit Hurd., (continued)
- 38/50: gnu: m4: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 41/50: gnu: commencement: hurd-headers-boot0: Update to 0.9.git20240714., guix-commits, 2024/11/18
- 44/50: gnu: Add gdb-15.2, with support for the 64bit Hurd., guix-commits, 2024/11/18
- 12/50: gnu: glibc/hurd: Add patches for the 64bit Hurd., guix-commits, 2024/11/18
- 19/50: gnu: hurd: Fix build with gcc-14., guix-commits, 2024/11/18
- 20/50: gnu: netdde: Fix build with gcc-14., guix-commits, 2024/11/18
- 22/50: gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd., guix-commits, 2024/11/18
- 26/50: gnu: libgpg-error: Support the 64bit Hurd., guix-commits, 2024/11/18
- 33/50: gnu: rumpkernel: Support the 64bit Hurd., guix-commits, 2024/11/18
- 34/50: gnu: hurd: Build fixes for the 64bit Hurd., guix-commits, 2024/11/18
- 36/50: gnu: grub: Fix build for the 64bit Hurd.,
guix-commits <=
- 11/50: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/11/18
- 14/50: gnu: git-minimal: Support [cross-]build with gcc-14 and the 64bit Hurd., guix-commits, 2024/11/18
- 25/50: system: image: Add hurd64 image types., guix-commits, 2024/11/18
- 17/50: gnu: perl: Support [cross-]building with gcc-14 and for 64bit Hurd., guix-commits, 2024/11/18
- 29/50: gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/18
- 32/50: gnu: rumpkernel: Update to f1ffd6405f225336e595a0f99f01095ed7438337., guix-commits, 2024/11/18
- 35/50: gnu: inetutils: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 37/50: gnu: guile-fibers: Fix build for the 64bit Hurd., guix-commits, 2024/11/18
- 43/50: gnu: gettext: Fix cross-build shebangs., guix-commits, 2024/11/18
- 40/50: gnu: commencement: mig-boot0: Update to 1.8+git20231217.., guix-commits, 2024/11/18