1 |
commit: 9032760dedbfa7635de6687ab0b1e425cf6b4b7a |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 6 13:22:03 2017 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 6 13:22:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9032760d |
7 |
|
8 |
x11-drivers/xf86-input-wacom: Add support for xorg-server-1.19. |
9 |
|
10 |
...put-wacom-0.34.0-xorg-server-1.19-support.patch | 49 ++++++++++++++++++++++ |
11 |
.../xf86-input-wacom-0.34.0.ebuild | 4 ++ |
12 |
2 files changed, 53 insertions(+) |
13 |
|
14 |
diff --git a/x11-drivers/xf86-input-wacom/files/xf86-input-wacom-0.34.0-xorg-server-1.19-support.patch b/x11-drivers/xf86-input-wacom/files/xf86-input-wacom-0.34.0-xorg-server-1.19-support.patch |
15 |
new file mode 100644 |
16 |
index 00000000000..3c1494d3605 |
17 |
--- /dev/null |
18 |
+++ b/x11-drivers/xf86-input-wacom/files/xf86-input-wacom-0.34.0-xorg-server-1.19-support.patch |
19 |
@@ -0,0 +1,49 @@ |
20 |
+From f0dedf7a610ac97bc45738492b98ce4f1e0514ec Mon Sep 17 00:00:00 2001 |
21 |
+From: Jason Gerecke <killertofu@×××××.com> |
22 |
+Date: Wed, 18 Jan 2017 09:00:10 -0800 |
23 |
+Subject: [PATCH] tests: Fix compilation under ABI 25 and greater |
24 |
+ |
25 |
+The X server recently deprecated xf86BlockSIGIO and xf86UnblockSIGIO and |
26 |
+simultaneously defined them inline within xf86.h. The new inline definition |
27 |
+causes problems both because fake-symbols.c will end up redefining them, |
28 |
+and because the function bodies reference a symbol that does not get included |
29 |
+when building the tests. To fix these errors, update fake-symbols.c with |
30 |
+updated include guards and a definition of the undefined symbols. |
31 |
+ |
32 |
+Signed-off-by: Jason Gerecke <jason.gerecke@×××××.com> |
33 |
+Reviewed-by: Peter Hutterer <peter.hutterer@×××××.net> |
34 |
+--- |
35 |
+ test/fake-symbols.c | 10 ++++++++++ |
36 |
+ 1 file changed, 10 insertions(+) |
37 |
+ |
38 |
+diff --git a/test/fake-symbols.c b/test/fake-symbols.c |
39 |
+index 6f2c10a..e649fb9 100644 |
40 |
+--- a/test/fake-symbols.c |
41 |
++++ b/test/fake-symbols.c |
42 |
+@@ -493,6 +493,7 @@ void TimerFree(OsTimerPtr timer) |
43 |
+ { |
44 |
+ } |
45 |
+ |
46 |
++#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 24 |
47 |
+ int |
48 |
+ xf86BlockSIGIO (void) |
49 |
+ { |
50 |
+@@ -503,6 +504,15 @@ void |
51 |
+ xf86UnblockSIGIO (int wasset) |
52 |
+ { |
53 |
+ } |
54 |
++#else |
55 |
++void input_lock (void) |
56 |
++{ |
57 |
++} |
58 |
++ |
59 |
++void input_unlock (void) |
60 |
++{ |
61 |
++} |
62 |
++#endif |
63 |
+ |
64 |
+ /* This is not the same as the X server one, but it'll do for the tests */ |
65 |
+ #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 14 |
66 |
+-- |
67 |
+2.10.2 |
68 |
+ |
69 |
|
70 |
diff --git a/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild b/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild |
71 |
index 61c5f062eb9..202bdb05c93 100644 |
72 |
--- a/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild |
73 |
+++ b/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild |
74 |
@@ -27,6 +27,10 @@ RDEPEND="dev-libs/libwacom |
75 |
DEPEND="${RDEPEND} |
76 |
x11-proto/randrproto" |
77 |
|
78 |
+PATCHES=( |
79 |
+ "${FILESDIR}/${P}-xorg-server-1.19-support.patch" |
80 |
+) |
81 |
+ |
82 |
pkg_setup() { |
83 |
linux-info_pkg_setup |