klibc: bump to 1.5.19
authorAndrea Adami <andrea.adami@gmail.com>
Mon, 16 Aug 2010 00:08:32 +0000 (02:08 +0200)
committerAndrea Adami <andrea.adami@gmail.com>
Mon, 16 Aug 2010 00:08:32 +0000 (02:08 +0200)
* add getrusage patch
* remove version 1.5.18
* staging of klcc is still broken. WIP

16 files changed:
recipes/klibc/klibc-1.5.19/arm-signal-cleanup.patch [moved from recipes/klibc/klibc-1.5.18/arm-signal-cleanup.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/dash_readopt.patch [moved from recipes/klibc/klibc-1.5.18/dash_readopt.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/fstype-sane-vfat-and-jffs2-for-1.5.patch [moved from recipes/klibc/klibc-1.5.18/fstype-sane-vfat-and-jffs2-for-1.5.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/getrusage.patch [new file with mode: 0644]
recipes/klibc/klibc-1.5.19/isystem.patch [moved from recipes/klibc/klibc-1.5.18/isystem.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/klibc-config-eabi.patch [moved from recipes/klibc/klibc-1.5.18/klibc-config-eabi.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/klibc-x86-KLIBCARCHINCFLAGS.patch [moved from recipes/klibc/klibc-1.5.18/klibc-x86-KLIBCARCHINCFLAGS.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/klibc_kexecsyscall.patch [moved from recipes/klibc/klibc-1.5.18/klibc_kexecsyscall.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/mntproc-definitions.patch [moved from recipes/klibc/klibc-1.5.18/mntproc-definitions.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/modprobe.patch [moved from recipes/klibc/klibc-1.5.18/modprobe.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/socket.h.patch [moved from recipes/klibc/klibc-1.5.18/socket.h.patch with 97% similarity]
recipes/klibc/klibc-1.5.19/staging.patch [moved from recipes/klibc/klibc-1.5.18/staging.patch with 100% similarity]
recipes/klibc/klibc-1.5.19/wc.patch [moved from recipes/klibc/klibc-1.5.18/wc.patch with 100% similarity]
recipes/klibc/klibc-utils-static_1.5.19.bb [moved from recipes/klibc/klibc-utils-static_1.5.18.bb with 73% similarity]
recipes/klibc/klibc.inc
recipes/klibc/klibc_1.5.19.bb [moved from recipes/klibc/klibc_1.5.18.bb with 95% similarity]

diff --git a/recipes/klibc/klibc-1.5.19/getrusage.patch b/recipes/klibc/klibc-1.5.19/getrusage.patch
new file mode 100644 (file)
index 0000000..224ab32
--- /dev/null
@@ -0,0 +1,34 @@
+linux-libc-dev: <linux/resource.h> getrusage() prototype should be protected from user space
+see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575381
+guard added with 2.6.32
+Index: klibc-1.5.19/usr/include/sys/resource.h
+===================================================================
+--- klibc-1.5.19.old/usr/include/sys/resource.h        2010-07-07 14:07:48.000000000 +0200
++++ klibc-1.5.19/usr/include/sys/resource.h    2010-08-16 01:51:14.000000000 +0200
+@@ -12,6 +12,9 @@
+ __extern int getpriority(int, int);
+ __extern int setpriority(int, int, int);
++#include <linux/version.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
+ __extern int getrusage(int, struct rusage *);
++#endif
+ #endif                                /* _SYS_RESOURCE_H */
+Index: klibc-1.5.19/usr/klibc/SYSCALLS.def
+===================================================================
+--- klibc-1.5.19.old/usr/klibc/SYSCALLS.def    2010-08-16 01:49:02.000000000 +0200
++++ klibc-1.5.19/usr/klibc/SYSCALLS.def        2010-08-16 01:55:07.000000000 +0200
+@@ -49,7 +49,12 @@
+ <alpha,ia64> int getpriority(int, int);
+ <!alpha,ia64> int getpriority::__getpriority(int, int);
+ int setpriority(int, int, int);
++
++#include <linux/version.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
+ int getrusage(int, struct rusage *);
++#endif
++
+ int sched_setscheduler(pid_t, int, const struct sched_param *);
+ int sched_yield();
+ <i386> int prctl@varadic(int, unsigned long, unsigned long, unsigned long, unsigned long);
similarity index 97%
rename from recipes/klibc/klibc-1.5.18/socket.h.patch
rename to recipes/klibc/klibc-1.5.19/socket.h.patch
index 71c9372..864fa22 100644 (file)
@@ -63,9 +63,9 @@ Index: klibc-1.5.16/usr/include/sys/socket.h
  };
 -
 +#endif
- __extern int socket(int, int, int);
- __extern int bind(int, struct sockaddr *, int);
+ /* Ancillary data structures and cmsg macros are also hidden under __KERNEL__ */
+ #ifndef CMSG_FIRSTHDR
+ /*
 Index: klibc-1.5.16/usr/kinit/nfsmount/nfsmount.h
 ===================================================================
 --- a/usr/kinit/nfsmount/nfsmount.h    2009-01-04 20:28:03.000000000 +0100
similarity index 73%
rename from recipes/klibc/klibc-utils-static_1.5.18.bb
rename to recipes/klibc/klibc-utils-static_1.5.19.bb
index 2b6494d..beb62b2 100644 (file)
@@ -16,5 +16,5 @@ KLIBC_UTILS_PKGNAME = "klibc-utils-static"
 require klibc-utils.inc
 require klibc.inc
 
-SRC_URI[md5sum] = "5c8b6577b9acb3809cace6e118cdd55b"
-SRC_URI[sha256sum] = "e4104f8b34a5f354222bd4622f50b58c6218bf70614450d68539cbef666b6446"
+SRC_URI[md5sum] = "1b713fe65c345e687666b9f94b12f0a0"
+SRC_URI[sha256sum] = "de0fa51d47b7363e064a3e6f26dabcb458d371a14e78e6407d49bb3386a24a97"
index fc8862c..c0e08b2 100644 (file)
@@ -6,7 +6,7 @@ minimal entaglement, and portability, not speed."
 LICENSE = "BSD-ADV"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-INC_PR = "r18"
+INC_PR = "r0"
 
 KLIBC_ARCH = '${TARGET_ARCH}'
 KLIBC_ARCH_armeb = 'arm'
@@ -38,6 +38,7 @@ SRC_URI += "file://fstype-sane-vfat-and-jffs2-for-1.5.patch \
             file://socket.h.patch \
             file://isystem.patch \
             file://klibc-x86-KLIBCARCHINCFLAGS.patch \
+            file://getrusage.patch \
             "
 
 S = "${WORKDIR}/klibc-${PV}"
similarity index 95%
rename from recipes/klibc/klibc_1.5.18.bb
rename to recipes/klibc/klibc_1.5.19.bb
index 880ed74..98075c4 100644 (file)
@@ -60,5 +60,5 @@ RDEPENDS_${KLIBC_UTILS_PKGNAME}-wc = "${PN} (=${PV}-${PR})"
 require klibc-utils.inc
 require klibc.inc
 
-SRC_URI[md5sum] = "5c8b6577b9acb3809cace6e118cdd55b"
-SRC_URI[sha256sum] = "e4104f8b34a5f354222bd4622f50b58c6218bf70614450d68539cbef666b6446"
+SRC_URI[md5sum] = "1b713fe65c345e687666b9f94b12f0a0"
+SRC_URI[sha256sum] = "de0fa51d47b7363e064a3e6f26dabcb458d371a14e78e6407d49bb3386a24a97"