1 Upstream-Status: Pending
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.
8 gcc5's cpp inserts patterns like this:
11 __attribute__((visibility("default")))
12 int WaitForSomething(int *
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.
18 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
20 hw/xfree86/sdksyms.sh | 17 +++++++++++++++++
21 1 file changed, 17 insertions(+)
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 {
31 + # detect the following gcc5 cpp pattern and skip it:
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
38 + if ($0 ~ "^extern.* $") {
48 # skip attribute, if any
49 while ($n ~ /^(__attribute__|__global)/ ||
50 # skip modifiers, if any