[grub2] Keep on fixing gnulib.

Peter Jones pjones at fedoraproject.org
Thu Jun 28 19:17:20 UTC 2012


commit 9bf0fc0b5e63b111c1337238e2a90c30e8e47924
Author: Peter Jones <pjones at redhat.com>
Date:   Thu Jun 28 15:16:53 2012 -0400

    Keep on fixing gnulib.

 grub-2.00-ignore-gnulib-gets-stupidity.patch |   26 ++++++++++++++++++++++++++
 grub2.spec                                   |    1 +
 2 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/grub-2.00-ignore-gnulib-gets-stupidity.patch b/grub-2.00-ignore-gnulib-gets-stupidity.patch
new file mode 100644
index 0000000..345c19d
--- /dev/null
+++ b/grub-2.00-ignore-gnulib-gets-stupidity.patch
@@ -0,0 +1,26 @@
+From f66d54b934710f54999debb72e8b7c620edece1d Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones at redhat.com>
+Date: Fri, 25 May 2012 15:28:19 -0400
+Subject: [PATCH] gnulib accused in build breaking shocker.
+
+---
+ grub-core/gnulib/stdio.in.h |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/grub-core/gnulib/stdio.in.h b/grub-core/gnulib/stdio.in.h
+index 80b9dbf..69932d9 100644
+--- a/grub-core/gnulib/stdio.in.h
++++ b/grub-core/gnulib/stdio.in.h
+@@ -141,7 +141,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
+    so any use of gets warrants an unconditional warning.  Assume it is
+    always declared, since it is required by C89.  */
+ #undef gets
++#if 0
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
+ 
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+-- 
+1.7.10.1
+
diff --git a/grub2.spec b/grub2.spec
index c85ee29..ffd6d75 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -55,6 +55,7 @@ Patch5:		grub-1.99-ppc-terminfo.patch
 Patch10:	grub-2.00-add-fw_path-search.patch
 Patch11:	grub-2.00-Add-fwsetup.patch
 Patch13:	grub-2.00-Dont-set-boot-on-ppc.patch
+Patch18:	grub-2.00-ignore-gnulib-gets-stupidity.patch
 Patch19:	grub-2.00-who-trusts-you-and-who-do-you-trust.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)


More information about the scm-commits mailing list