[grub] Fix Rawhide build

Lubomir Rintel lkundrak at fedoraproject.org
Fri Mar 11 17:20:42 UTC 2011


commit edcfcc5ad62ac972d3d0d0dbb666fee2c4d5173d
Author: Lubomir Rintel <lkundrak at v3.sk>
Date:   Fri Mar 11 18:18:46 2011 +0100

    Fix Rawhide build

 grub-0.97-uninitialized.patch |   27 +++++++++++++++++++++++++++
 grub.spec                     |    4 ++++
 2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/grub-0.97-uninitialized.patch b/grub-0.97-uninitialized.patch
new file mode 100644
index 0000000..87cac49
--- /dev/null
+++ b/grub-0.97-uninitialized.patch
@@ -0,0 +1,27 @@
+From e63884733ffd3e13e9fe79f5e8b477bb77ecb826 Mon Sep 17 00:00:00 2001
+From: Lubomir Rintel <lkundrak at v3.sk>
+Date: Fri, 11 Mar 2011 18:12:21 +0100
+Subject: [PATCH] Fix uninitialized warning
+
+This fixes Rawhide build:
+efigraph.c:1348:12: error: 'efi_status' may be used uninitialized in this function [-Werror=uninitialized]
+---
+ efi/efigraph.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/efi/efigraph.c b/efi/efigraph.c
+index 51bfc2d..207f2f4 100644
+--- a/efi/efigraph.c
++++ b/efi/efigraph.c
+@@ -1277,7 +1277,7 @@ static int
+ try_enable(struct graphics_backend *backend)
+ {
+     struct eg *eg = backend->priv;
+-    grub_efi_status_t efi_status;
++    grub_efi_status_t efi_status = GRUB_EFI_UNSUPPORTED;
+     int i;
+ 
+     if (eg->text_mode == 0xffffffff) {
+-- 
+1.7.1
+
diff --git a/grub.spec b/grub.spec
index b7ed228..8bf66e4 100644
--- a/grub.spec
+++ b/grub.spec
@@ -29,6 +29,9 @@ Patch1: grub-0.97-support-4k-sector-size.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=681787
 Patch2: grub-0.97-flat-file-install.patch
 
+# Not in GIT
+Patch3: grub-0.97-uninitialized.patch
+
 %description
 GRUB (Grand Unified Boot Loader) is an experimental boot loader
 capable of booting into most free operating systems - Linux, FreeBSD,
@@ -110,6 +113,7 @@ fi
 %changelog
 * Fri Mar 11 2011 Lubomir Rintel <lkundrak at v3.sk> - 1:0.97-73
 - Support flat file installs (#681787)
+- Fix Rawhide build
 
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:0.97-72
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild


More information about the scm-commits mailing list