1 |
commit: caced4d8e1d9db36c4892e12b1a2e57ff1702e80 |
2 |
Author: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 1 03:59:46 2021 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 1 03:59:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=caced4d8 |
7 |
|
8 |
x11-base/xorg-server: rebase patches so they will apply properly |
9 |
|
10 |
Closes: https://github.com/gentoo/musl/issues/431 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
12 |
Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org> |
13 |
|
14 |
.../files/xorg-server-1.12-unloadsubmodule.patch | 44 +++++++---------- |
15 |
...rver-1.18-support-multiple-Files-sections.patch | 30 +++++++++--- |
16 |
.../files/xorg-server-1.20.11-arm-musl.patch | 22 +++++++-- |
17 |
.../xorg-server-1.20.11.fix-musl-input_event.patch | 55 ++++++++++++++-------- |
18 |
4 files changed, 95 insertions(+), 56 deletions(-) |
19 |
|
20 |
diff --git a/x11-base/xorg-server/files/xorg-server-1.12-unloadsubmodule.patch b/x11-base/xorg-server/files/xorg-server-1.12-unloadsubmodule.patch |
21 |
index 57c7349..ab08df7 100644 |
22 |
--- a/x11-base/xorg-server/files/xorg-server-1.12-unloadsubmodule.patch |
23 |
+++ b/x11-base/xorg-server/files/xorg-server-1.12-unloadsubmodule.patch |
24 |
@@ -1,29 +1,28 @@ |
25 |
-diff -u13 -r xorg-server-1.12.3-old/hw/xfree86/loader/loadmod.c xorg-server-1.12.3/hw/xfree86/loader/loadmod.c |
26 |
---- xorg-server-1.12.3-old/hw/xfree86/loader/loadmod.c 2012-09-05 18:26:42.000000000 +0200 |
27 |
-+++ xorg-server-1.12.3/hw/xfree86/loader/loadmod.c 2012-09-05 18:28:54.000000000 +0200 |
28 |
-@@ -1109,39 +1109,38 @@ |
29 |
- static void |
30 |
- RemoveChild(ModuleDescPtr child) |
31 |
- { |
32 |
- ModuleDescPtr mdp; |
33 |
- ModuleDescPtr prevsib; |
34 |
- ModuleDescPtr parent; |
35 |
- |
36 |
- if (!child->parent) |
37 |
- return; |
38 |
- |
39 |
+From 4d5c555b05cf09e186cab9411aea3155018dab59 Mon Sep 17 00:00:00 2001 |
40 |
+From: |
41 |
+Date: Fri, 30 Apr 2021 22:50:01 -0500 |
42 |
+Subject: [PATCH 1/4] |
43 |
+ |
44 |
+--- |
45 |
+ hw/xfree86/loader/loadmod.c | 19 +++++++++---------- |
46 |
+ 1 file changed, 9 insertions(+), 10 deletions(-) |
47 |
+ |
48 |
+diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c |
49 |
+index a6356bd..a2130a0 100644 |
50 |
+--- a/hw/xfree86/loader/loadmod.c |
51 |
++++ b/hw/xfree86/loader/loadmod.c |
52 |
+@@ -892,19 +892,18 @@ RemoveChild(ModuleDescPtr child) |
53 |
parent = child->parent; |
54 |
if (parent->child == child) { |
55 |
parent->child = child->sib; |
56 |
- return; |
57 |
-- } |
58 |
+ } |
59 |
- |
60 |
- prevsib = parent->child; |
61 |
- mdp = prevsib->sib; |
62 |
- while (mdp && mdp != child) { |
63 |
- prevsib = mdp; |
64 |
- mdp = mdp->sib; |
65 |
-+ } |
66 |
+ else { |
67 |
+ prevsib = parent->child; |
68 |
+ mdp = prevsib->sib; |
69 |
@@ -41,13 +40,6 @@ diff -u13 -r xorg-server-1.12.3-old/hw/xfree86/loader/loadmod.c xorg-server-1.12 |
70 |
} |
71 |
|
72 |
void |
73 |
- LoaderErrorMsg(const char *name, const char *modname, int errmaj, int errmin) |
74 |
- { |
75 |
- const char *msg; |
76 |
- MessageType type = X_ERROR; |
77 |
- |
78 |
- switch (errmaj) { |
79 |
- case LDR_NOERROR: |
80 |
- msg = "no error"; |
81 |
- break; |
82 |
- case LDR_NOMEM: |
83 |
+-- |
84 |
+2.26.3 |
85 |
+ |
86 |
|
87 |
diff --git a/x11-base/xorg-server/files/xorg-server-1.18-support-multiple-Files-sections.patch b/x11-base/xorg-server/files/xorg-server-1.18-support-multiple-Files-sections.patch |
88 |
index 0a61145..3a58d71 100644 |
89 |
--- a/x11-base/xorg-server/files/xorg-server-1.18-support-multiple-Files-sections.patch |
90 |
+++ b/x11-base/xorg-server/files/xorg-server-1.18-support-multiple-Files-sections.patch |
91 |
@@ -1,10 +1,25 @@ |
92 |
-See http://lists.x.org/archives/xorg-devel/2015-February/045755.html |
93 |
+From 8fd90ff40ab7c59c7f0a6430737fbb31d0214e44 Mon Sep 17 00:00:00 2001 |
94 |
+From: Michał Górny <mgorny at gentoo.org> |
95 |
+Date: Fri, 30 Apr 2021 22:51:14 -0500 |
96 |
+Subject: [PATCH 2/4] Support reading multiple 'Files' sections in |
97 |
+ configuration, concatenating the resulting paths. This makes it possible to |
98 |
+ add ModulePaths and FontPaths within xorg.conf.d/ files without interfering |
99 |
+ with user-provided xorg.conf. Gentoo needs this to support using replacement |
100 |
+ xorg modules provided by proprietary video drivers. |
101 |
+ |
102 |
+Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=88003 |
103 |
+Signed-off-by: Michał Górny <mgorny at gentoo.org> |
104 |
+--- |
105 |
+ hw/xfree86/parser/Files.c | 8 ++++++-- |
106 |
+ hw/xfree86/parser/configProcs.h | 2 +- |
107 |
+ hw/xfree86/parser/read.c | 2 +- |
108 |
+ 3 files changed, 8 insertions(+), 4 deletions(-) |
109 |
|
110 |
diff --git a/hw/xfree86/parser/Files.c b/hw/xfree86/parser/Files.c |
111 |
-index 849bf92..5cc3ec7 100644 |
112 |
+index c86ac7a..cad11cc 100644 |
113 |
--- a/hw/xfree86/parser/Files.c |
114 |
+++ b/hw/xfree86/parser/Files.c |
115 |
-@@ -76,14 +76,18 @@ static xf86ConfigSymTabRec FilesTab[] = { |
116 |
+@@ -76,14 +76,18 @@ static const xf86ConfigSymTabRec FilesTab[] = { |
117 |
#define CLEANUP xf86freeFiles |
118 |
|
119 |
XF86ConfFilesPtr |
120 |
@@ -26,7 +41,7 @@ index 849bf92..5cc3ec7 100644 |
121 |
while ((token = xf86getToken(FilesTab)) != ENDSECTION) { |
122 |
switch (token) { |
123 |
diff --git a/hw/xfree86/parser/configProcs.h b/hw/xfree86/parser/configProcs.h |
124 |
-index 171f8e8..e8199fe 100644 |
125 |
+index 7a46e01..0eccd14 100644 |
126 |
--- a/hw/xfree86/parser/configProcs.h |
127 |
+++ b/hw/xfree86/parser/configProcs.h |
128 |
@@ -36,7 +36,7 @@ void xf86freeDeviceList(XF86ConfDevicePtr ptr); |
129 |
@@ -39,10 +54,10 @@ index 171f8e8..e8199fe 100644 |
130 |
void xf86freeFiles(XF86ConfFilesPtr p); |
131 |
|
132 |
diff --git a/hw/xfree86/parser/read.c b/hw/xfree86/parser/read.c |
133 |
-index 327c02a..e0d6139 100644 |
134 |
+index d7e7312..f8f5ed5 100644 |
135 |
--- a/hw/xfree86/parser/read.c |
136 |
+++ b/hw/xfree86/parser/read.c |
137 |
-@@ -110,7 +110,7 @@ xf86readConfigFile(void) |
138 |
+@@ -111,7 +111,7 @@ xf86readConfigFile(void) |
139 |
if (xf86nameCompare(xf86_lex_val.str, "files") == 0) { |
140 |
free(xf86_lex_val.str); |
141 |
xf86_lex_val.str = NULL; |
142 |
@@ -51,3 +66,6 @@ index 327c02a..e0d6139 100644 |
143 |
} |
144 |
else if (xf86nameCompare(xf86_lex_val.str, "serverflags") == 0) { |
145 |
free(xf86_lex_val.str); |
146 |
+-- |
147 |
+2.26.3 |
148 |
+ |
149 |
|
150 |
diff --git a/x11-base/xorg-server/files/xorg-server-1.20.11-arm-musl.patch b/x11-base/xorg-server/files/xorg-server-1.20.11-arm-musl.patch |
151 |
index 541b5c7..4663cc5 100644 |
152 |
--- a/x11-base/xorg-server/files/xorg-server-1.20.11-arm-musl.patch |
153 |
+++ b/x11-base/xorg-server/files/xorg-server-1.20.11-arm-musl.patch |
154 |
@@ -1,7 +1,18 @@ |
155 |
-diff -Naur a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h |
156 |
---- a/hw/xfree86/common/compiler.h 2021-04-29 15:19:17.958218267 -0400 |
157 |
-+++ b/hw/xfree86/common/compiler.h 2021-04-29 15:19:44.362218296 -0400 |
158 |
-@@ -518,7 +518,7 @@ |
159 |
+From 6a4a8b4fc167541bb2ed7911d1b22fc726ca3bf1 Mon Sep 17 00:00:00 2001 |
160 |
+From: |
161 |
+Date: Fri, 30 Apr 2021 22:55:18 -0500 |
162 |
+Subject: [PATCH 4/4] convert to checking GLIBC instead of linux for arm musl |
163 |
+ users |
164 |
+ |
165 |
+--- |
166 |
+ hw/xfree86/common/compiler.h | 2 +- |
167 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
168 |
+ |
169 |
+diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h |
170 |
+index 2b2008b..ddda5bf 100644 |
171 |
+--- a/hw/xfree86/common/compiler.h |
172 |
++++ b/hw/xfree86/common/compiler.h |
173 |
+@@ -518,7 +518,7 @@ xf86WriteMmio32Le(__volatile__ void *base, const unsigned long offset, |
174 |
barrier(); |
175 |
} |
176 |
|
177 |
@@ -10,3 +21,6 @@ diff -Naur a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h |
178 |
#if defined(__arm32__) || defined(__mips64) |
179 |
#define PORT_SIZE long |
180 |
#else |
181 |
+-- |
182 |
+2.26.3 |
183 |
+ |
184 |
|
185 |
diff --git a/x11-base/xorg-server/files/xorg-server-1.20.11.fix-musl-input_event.patch b/x11-base/xorg-server/files/xorg-server-1.20.11.fix-musl-input_event.patch |
186 |
index ec1ae8f..cd79b67 100644 |
187 |
--- a/x11-base/xorg-server/files/xorg-server-1.20.11.fix-musl-input_event.patch |
188 |
+++ b/x11-base/xorg-server/files/xorg-server-1.20.11.fix-musl-input_event.patch |
189 |
@@ -1,23 +1,19 @@ |
190 |
-Source: @pullmoll |
191 |
-Upstream: no |
192 |
-Reason: Gracefully handle transition to 64 bit time with musl-1.2.1 |
193 |
+From d8f70ec853fcd43199ca4887f75acc8a544084ce Mon Sep 17 00:00:00 2001 |
194 |
+From: |
195 |
+Date: Fri, 30 Apr 2021 22:53:16 -0500 |
196 |
+Subject: [PATCH 3/4] Gracefully handle transition to 64 bit time with |
197 |
+ musl-1.2.1 |
198 |
|
199 |
---- hw/dmx/input/usb-keyboard.c 2020-12-01 17:32:25.000000000 +0100 |
200 |
-+++ hw/dmx/input/usb-keyboard.c 2020-12-01 20:28:02.489695853 +0100 |
201 |
-@@ -278,8 +278,8 @@ |
202 |
- |
203 |
- gettimeofday(&tv, NULL); |
204 |
- for (i = 0; i < 5; i++) { |
205 |
-- event.time.tv_sec = tv.tv_sec; |
206 |
-- event.time.tv_usec = tv.tv_usec; |
207 |
-+ event.input_event_sec = tv.tv_sec; |
208 |
-+ event.input_event_usec = tv.tv_usec; |
209 |
- event.type = EV_LED; |
210 |
- if (i == 0) |
211 |
- led = 1; /* LED_CAPSL == 0x01 */ |
212 |
---- hw/dmx/examples/ev.c 2020-12-01 17:32:25.000000000 +0100 |
213 |
-+++ hw/dmx/examples/ev.c 2020-12-01 20:31:24.585605950 +0100 |
214 |
-@@ -114,8 +114,8 @@ |
215 |
+--- |
216 |
+ hw/dmx/examples/ev.c | 9 +++++---- |
217 |
+ hw/dmx/input/usb-keyboard.c | 4 ++-- |
218 |
+ 2 files changed, 7 insertions(+), 6 deletions(-) |
219 |
+ |
220 |
+diff --git a/hw/dmx/examples/ev.c b/hw/dmx/examples/ev.c |
221 |
+index 09e703c..692c2ef 100644 |
222 |
+--- a/hw/dmx/examples/ev.c |
223 |
++++ b/hw/dmx/examples/ev.c |
224 |
+@@ -114,8 +114,8 @@ main(int argc, char **argv) |
225 |
if ((fd = open(name, O_RDWR, 0)) >= 0) { |
226 |
printf("%s: open, fd = %d\n", name, fd); |
227 |
for (i = 0; i < LED_MAX; i++) { |
228 |
@@ -28,7 +24,7 @@ Reason: Gracefully handle transition to 64 bit time with musl-1.2.1 |
229 |
event.type = EV_LED; |
230 |
event.code = i; |
231 |
event.value = 0; |
232 |
-@@ -123,9 +123,10 @@ |
233 |
+@@ -123,10 +123,11 @@ main(int argc, char **argv) |
234 |
} |
235 |
|
236 |
while ((rc = read(fd, &event, sizeof(event))) > 0) { |
237 |
@@ -41,3 +37,22 @@ Reason: Gracefully handle transition to 64 bit time with musl-1.2.1 |
238 |
+ t.tv_usec, event.type, event.code, event.value); |
239 |
switch (event.type) { |
240 |
case EV_KEY: |
241 |
+ if (event.code > BTN_MISC) { |
242 |
+diff --git a/hw/dmx/input/usb-keyboard.c b/hw/dmx/input/usb-keyboard.c |
243 |
+index b26c822..feac3d2 100644 |
244 |
+--- a/hw/dmx/input/usb-keyboard.c |
245 |
++++ b/hw/dmx/input/usb-keyboard.c |
246 |
+@@ -278,8 +278,8 @@ kbdUSBCtrl(DevicePtr pDev, KeybdCtrl * ctrl) |
247 |
+ |
248 |
+ gettimeofday(&tv, NULL); |
249 |
+ for (i = 0; i < 5; i++) { |
250 |
+- event.time.tv_sec = tv.tv_sec; |
251 |
+- event.time.tv_usec = tv.tv_usec; |
252 |
++ event.input_event_sec = tv.tv_sec; |
253 |
++ event.input_event_usec = tv.tv_usec; |
254 |
+ event.type = EV_LED; |
255 |
+ if (i == 0) |
256 |
+ led = 1; /* LED_CAPSL == 0x01 */ |
257 |
+-- |
258 |
+2.26.3 |
259 |
+ |