diff options
| author | Khem Raj <raj.khem@gmail.com> | 2015-04-23 20:35:21 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-27 14:59:48 +0100 |
| commit | 44131ab24e7278918274917e9a863b48f5475640 (patch) | |
| tree | bdfed30f88a1f819b29d1c92d290df7186a12123 /meta | |
| parent | 2bdbadd053a5e4f951a81f9094b6f8b99c4403d1 (diff) | |
| download | poky-44131ab24e7278918274917e9a863b48f5475640.tar.gz | |
xserver-xorg: Fix build with gcc-5
Backport a patch from fedora details are in patch header
Change-Id: I6b8dfaae3b751071bf8b0d88b15a4f95c19877f6
(From OE-Core rev: 100ab2578bd2025aed940fddce467a4606962695)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-sdksyms.sh-Make-sdksyms.sh-work-with-gcc5.patch | 50 | ||||
| -rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg_1.16.3.bb | 1 |
2 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-sdksyms.sh-Make-sdksyms.sh-work-with-gcc5.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-sdksyms.sh-Make-sdksyms.sh-work-with-gcc5.patch new file mode 100644 index 0000000000..215c044113 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-sdksyms.sh-Make-sdksyms.sh-work-with-gcc5.patch | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | From 612eb45a2e7a0b35cc3790870e6d0cc42eb50c74 Mon Sep 17 00:00:00 2001 | ||
| 4 | From: Hans de Goede <hdegoede@redhat.com> | ||
| 5 | Date: Wed, 11 Feb 2015 16:26:40 +0100 | ||
| 6 | Subject: [PATCH] sdksyms.sh: Make sdksyms.sh work with gcc5. | ||
| 7 | |||
| 8 | gcc5's cpp inserts patterns like this: | ||
| 9 | |||
| 10 | extern | ||
| 11 | __attribute__((visibility("default"))) | ||
| 12 | int WaitForSomething(int * | ||
| 13 | ); | ||
| 14 | |||
| 15 | This patch make sdksyms.sh work with this. Note my awk skills are weak, so | ||
| 16 | there likely is a better way to deal with this. | ||
| 17 | |||
| 18 | Signed-off-by: Hans de Goede <hdegoede@redhat.com> | ||
| 19 | --- | ||
| 20 | hw/xfree86/sdksyms.sh | 17 +++++++++++++++++ | ||
| 21 | 1 file changed, 17 insertions(+) | ||
| 22 | |||
| 23 | Index: xorg-server-1.16.3/hw/xfree86/sdksyms.sh | ||
| 24 | =================================================================== | ||
| 25 | --- xorg-server-1.16.3.orig/hw/xfree86/sdksyms.sh | ||
| 26 | +++ xorg-server-1.16.3/hw/xfree86/sdksyms.sh | ||
| 27 | @@ -353,6 +353,23 @@ BEGIN { | ||
| 28 | if (sdk) { | ||
| 29 | n = 3; | ||
| 30 | |||
| 31 | + # detect the following gcc5 cpp pattern and skip it: | ||
| 32 | + # extern | ||
| 33 | + # # 320 "../../include/os.h" 3 4 | ||
| 34 | + # __attribute__((visibility("default"))) | ||
| 35 | + # # 320 "../../include/os.h" | ||
| 36 | + # Note in this case the "extern " or "extern void " always has | ||
| 37 | + # a trailing space | ||
| 38 | + if ($0 ~ "^extern.* $") { | ||
| 39 | + getline; | ||
| 40 | + getline; | ||
| 41 | + getline; | ||
| 42 | + getline; | ||
| 43 | + n = 1; | ||
| 44 | + while ($n == " ") | ||
| 45 | + n++; | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | # skip attribute, if any | ||
| 49 | while ($n ~ /^(__attribute__|__global)/ || | ||
| 50 | # skip modifiers, if any | ||
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.16.3.bb b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.16.3.bb index 7eeadd145d..780ece0a33 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.16.3.bb +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.16.3.bb | |||
| @@ -9,6 +9,7 @@ SRC_URI += "file://fix_open_max_preprocessor_error.patch \ | |||
| 9 | file://0001-xkb-Don-t-swap-XkbSetGeometry-data-in-the-input-buff.patch \ | 9 | file://0001-xkb-Don-t-swap-XkbSetGeometry-data-in-the-input-buff.patch \ |
| 10 | file://0001-xkb-Check-strings-length-against-request-size.patch \ | 10 | file://0001-xkb-Check-strings-length-against-request-size.patch \ |
| 11 | file://0001-use-__GLIBC__-guard-for-glibc-specific-code.patch \ | 11 | file://0001-use-__GLIBC__-guard-for-glibc-specific-code.patch \ |
| 12 | file://0001-sdksyms.sh-Make-sdksyms.sh-work-with-gcc5.patch \ | ||
| 12 | " | 13 | " |
| 13 | 14 | ||
| 14 | SRC_URI[md5sum] = "afd93977235584a9caa7528a737c1b52" | 15 | SRC_URI[md5sum] = "afd93977235584a9caa7528a737c1b52" |
