summaryrefslogtreecommitdiff
path: root/meta/recipes-bsp/grub/files/grub-2.00-ignore-gnulib-gets-stupidity.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2013-04-18 17:10:20 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-29 23:40:52 +0100
commit0785489d558c34cacf5cb349949a15e27084efbf (patch)
treeb184d359bd6d4ad6d96627a695f3eac9d6e8c067 /meta/recipes-bsp/grub/files/grub-2.00-ignore-gnulib-gets-stupidity.patch
parent20ded0315924a083e07900a8a3308bd351b15a8b (diff)
downloadopenembedded-core-0785489d558c34cacf5cb349949a15e27084efbf.tar.gz
openembedded-core-0785489d558c34cacf5cb349949a15e27084efbf.tar.bz2
openembedded-core-0785489d558c34cacf5cb349949a15e27084efbf.zip
grub-efi-native: fix build on modern distributions without gets()
O irony: the grub2/gnulib nag macro that says "don't use gets, use fgets" breaks the build if you're using a recent (e)glibc release that has gets removed. Fedora already #if 0's the check in grub, so I stole their patch. (From OE-Core rev: 261e377b08388a288ee521a3629877b89e18e42b) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub/files/grub-2.00-ignore-gnulib-gets-stupidity.patch')
-rw-r--r--meta/recipes-bsp/grub/files/grub-2.00-ignore-gnulib-gets-stupidity.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/files/grub-2.00-ignore-gnulib-gets-stupidity.patch b/meta/recipes-bsp/grub/files/grub-2.00-ignore-gnulib-gets-stupidity.patch
new file mode 100644
index 0000000000..70f60015c2
--- /dev/null
+++ b/meta/recipes-bsp/grub/files/grub-2.00-ignore-gnulib-gets-stupidity.patch
@@ -0,0 +1,28 @@
+From f66d54b934710f54999debb72e8b7c620edece1d Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones@redhat.com>
+Date: Fri, 25 May 2012 15:28:19 -0400
+Subject: [PATCH] gnulib accused in build breaking shocker.
+
+Upstream-Status: pending [Fedora will push this]
+
+---
+ 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
+