1 |
solar 08/09/23 20:14:02 |
2 |
|
3 |
Added: |
4 |
66_all_uClibc-0.9.29-conditional-sched_affinity.patch |
5 |
69_all_uClibc-0.9.29-fix-gethostent_r-failure-retval.patch |
6 |
71_all_uClibc-arm_fix_alignment.patch |
7 |
72_all_uClibc-0.9.29-linuxthreads.patch |
8 |
74_all_uClibc-0.9.29-rm-whitespace.patch |
9 |
75_all_uClibc-arm-ftruncate64.patch |
10 |
77_all_uClibc-unistd_arm.patch |
11 |
80_all_uClibc-no-locale-in-configure.patch |
12 |
81_all_uClibc-gnu89-inline.patch |
13 |
Log: |
14 |
- import initial gentoo patchset for 0.9.30_rc1 |
15 |
|
16 |
Revision Changes Path |
17 |
1.1 src/patchsets/uclibc/0.9.30/66_all_uClibc-0.9.29-conditional-sched_affinity.patch |
18 |
|
19 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/66_all_uClibc-0.9.29-conditional-sched_affinity.patch?rev=1.1&view=markup |
20 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/66_all_uClibc-0.9.29-conditional-sched_affinity.patch?rev=1.1&content-type=text/plain |
21 |
|
22 |
Index: 66_all_uClibc-0.9.29-conditional-sched_affinity.patch |
23 |
=================================================================== |
24 |
diff -ur uClibc-0.9.29/libc/sysdeps/linux/common/sched_getaffinity.c uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_getaffinity.c |
25 |
--- uClibc-0.9.29/libc/sysdeps/linux/common/sched_getaffinity.c 2007-02-12 16:52:32.000000000 -0600 |
26 |
+++ uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_getaffinity.c 2007-05-09 18:05:09.397411811 -0500 |
27 |
@@ -26,6 +26,7 @@ |
28 |
#include <string.h> |
29 |
#include <sys/param.h> |
30 |
|
31 |
+#ifdef __NR_sched_getaffinity |
32 |
/* Experimentally off - libc_hidden_proto(memset) */ |
33 |
|
34 |
#define __NR___syscall_sched_getaffinity __NR_sched_getaffinity |
35 |
@@ -45,5 +46,15 @@ |
36 |
} |
37 |
return res; |
38 |
} |
39 |
+#else |
40 |
+/* |
41 |
+int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *cpuset) |
42 |
+{ |
43 |
+<----->__set_errno(ENOSYS); |
44 |
+<----->return -1; |
45 |
+} |
46 |
+*/ |
47 |
+ |
48 |
+#endif |
49 |
|
50 |
#endif |
51 |
diff -ur uClibc-0.9.29/libc/sysdeps/linux/common/sched_setaffinity.c uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_setaffinity.c |
52 |
--- uClibc-0.9.29/libc/sysdeps/linux/common/sched_setaffinity.c 2007-02-12 16:52:32.000000000 -0600 |
53 |
+++ uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_setaffinity.c 2007-05-09 18:05:09.397411811 -0500 |
54 |
@@ -31,6 +31,7 @@ |
55 |
#include <sys/types.h> |
56 |
#include <alloca.h> |
57 |
|
58 |
+#ifdef __NR_sched_setaffinity |
59 |
libc_hidden_proto(getpid) |
60 |
|
61 |
#define __NR___syscall_sched_setaffinity __NR_sched_setaffinity |
62 |
@@ -74,5 +75,14 @@ |
63 |
|
64 |
return INLINE_SYSCALL (sched_setaffinity, 3, pid, cpusetsize, cpuset); |
65 |
} |
66 |
+#else |
67 |
+/* |
68 |
+int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset) |
69 |
+{ |
70 |
+ __set_errno(ENOSYS); |
71 |
+ return -1; |
72 |
+} |
73 |
+*/ |
74 |
+#endif |
75 |
#endif |
76 |
#endif |
77 |
|
78 |
|
79 |
|
80 |
1.1 src/patchsets/uclibc/0.9.30/69_all_uClibc-0.9.29-fix-gethostent_r-failure-retval.patch |
81 |
|
82 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/69_all_uClibc-0.9.29-fix-gethostent_r-failure-retval.patch?rev=1.1&view=markup |
83 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/69_all_uClibc-0.9.29-fix-gethostent_r-failure-retval.patch?rev=1.1&content-type=text/plain |
84 |
|
85 |
Index: 69_all_uClibc-0.9.29-fix-gethostent_r-failure-retval.patch |
86 |
=================================================================== |
87 |
diff -ur uClibc-0.9.29/libc/inet/resolv.c uClibc-0.9.29-patched/libc/inet/resolv.c |
88 |
--- uClibc-0.9.29/libc/inet/resolv.c 2007-04-23 12:01:05.000000000 -0500 |
89 |
+++ uClibc-0.9.29-patched/libc/inet/resolv.c 2007-05-09 18:05:33.563404419 -0500 |
90 |
@@ -1730,7 +1730,7 @@ |
91 |
int gethostent_r(struct hostent *result_buf, char *buf, size_t buflen, |
92 |
struct hostent **result, int *h_errnop) |
93 |
{ |
94 |
- int ret; |
95 |
+ int ret = HOST_NOT_FOUND; |
96 |
|
97 |
__UCLIBC_MUTEX_LOCK(mylock); |
98 |
if (__gethostent_fp == NULL) { |
99 |
|
100 |
|
101 |
|
102 |
1.1 src/patchsets/uclibc/0.9.30/71_all_uClibc-arm_fix_alignment.patch |
103 |
|
104 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/71_all_uClibc-arm_fix_alignment.patch?rev=1.1&view=markup |
105 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/71_all_uClibc-arm_fix_alignment.patch?rev=1.1&content-type=text/plain |
106 |
|
107 |
Index: 71_all_uClibc-arm_fix_alignment.patch |
108 |
=================================================================== |
109 |
ARMV5 can use STRD and LDRD access instructions but these accesses need to be |
110 |
8 byte aligned. The dynamic linker's malloc needs to match this so structures |
111 |
become 8 byte aligned to void unaligned accesses. |
112 |
|
113 |
RP - 14/02/2008 |
114 |
|
115 |
Index: uClibc-0.9.29/ldso/ldso/arm/dl-sysdep.h |
116 |
=================================================================== |
117 |
--- uClibc-0.9.29.orig/ldso/ldso/arm/dl-sysdep.h 2008-02-14 00:58:12.000000000 +0000 |
118 |
+++ uClibc-0.9.29/ldso/ldso/arm/dl-sysdep.h 2008-02-14 00:59:19.000000000 +0000 |
119 |
@@ -15,6 +15,8 @@ |
120 |
GOT_BASE[1] = (unsigned long) MODULE; \ |
121 |
} |
122 |
|
123 |
+#define DL_MALLOC_ALIGN 8 /* EABI needs 8 byte alignment for STRD LDRD*/ |
124 |
+ |
125 |
static __inline__ unsigned long arm_modulus(unsigned long m, unsigned long p) |
126 |
{ |
127 |
unsigned long i,t,inc; |
128 |
|
129 |
|
130 |
|
131 |
1.1 src/patchsets/uclibc/0.9.30/72_all_uClibc-0.9.29-linuxthreads.patch |
132 |
|
133 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/72_all_uClibc-0.9.29-linuxthreads.patch?rev=1.1&view=markup |
134 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/72_all_uClibc-0.9.29-linuxthreads.patch?rev=1.1&content-type=text/plain |
135 |
|
136 |
Index: 72_all_uClibc-0.9.29-linuxthreads.patch |
137 |
=================================================================== |
138 |
--- a/libpthread/linuxthreads.old/attr.c 2006-01-24 12:41:01.000000000 -0500 |
139 |
+++ b/libpthread/linuxthreads.old/attr.c 2008-02-10 11:35:32.000000000 -0500 |
140 |
@@ -25,6 +25,14 @@ |
141 |
#include "pthread.h" |
142 |
#include "internals.h" |
143 |
|
144 |
+#include <sys/resource.h> |
145 |
+#include <inttypes.h> |
146 |
+#include <stdio.h> |
147 |
+#include <stdio_ext.h> |
148 |
+#include <stdlib.h> |
149 |
+#include <sys/resource.h> |
150 |
+ |
151 |
+ |
152 |
/* NOTE: With uClibc I don't think we need this versioning stuff. |
153 |
* Therefore, define the function pthread_attr_init() here using |
154 |
* a strong symbol. */ |
155 |
@@ -209,4 +217,94 @@ int __pthread_attr_getstacksize(const pt |
156 |
*stacksize = attr->__stacksize; |
157 |
return 0; |
158 |
} |
159 |
+ |
160 |
+ |
161 |
+extern int *__libc_stack_end; |
162 |
+ |
163 |
weak_alias (__pthread_attr_getstacksize, pthread_attr_getstacksize) |
164 |
+void* pthread_getattr_np(pthread_t thread, pthread_attr_t *attr) |
165 |
+{ |
166 |
+ static void *stackBase = 0; |
167 |
+ static size_t stackSize = 0; |
168 |
+ int ret = 0; |
169 |
+ /* Stack size limit. */ |
170 |
+ struct rlimit rl; |
171 |
+ |
172 |
+ /* The safest way to get the top of the stack is to read |
173 |
+ /proc/self/maps and locate the line into which |
174 |
+ __libc_stack_end falls. */ |
175 |
+ FILE *fp = fopen("/proc/self/maps", "rc"); |
176 |
+ if (fp == NULL) |
177 |
+ ret = errno; |
178 |
+ /* We need the limit of the stack in any case. */ |
179 |
+ else if (getrlimit (RLIMIT_STACK, &rl) != 0) |
180 |
+ ret = errno; |
181 |
+ else { |
182 |
+ /* We need no locking. */ |
183 |
+ __fsetlocking (fp, FSETLOCKING_BYCALLER); |
184 |
+ |
185 |
+ /* Until we found an entry (which should always be the case) |
186 |
+ mark the result as a failure. */ |
187 |
+ ret = ENOENT; |
188 |
+ |
189 |
+ char *line = NULL; |
190 |
+ size_t linelen = 0; |
191 |
+ uintptr_t last_to = 0; |
192 |
+ |
193 |
+ while (! feof_unlocked (fp)) { |
194 |
+ if (getdelim (&line, &linelen, '\n', fp) <= 0) |
195 |
+ break; |
196 |
+ |
197 |
+ uintptr_t from; |
198 |
+ uintptr_t to; |
199 |
+ if (sscanf (line, "%x-%x", &from, &to) != 2) |
200 |
+ continue; |
201 |
+ if (from <= (uintptr_t) __libc_stack_end |
202 |
+ && (uintptr_t) __libc_stack_end < to) { |
203 |
+ /* Found the entry. Now we have the info we need. */ |
204 |
+ attr->__stacksize = rl.rlim_cur; |
205 |
+#ifdef _STACK_GROWS_UP |
206 |
+ /* Don't check to enforce a limit on the __stacksize */ |
207 |
+ attr->__stackaddr = (void *) from; |
208 |
+#else |
209 |
+ attr->__stackaddr = (void *) to; |
210 |
+ |
211 |
+ /* The limit might be too high. */ |
212 |
+ if ((size_t) attr->__stacksize > (size_t) attr->__stackaddr - last_to) |
213 |
+ attr->__stacksize = (size_t) attr->__stackaddr - last_to; |
214 |
+#endif |
215 |
+ |
216 |
+ /* We succeed and no need to look further. */ |
217 |
+ ret = 0; |
218 |
+ break; |
219 |
+ } |
220 |
+ last_to = to; |
221 |
+ } |
222 |
+ |
223 |
+ fclose (fp); |
224 |
+ free (line); |
225 |
+ } |
226 |
+#ifndef _STACK_GROWS_UP |
227 |
+ stackBase = (char *) attr->__stackaddr - attr->__stacksize; |
228 |
+#else |
229 |
+ stackBase = attr->__stackaddr; |
230 |
+#endif |
231 |
+ stackSize = attr->__stacksize; |
232 |
+ return (void*)(stackBase + stackSize); |
233 |
+} |
234 |
+ |
235 |
+int __pthread_attr_getstack (const pthread_attr_t *attr, void **stackaddr, |
236 |
+ size_t *stacksize) |
237 |
+{ |
238 |
+ /* XXX This function has a stupid definition. The standard specifies |
239 |
+ no error value but what is if no stack address was set? We simply |
240 |
+ return the value we have in the member. */ |
241 |
+#ifndef _STACK_GROWS_UP |
242 |
+ *stackaddr = (char *) attr->__stackaddr - attr->__stacksize; |
243 |
+#else |
244 |
+ *stackaddr = attr->__stackaddr; |
245 |
+#endif |
246 |
+ *stacksize = attr->__stacksize; |
247 |
+ return 0; |
248 |
+} |
249 |
+weak_alias (__pthread_attr_getstack, pthread_attr_getstack) |
250 |
|
251 |
--- a/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h 2006-12-07 22:19:36.000000000 -0500 |
252 |
+++ b/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h 2008-02-10 11:42:35.000000000 -0500 |
253 |
@@ -288,15 +288,11 @@ extern int pthread_attr_getstacksize (__ |
254 |
__attr, size_t *__restrict __stacksize) |
255 |
__THROW; |
256 |
|
257 |
-#if 0 |
258 |
-/* Not yet implemented in uClibc! */ |
259 |
- |
260 |
#ifdef __USE_GNU |
261 |
/* Initialize thread attribute *ATTR with attributes corresponding to the |
262 |
already running thread TH. It shall be called on unitialized ATTR |
263 |
and destroyed with pthread_attr_destroy when no longer needed. */ |
264 |
-extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __THROW; |
265 |
-#endif |
266 |
+extern void* pthread_getattr_np(pthread_t thread, pthread_attr_t *attr); |
267 |
#endif |
268 |
|
269 |
/* Functions for scheduling control. */ |
270 |
@@ -599,6 +595,11 @@ extern int pthread_cancel (pthread_t __c |
271 |
cancelled. */ |
272 |
extern void pthread_testcancel (void); |
273 |
|
274 |
+/* Return the previously set address for the stack. */ |
275 |
+extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr, |
276 |
+ void **__restrict __stackaddr, |
277 |
+ size_t *__restrict __stacksize) __THROW; |
278 |
+ |
279 |
|
280 |
/* Install a cleanup handler: ROUTINE will be called with arguments ARG |
281 |
when the thread is cancelled or calls pthread_exit. ROUTINE will also |
282 |
|
283 |
|
284 |
|
285 |
|
286 |
1.1 src/patchsets/uclibc/0.9.30/74_all_uClibc-0.9.29-rm-whitespace.patch |
287 |
|
288 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/74_all_uClibc-0.9.29-rm-whitespace.patch?rev=1.1&view=markup |
289 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/74_all_uClibc-0.9.29-rm-whitespace.patch?rev=1.1&content-type=text/plain |
290 |
|
291 |
Index: 74_all_uClibc-0.9.29-rm-whitespace.patch |
292 |
=================================================================== |
293 |
diff -urN uClibc-0.9.29-0rig/include/assert.h uClibc-0.9.29/include/assert.h |
294 |
--- uClibc-0.9.29-0rig/include/assert.h 2005-11-03 23:42:46.000000000 +0100 |
295 |
+++ uClibc-0.9.29/include/assert.h 2007-08-13 19:10:57.000000000 +0200 |
296 |
@@ -31,7 +31,7 @@ |
297 |
#define _ASSERT_H 1 |
298 |
#include <features.h> |
299 |
|
300 |
-#if defined __cplusplus && __GNUC_PREREQ (2,95) |
301 |
+#if defined __cplusplus && __GNUC_PREREQ(2,95) |
302 |
# define __ASSERT_VOID_CAST static_cast<void> |
303 |
#else |
304 |
# define __ASSERT_VOID_CAST (void) |
305 |
@@ -60,12 +60,15 @@ |
306 |
(__assert (__STRING(expr), __FILE__, __LINE__, \ |
307 |
__ASSERT_FUNCTION), 0))) |
308 |
|
309 |
+/* Define some temporaries to workaround tinyx makedepend bug */ |
310 |
+#define __GNUC_PREREQ_2_6 __GNUC_PREREQ(2, 6) |
311 |
+#define __GNUC_PREREQ_2_4 __GNUC_PREREQ(2, 4) |
312 |
/* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__' |
313 |
which contains the name of the function currently being defined. |
314 |
This is broken in G++ before version 2.6. |
315 |
C9x has a similar variable called __func__, but prefer the GCC one since |
316 |
it demangles C++ function names. */ |
317 |
-# if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4) |
318 |
+# if defined __cplusplus ? __GNUC_PREREQ_2_6 : __GNUC_PREREQ_2_4 |
319 |
# define __ASSERT_FUNCTION __PRETTY_FUNCTION__ |
320 |
# else |
321 |
# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L |
322 |
diff -urN uClibc-0.9.29-0rig/include/complex.h uClibc-0.9.29/include/complex.h |
323 |
--- uClibc-0.9.29-0rig/include/complex.h 2002-05-09 10:15:21.000000000 +0200 |
324 |
+++ uClibc-0.9.29/include/complex.h 2007-08-13 17:55:29.000000000 +0200 |
325 |
@@ -33,7 +33,7 @@ |
326 |
/* We might need to add support for more compilers here. But since ISO |
327 |
C99 is out hopefully all maintained compilers will soon provide the data |
328 |
types `float complex' and `double complex'. */ |
329 |
-#if __GNUC_PREREQ (2, 7) && !__GNUC_PREREQ (2, 97) |
330 |
+#if __GNUC_PREREQ(2, 7) && !__GNUC_PREREQ(2, 97) |
331 |
# define _Complex __complex__ |
332 |
#endif |
333 |
|
334 |
diff -urN uClibc-0.9.29-0rig/include/features.h uClibc-0.9.29/include/features.h |
335 |
--- uClibc-0.9.29-0rig/include/features.h 2006-11-29 22:10:04.000000000 +0100 |
336 |
+++ uClibc-0.9.29/include/features.h 2007-08-13 17:55:51.000000000 +0200 |
337 |
@@ -143,7 +143,7 @@ |
338 |
|
339 |
/* Convenience macros to test the versions of glibc and gcc. |
340 |
Use them like this: |
341 |
- #if __GNUC_PREREQ (2,8) |
342 |
+ #if __GNUC_PREREQ(2,8) |
343 |
... code requiring gcc 2.8 or later ... |
344 |
#endif |
345 |
Note - they won't work for gcc1 or glibc1, since the _MINOR macros |
346 |
@@ -297,7 +297,7 @@ |
347 |
/* uClibc does not support _FORTIFY_SOURCE */ |
348 |
#undef _FORTIFY_SOURCE |
349 |
#if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \ |
350 |
- && __GNUC_PREREQ (4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0 |
351 |
+ && __GNUC_PREREQ(4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0 |
352 |
# if _FORTIFY_SOURCE > 1 |
353 |
# define __USE_FORTIFY_LEVEL 2 |
354 |
# else |
355 |
@@ -366,7 +366,7 @@ |
356 |
#endif /* !ASSEMBLER */ |
357 |
|
358 |
/* Decide whether we can define 'extern inline' functions in headers. */ |
359 |
-#if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \ |
360 |
+#if __GNUC_PREREQ(2, 7) && defined __OPTIMIZE__ \ |
361 |
&& !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \ |
362 |
&& (defined __extern_inline || defined __GNUC_GNU_INLINE__) |
363 |
# define __USE_EXTERN_INLINES 1 |
364 |
diff -urN uClibc-0.9.29-0rig/include/tgmath.h uClibc-0.9.29/include/tgmath.h |
365 |
--- uClibc-0.9.29-0rig/include/tgmath.h 2002-05-09 10:15:21.000000000 +0200 |
366 |
+++ uClibc-0.9.29/include/tgmath.h 2007-08-13 17:56:17.000000000 +0200 |
367 |
@@ -34,7 +34,7 @@ |
368 |
do not try this for now and instead concentrate only on GNU CC. Once |
369 |
we have more information support for other compilers might follow. */ |
370 |
|
371 |
-#if __GNUC_PREREQ (2, 7) |
372 |
+#if __GNUC_PREREQ(2, 7) |
373 |
|
374 |
# ifdef __NO_LONG_DOUBLE_MATH |
375 |
# define __tgml(fct) fct |
376 |
|
377 |
|
378 |
|
379 |
1.1 src/patchsets/uclibc/0.9.30/75_all_uClibc-arm-ftruncate64.patch |
380 |
|
381 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/75_all_uClibc-arm-ftruncate64.patch?rev=1.1&view=markup |
382 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/75_all_uClibc-arm-ftruncate64.patch?rev=1.1&content-type=text/plain |
383 |
|
384 |
Index: 75_all_uClibc-arm-ftruncate64.patch |
385 |
=================================================================== |
386 |
Index: uclibc-0.9.29/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h |
387 |
=================================================================== |
388 |
--- uclibc-0.9.29.orig/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h |
389 |
+++ uclibc-0.9.29/libc/sysdeps/linux/arm/bits/uClibc_arch_features.h |
390 |
@@ -38,4 +38,8 @@ |
391 |
/* define if target supports IEEE signed zero floats */ |
392 |
#define __UCLIBC_HAVE_SIGNED_ZERO__ |
393 |
|
394 |
+#ifdef __ARM_EABI__ |
395 |
+# define __UCLIBC_TRUNCATE64_HAS_4_ARGS__ |
396 |
+#endif |
397 |
+ |
398 |
#endif /* _BITS_UCLIBC_ARCH_FEATURES_H */ |
399 |
|
400 |
|
401 |
|
402 |
1.1 src/patchsets/uclibc/0.9.30/77_all_uClibc-unistd_arm.patch |
403 |
|
404 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/77_all_uClibc-unistd_arm.patch?rev=1.1&view=markup |
405 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/77_all_uClibc-unistd_arm.patch?rev=1.1&content-type=text/plain |
406 |
|
407 |
Index: 77_all_uClibc-unistd_arm.patch |
408 |
=================================================================== |
409 |
Index: uClibc-0.9.29/extra/scripts/gen_bits_syscall_h.sh |
410 |
=================================================================== |
411 |
--- uClibc-0.9.29.orig/extra/scripts/gen_bits_syscall_h.sh 2006-12-12 04:30:02.000000000 +0100 |
412 |
+++ uClibc-0.9.29/extra/scripts/gen_bits_syscall_h.sh 2008-03-10 23:20:52.000000000 +0100 |
413 |
@@ -24,8 +24,8 @@ |
414 |
( echo "#include <asm/unistd.h>"; |
415 |
echo "#include <asm/unistd.h>" | |
416 |
$CC -E $CC_SYSNUM_ARGS $INCLUDE_OPTS - | |
417 |
- sed -ne 's/^[ ]*#define[ ]*__NR_\([A-Za-z0-9_]*\).*/UCLIBC_\1 __NR_\1/gp' \ |
418 |
- -e 's/^[ ]*#undef[ ]*__NR_\([A-Za-z0-9_]*\).*/UNDEFUCLIBC_\1 __NR_\1/gp' # needed to strip out any kernel-internal defines |
419 |
+ sed -ne 's/^[ ]*#define[ ]*\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\).*/UCLIBC\1\2 \1\2/gp' \ |
420 |
+ -e 's/^[ ]*#undef[ ]*\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\).*/UNDEFUCLIBC\1\2 \1\2/gp' # needed to strip out any kernel-internal defines |
421 |
) | |
422 |
$CC -E $INCLUDE_OPTS - | |
423 |
( echo "/* WARNING!!! AUTO-GENERATED FILE!!! DO NOT EDIT!!! */" ; echo ; |
424 |
@@ -35,10 +35,10 @@ |
425 |
echo "#ifndef _SYSCALL_H" ; |
426 |
echo "# error \"Never use <bits/sysnum.h> directly; include <sys/syscall.h> instead.\"" ; |
427 |
echo "#endif" ; echo ; |
428 |
- sed -ne 's/^UCLIBC_\([A-Za-z0-9_]*\) *\(.*\)/#undef __NR_\1\ |
429 |
-#define __NR_\1 \2\ |
430 |
-#define SYS_\1 __NR_\1/gp' \ |
431 |
- -e 's/^UNDEFUCLIBC_\([A-Za-z0-9_]*\).*/#undef __NR_\1/gp' |
432 |
+ sed -ne 's/^UCLIBC\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\) *\(.*\)/#undef \1\2\ |
433 |
+#define \1\2 \3\ |
434 |
+#define SYS_\2 \1\2/gp' \ |
435 |
+ -e 's/^UNDEFUCLIBC\(__ARM_NR_\|__NR_\)\([A-Za-z0-9_]*\).*/#undef \1\2/gp' |
436 |
echo ; |
437 |
echo "#endif" ; |
438 |
) |
439 |
|
440 |
|
441 |
|
442 |
1.1 src/patchsets/uclibc/0.9.30/80_all_uClibc-no-locale-in-configure.patch |
443 |
|
444 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/80_all_uClibc-no-locale-in-configure.patch?rev=1.1&view=markup |
445 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/80_all_uClibc-no-locale-in-configure.patch?rev=1.1&content-type=text/plain |
446 |
|
447 |
Index: 80_all_uClibc-no-locale-in-configure.patch |
448 |
=================================================================== |
449 |
--- uClibc-0.9.29/extra/locale/Makefile.in~ 2006-08-24 05:55:55.000000000 +0200 |
450 |
+++ uClibc-0.9.29/extra/locale/Makefile.in 2008-09-12 15:37:28.000000000 +0200 |
451 |
@@ -18,6 +18,8 @@ |
452 |
|
453 |
BUILD_CFLAGS-gen_wctype := $(BUILD_CFLAGS-locale-common) |
454 |
|
455 |
+BUILD_CFLAGS-gen_locale := -D_GNU_SOURCE |
456 |
+ |
457 |
BUILD_CFLAGS-gen_ldc := |
458 |
ifeq ($(UCLIBC_HAS_WCHAR),y) |
459 |
BUILD_CFLAGS-gen_wc8bit += -DDO_WIDE_CHAR=1 |
460 |
--- uClibc-0.9.29/extra/locale/gen_locale.c~ 2006-01-22 20:35:08.000000000 +0100 |
461 |
+++ uClibc-0.9.29/extra/locale/gen_locale.c 2008-09-12 15:49:40.000000000 +0200 |
462 |
@@ -9,7 +9,7 @@ |
463 |
#include <nl_types.h> |
464 |
#include <stdint.h> |
465 |
|
466 |
-#include "c8tables.h" |
467 |
+#include "../../c8tables.h" |
468 |
|
469 |
|
470 |
#define __LOCALE_DATA_CATEGORIES 6 |
471 |
--- uClibc-0.9.29/extra/config/lkc.h~ 2007-02-14 09:21:06.000000000 +0100 |
472 |
+++ uClibc-0.9.29/extra/config/lkc.h 2008-09-12 16:31:27.000000000 +0200 |
473 |
@@ -9,12 +9,11 @@ |
474 |
#include "expr.h" |
475 |
|
476 |
#ifndef KBUILD_NO_NLS |
477 |
-# include <libintl.h> |
478 |
-#else |
479 |
-# define gettext(Msgid) ((const char *) (Msgid)) |
480 |
-# define textdomain(Domainname) ((const char *) (Domainname)) |
481 |
-# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) |
482 |
+#define KBUILD_NO_NLS |
483 |
#endif |
484 |
+#define gettext(Msgid) ((const char *) (Msgid)) |
485 |
+#define textdomain(Domainname) ((const char *) (Domainname)) |
486 |
+#define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) |
487 |
|
488 |
#ifdef __cplusplus |
489 |
extern "C" { |
490 |
|
491 |
|
492 |
|
493 |
1.1 src/patchsets/uclibc/0.9.30/81_all_uClibc-gnu89-inline.patch |
494 |
|
495 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/81_all_uClibc-gnu89-inline.patch?rev=1.1&view=markup |
496 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/uclibc/0.9.30/81_all_uClibc-gnu89-inline.patch?rev=1.1&content-type=text/plain |
497 |
|
498 |
Index: 81_all_uClibc-gnu89-inline.patch |
499 |
=================================================================== |
500 |
--- uClibc-0.9.29/Rules.mak~ 2008-09-14 19:20:36.000000000 +0200 |
501 |
+++ uClibc-0.9.29/Rules.mak 2008-09-16 05:27:05.000000000 +0200 |
502 |
@@ -495,6 +495,7 @@ |
503 |
endif |
504 |
|
505 |
CFLAGS += $(call check_gcc,-std=gnu99,) |
506 |
+CFLAGS += $(call check_gcc,-fgnu89-inline,) |
507 |
|
508 |
LDFLAGS_NOSTRIP:=$(CPU_LDFLAGS-y) -Wl,-shared \ |
509 |
-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc |