1 |
commit: 80df3f58ac9916763372ca28c368f5a92cde30c8 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 30 12:49:56 2018 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 30 13:11:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80df3f58 |
7 |
|
8 |
x11-drivers/xf86-input-tslib: remove unused patch(es) |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
.../files/fix-overlapped-variable.patch | 20 --- |
14 |
...f86-input-tslib-0.0.6-xf86XInputSetScreen.patch | 23 --- |
15 |
.../files/xf86-input-tslib-port-ABI-12-r48.patch | 191 --------------------- |
16 |
3 files changed, 234 deletions(-) |
17 |
|
18 |
diff --git a/x11-drivers/xf86-input-tslib/files/fix-overlapped-variable.patch b/x11-drivers/xf86-input-tslib/files/fix-overlapped-variable.patch |
19 |
deleted file mode 100644 |
20 |
index 7a4363e9727..00000000000 |
21 |
--- a/x11-drivers/xf86-input-tslib/files/fix-overlapped-variable.patch |
22 |
+++ /dev/null |
23 |
@@ -1,20 +0,0 @@ |
24 |
---- src/tslib.c.orig 2010-05-19 19:01:01.000000000 +0200 |
25 |
-+++ src/tslib.c 2010-05-19 19:02:00.000000000 +0200 |
26 |
-@@ -543,7 +543,7 @@ |
27 |
- return (pInfo); |
28 |
- } |
29 |
- |
30 |
--_X_EXPORT InputDriverRec TSLIB = { |
31 |
-+_X_EXPORT InputDriverRec TSLIB_DRIVER = { |
32 |
- 1, /* driver version */ |
33 |
- "tslib", /* driver name */ |
34 |
- NULL, /* identify */ |
35 |
-@@ -580,7 +580,7 @@ |
36 |
- { |
37 |
- static Bool Initialised = FALSE; |
38 |
- |
39 |
-- xf86AddInputDriver(&TSLIB, module, 0); |
40 |
-+ xf86AddInputDriver(&TSLIB_DRIVER, module, 0); |
41 |
- |
42 |
- return module; |
43 |
- } |
44 |
|
45 |
diff --git a/x11-drivers/xf86-input-tslib/files/xf86-input-tslib-0.0.6-xf86XInputSetScreen.patch b/x11-drivers/xf86-input-tslib/files/xf86-input-tslib-0.0.6-xf86XInputSetScreen.patch |
46 |
deleted file mode 100644 |
47 |
index d3738bfecb9..00000000000 |
48 |
--- a/x11-drivers/xf86-input-tslib/files/xf86-input-tslib-0.0.6-xf86XInputSetScreen.patch |
49 |
+++ /dev/null |
50 |
@@ -1,23 +0,0 @@ |
51 |
-diff -ur xf86-input-tslib-0.0.6.orig/src/tslib.c xf86-input-tslib-0.0.6/src/tslib.c |
52 |
---- xf86-input-tslib-0.0.6.orig/src/tslib.c 2012-12-05 01:12:16.286597071 +0100 |
53 |
-+++ xf86-input-tslib-0.0.6/src/tslib.c 2012-12-05 01:11:02.686598595 +0100 |
54 |
-@@ -75,6 +75,19 @@ |
55 |
- #define COLLECT_INPUT_OPTIONS(pInfo, options) xf86CollectInputOptions((pInfo), (options)) |
56 |
- #endif |
57 |
- |
58 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) > 13 |
59 |
-+static void |
60 |
-+xf86XInputSetScreen(InputInfoPtr pInfo, |
61 |
-+ int screen_number, |
62 |
-+ int x, |
63 |
-+ int y) |
64 |
-+{ |
65 |
-+ if (miPointerGetScreen(pInfo->dev) != |
66 |
-+ screenInfo.screens[screen_number]) { |
67 |
-+ miPointerSetScreen(pInfo->dev, screen_number, x, y); |
68 |
-+ } |
69 |
-+} |
70 |
-+#endif |
71 |
- |
72 |
- enum { TSLIB_ROTATE_NONE=0, TSLIB_ROTATE_CW=270, TSLIB_ROTATE_UD=180, TSLIB_ROTATE_CCW=90 }; |
73 |
- |
74 |
|
75 |
diff --git a/x11-drivers/xf86-input-tslib/files/xf86-input-tslib-port-ABI-12-r48.patch b/x11-drivers/xf86-input-tslib/files/xf86-input-tslib-port-ABI-12-r48.patch |
76 |
deleted file mode 100644 |
77 |
index a4288fdc135..00000000000 |
78 |
--- a/x11-drivers/xf86-input-tslib/files/xf86-input-tslib-port-ABI-12-r48.patch |
79 |
+++ /dev/null |
80 |
@@ -1,191 +0,0 @@ |
81 |
-Index: xf86-input-tslib-trunk/src/tslib.c |
82 |
-=================================================================== |
83 |
---- xf86-input-tslib-trunk/src/tslib.c (revision 48) |
84 |
-+++ xf86-input-tslib-trunk/src/tslib.c (working copy) |
85 |
-@@ -69,6 +69,13 @@ |
86 |
- #define DEFAULT_HEIGHT 240 |
87 |
- #define DEFAULT_WIDTH 320 |
88 |
- |
89 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12 |
90 |
-+#define COLLECT_INPUT_OPTIONS(pInfo, options) xf86CollectInputOptions((pInfo), (options), NULL) |
91 |
-+#else |
92 |
-+#define COLLECT_INPUT_OPTIONS(pInfo, options) xf86CollectInputOptions((pInfo), (options)) |
93 |
-+#endif |
94 |
-+ |
95 |
-+ |
96 |
- enum { TSLIB_ROTATE_NONE=0, TSLIB_ROTATE_CW=270, TSLIB_ROTATE_UD=180, TSLIB_ROTATE_CCW=90 }; |
97 |
- |
98 |
- enum button_state { BUTTON_NOT_PRESSED = 0, BUTTON_1_PRESSED = 1, BUTTON_3_CLICK = 3, BUTTON_3_CLICKED=4, BUTTON_EMULATION_OFF=-1 }; |
99 |
-@@ -106,7 +113,7 @@ |
100 |
- } |
101 |
- |
102 |
- static Bool |
103 |
--ConvertProc( LocalDevicePtr local, |
104 |
-+ConvertProc( InputInfoPtr local, |
105 |
- int first, |
106 |
- int num, |
107 |
- int v0, |
108 |
-@@ -135,7 +142,7 @@ |
109 |
- return t; |
110 |
- } |
111 |
- |
112 |
--static void ReadInput (LocalDevicePtr local) |
113 |
-+static void ReadInput (InputInfoPtr local) |
114 |
- { |
115 |
- struct ts_priv *priv = (struct ts_priv *) (local->private); |
116 |
- struct ts_sample samp; |
117 |
-@@ -382,7 +389,11 @@ |
118 |
- axiswidth - 1, /* max val */ |
119 |
- axiswidth, /* resolution */ |
120 |
- 0, /* min_res */ |
121 |
-- axiswidth); /* max_res */ |
122 |
-+ axiswidth /* max_res */ |
123 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 |
124 |
-+ ,Absolute |
125 |
-+#endif |
126 |
-+ ); |
127 |
- |
128 |
- InitValuatorAxisStruct(device, 1, |
129 |
- #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 |
130 |
-@@ -392,7 +403,11 @@ |
131 |
- axisheight - 1, /* max val */ |
132 |
- axisheight, /* resolution */ |
133 |
- 0, /* min_res */ |
134 |
-- axisheight); /* max_res */ |
135 |
-+ axisheight /* max_res */ |
136 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 |
137 |
-+ ,Absolute |
138 |
-+#endif |
139 |
-+ ); |
140 |
- |
141 |
- if (InitProximityClassDeviceStruct (device) == FALSE) { |
142 |
- ErrorF ("Unable to allocate EVTouch touchscreen ProximityClassDeviceStruct\n"); |
143 |
-@@ -434,7 +449,7 @@ |
144 |
- ErrorF("%s\n", __FUNCTION__); |
145 |
- xf86TslibControlProc(pInfo->dev, DEVICE_OFF); |
146 |
- ts_close(priv->ts); |
147 |
-- xfree(pInfo->private); |
148 |
-+ free(pInfo->private); |
149 |
- pInfo->private = NULL; |
150 |
- xf86DeleteInput(pInfo, 0); |
151 |
- } |
152 |
-@@ -444,47 +459,57 @@ |
153 |
- * |
154 |
- * called when the module subsection is found in XF86Config |
155 |
- */ |
156 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 |
157 |
-+static int |
158 |
-+xf86TslibInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags) |
159 |
-+#else |
160 |
- static InputInfoPtr |
161 |
- xf86TslibInit(InputDriverPtr drv, IDevPtr dev, int flags) |
162 |
-+#endif |
163 |
- { |
164 |
- struct ts_priv *priv; |
165 |
- char *s; |
166 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12 |
167 |
- InputInfoPtr pInfo; |
168 |
-+#endif |
169 |
- |
170 |
-- priv = xcalloc (1, sizeof (struct ts_priv)); |
171 |
-+ priv = calloc (1, sizeof (struct ts_priv)); |
172 |
- if (!priv) |
173 |
-- return NULL; |
174 |
-+ return BadValue; |
175 |
- |
176 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12 |
177 |
- if (!(pInfo = xf86AllocateInput(drv, 0))) { |
178 |
-- xfree(priv); |
179 |
-- return NULL; |
180 |
-+ free(priv); |
181 |
-+ return BadValue; |
182 |
- } |
183 |
- |
184 |
- /* Initialise the InputInfoRec. */ |
185 |
- pInfo->name = dev->identifier; |
186 |
-- pInfo->type_name = XI_TOUCHSCREEN; |
187 |
- pInfo->flags = |
188 |
- XI86_KEYBOARD_CAPABLE | XI86_POINTER_CAPABLE | |
189 |
- XI86_SEND_DRAG_EVENTS; |
190 |
-- pInfo->device_control = xf86TslibControlProc; |
191 |
-- pInfo->read_input = ReadInput; |
192 |
- #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0 |
193 |
- pInfo->motion_history_proc = xf86GetMotionEvents; |
194 |
- pInfo->history_size = 0; |
195 |
- #endif |
196 |
-- pInfo->control_proc = NULL; |
197 |
-+ pInfo->conf_idev = dev; |
198 |
- pInfo->close_proc = NULL; |
199 |
-- pInfo->switch_mode = NULL; |
200 |
- pInfo->conversion_proc = ConvertProc; |
201 |
- pInfo->reverse_conversion_proc = NULL; |
202 |
-- pInfo->dev = NULL; |
203 |
- pInfo->private_flags = 0; |
204 |
- pInfo->always_core_feedback = 0; |
205 |
-- pInfo->conf_idev = dev; |
206 |
-+#endif |
207 |
-+ |
208 |
-+ pInfo->type_name = XI_TOUCHSCREEN; |
209 |
-+ pInfo->control_proc = NULL; |
210 |
-+ pInfo->read_input = ReadInput; |
211 |
-+ pInfo->device_control = xf86TslibControlProc; |
212 |
-+ pInfo->switch_mode = NULL; |
213 |
- pInfo->private = priv; |
214 |
-+ pInfo->dev = NULL; |
215 |
- |
216 |
- /* Collect the options, and process the common options. */ |
217 |
-- xf86CollectInputOptions(pInfo, NULL, NULL); |
218 |
-+ COLLECT_INPUT_OPTIONS(pInfo, NULL); |
219 |
- xf86ProcessCommonOptions(pInfo, pInfo->options); |
220 |
- |
221 |
- priv->screen_num = xf86SetIntOption(pInfo->options, "ScreenNumber", 0 ); |
222 |
-@@ -510,23 +535,31 @@ |
223 |
- priv->rotate = TSLIB_ROTATE_NONE; |
224 |
- } |
225 |
- |
226 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12 |
227 |
- s = xf86CheckStrOption(dev->commonOptions, "path", NULL); |
228 |
-+#else |
229 |
-+ s = xf86CheckStrOption(pInfo->options, "path", NULL); |
230 |
-+#endif |
231 |
- if (!s) |
232 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12 |
233 |
- s = xf86CheckStrOption(dev->commonOptions, "Device", NULL); |
234 |
-+#else |
235 |
-+ s = xf86CheckStrOption(pInfo->options, "Device", NULL); |
236 |
-+#endif |
237 |
- |
238 |
- priv->ts = ts_open(s, 1); |
239 |
-- xfree(s); |
240 |
-+ free(s); |
241 |
- |
242 |
- if (!priv->ts) { |
243 |
- ErrorF("ts_open failed (device=%s)\n",s); |
244 |
- xf86DeleteInput(pInfo, 0); |
245 |
-- return NULL; |
246 |
-+ return BadValue; |
247 |
- } |
248 |
- |
249 |
- if (ts_config(priv->ts)) { |
250 |
- ErrorF("ts_config failed\n"); |
251 |
- xf86DeleteInput(pInfo, 0); |
252 |
-- return NULL; |
253 |
-+ return BadValue; |
254 |
- } |
255 |
- |
256 |
- pInfo->fd = ts_fd(priv->ts); |
257 |
-@@ -536,11 +569,13 @@ |
258 |
- priv->state = BUTTON_EMULATION_OFF; |
259 |
- } |
260 |
- |
261 |
-+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 12 |
262 |
- /* Mark the device configured */ |
263 |
- pInfo->flags |= XI86_CONFIGURED; |
264 |
-+#endif |
265 |
- |
266 |
- /* Return the configured device */ |
267 |
-- return (pInfo); |
268 |
-+ return Success; |
269 |
- } |
270 |
- |
271 |
- _X_EXPORT InputDriverRec TSLIB = { |