summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-05-11 10:35:17 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-13 13:41:30 +0100
commita6f67e23b85ee389e721fba9d36da462b7bc9945 (patch)
tree586354c6af5c67c9da0b2fdceeb875eada4f40c0 /meta/recipes-bsp
parentf0d2bd3d90443162c69d7538c457fb8123552f0f (diff)
downloadpoky-a6f67e23b85ee389e721fba9d36da462b7bc9945.tar.gz
grub: Fix build with gcc-6
Backport patch which silences following '../../grub-2.00/grub-core/'`gfxmenu/model.c ../../grub-2.00/grub-core/gettext/gettext.c:37:36: error: storage size of 'main_context' isn't known static struct grub_gettext_context main_context, secondary_context; ^~~~~~~~~~~~ make[3]: *** [gettext/gettext_module-gettext.o] Error 1 (From OE-Core rev: 4efac9861ab59d696bdc81ea59497febfa2d0dc8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/grub/files/0001-grub-core-gettext-gettext.c-main_context-secondary_c.patch39
-rw-r--r--meta/recipes-bsp/grub/grub2.inc1
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/files/0001-grub-core-gettext-gettext.c-main_context-secondary_c.patch b/meta/recipes-bsp/grub/files/0001-grub-core-gettext-gettext.c-main_context-secondary_c.patch
new file mode 100644
index 0000000000..6ec2363ae3
--- /dev/null
+++ b/meta/recipes-bsp/grub/files/0001-grub-core-gettext-gettext.c-main_context-secondary_c.patch
@@ -0,0 +1,39 @@
1From f30c692c1f9ef0e93bee2b408a24baa017f1ca9d Mon Sep 17 00:00:00 2001
2From: Vladimir Serbinenko <phcoder@gmail.com>
3Date: Thu, 7 Nov 2013 01:01:47 +0100
4Subject: [PATCH] * grub-core/gettext/gettext.c (main_context),
5 (secondary_context): Define after defining type and not before.
6
7---
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9Upstream-Status: Backport
10
11 ChangeLog | 5 +++++
12 grub-core/gettext/gettext.c | 4 ++--
13 2 files changed, 7 insertions(+), 2 deletions(-)
14
15diff --git a/grub-core/gettext/gettext.c b/grub-core/gettext/gettext.c
16index df73570..4880cef 100644
17--- a/grub-core/gettext/gettext.c
18+++ b/grub-core/gettext/gettext.c
19@@ -34,8 +34,6 @@ GRUB_MOD_LICENSE ("GPLv3+");
20 http://www.gnu.org/software/autoconf/manual/gettext/MO-Files.html .
21 */
22
23-static struct grub_gettext_context main_context, secondary_context;
24-
25 static const char *(*grub_gettext_original) (const char *s);
26
27 struct grub_gettext_msg
28@@ -69,6 +67,8 @@ struct grub_gettext_context
29 struct grub_gettext_msg *grub_gettext_msg_list;
30 };
31
32+static struct grub_gettext_context main_context, secondary_context;
33+
34 #define MO_MAGIC_NUMBER 0x950412de
35
36 static grub_err_t
37--
381.9.1
39
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc
index dd1ffe2bdc..0b169bfbea 100644
--- a/meta/recipes-bsp/grub/grub2.inc
+++ b/meta/recipes-bsp/grub/grub2.inc
@@ -30,6 +30,7 @@ SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
30 file://0001-Fix-CVE-2015-8370-Grub2-user-pass-vulnerability.patch \ 30 file://0001-Fix-CVE-2015-8370-Grub2-user-pass-vulnerability.patch \
31 file://0001-Remove-direct-_llseek-code-and-require-long-filesyst.patch \ 31 file://0001-Remove-direct-_llseek-code-and-require-long-filesyst.patch \
32 file://fix-texinfo.patch \ 32 file://fix-texinfo.patch \
33 file://0001-grub-core-gettext-gettext.c-main_context-secondary_c.patch \
33 " 34 "
34 35
35DEPENDS = "flex-native bison-native" 36DEPENDS = "flex-native bison-native"