gnu: Add python-mediafile.
[jackhill/guix/guix.git] / gnu / packages / patches / grub-verifiers-Blocklist-fallout-cleanup.patch
CommitLineData
654de94e
JN
1This patch is needed to build Grub on the Hurd.
2
3Taken from upstream: https://git.savannah.gnu.org/cgit/grub.git/commit//?id=dabdfa1c6a80639197d05f683a445fa8615517fe
4
5From 7606547586b2d6ca1b384e15e0358d3a3ddc48a6 Mon Sep 17 00:00:00 2001
6From: David Michael <fedora.dm0@gmail.com>
7Date: Fri, 5 Jul 2019 07:45:59 -0400
8Subject: verifiers: Blocklist fallout cleanup
9
10Blocklist fallout cleanup after commit 5c6f9bc15 (generic/blocklist: Fix
11implicit declaration of function grub_file_filter_disable_compression()).
12
13Signed-off-by: David Michael <fedora.dm0@gmail.com>
14Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
15
16---
17 grub-core/osdep/generic/blocklist.c | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20diff --git a/grub-core/osdep/generic/blocklist.c b/grub-core/osdep/generic/blocklist.c
21index ea2a511b6..2d9040302 100644
22--- a/grub-core/osdep/generic/blocklist.c
23+++ b/grub-core/osdep/generic/blocklist.c
24@@ -59,7 +59,7 @@ grub_install_get_blocklist (grub_device_t root_dev,
25
26 grub_disk_cache_invalidate_all ();
27
28- file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
29+ file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | GRUB_FILE_TYPE_NO_DECOMPRESS);
30 if (file)
31 {
32 if (grub_file_size (file) != core_size)
33@@ -116,7 +116,7 @@ grub_install_get_blocklist (grub_device_t root_dev,
34
35 grub_file_t file;
36 /* Now read the core image to determine where the sectors are. */
37- file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | FILE_TYPE_NO_DECOMPRESS);
38+ file = grub_file_open (core_path_dev, GRUB_FILE_TYPE_NONE | GRUB_FILE_TYPE_NO_DECOMPRESS);
39 if (! file)
40 grub_util_error ("%s", grub_errmsg);
41