libc/glibc: update 2.10.1 patchset
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Nov 25 21:47:51 2009 +0100 (2009-11-25)
changeset 165520a3813e7ca3
parent 1654 489e9f2158fa
child 1656 d751ce690248
libc/glibc: update 2.10.1 patchset

According to: http://sourceware.org/ml/crossgcc/2009-11/msg00109.html
update the patchset for correct Alpha build.
patches/glibc/ports-2.10.1/440-alpha-cache-shape.patch
patches/glibc/ports-2.10.1/640-alpha-atfcts.patch
patches/glibc/ports-2.10.1/650-syslog.patch
patches/glibc/ports-2.10.1/660-debug-readlink_chk-readklinkat_chk.patch
     1.1 --- a/patches/glibc/ports-2.10.1/440-alpha-cache-shape.patch	Wed Nov 25 00:10:42 2009 -0800
     1.2 +++ b/patches/glibc/ports-2.10.1/440-alpha-cache-shape.patch	Wed Nov 25 21:47:51 2009 +0100
     1.3 @@ -8,7 +8,6 @@
     1.4  diff -durN glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/dl-support.c glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/dl-support.c
     1.5  --- glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/dl-support.c	2009-05-16 10:36:20.000000000 +0200
     1.6  +++ glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/dl-support.c	2009-11-13 00:50:53.000000000 +0100
     1.7 -@@ -1,2 +0,0 @@
     1.8 +@@ -1,2 +1,1 @@
     1.9  -#include "dl-auxv.h"
    1.10 --#include <elf/dl-support.c>
    1.11 -diff -durN glibc-2.10.1.orig/ports/sysdeps/unix/sysv/linux/alpha/dl-support.c glibc-2.10.1/ports/sysdeps/unix/sysv/linux/alpha/dl-support.c
    1.12 + #include <elf/dl-support.c>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/patches/glibc/ports-2.10.1/640-alpha-atfcts.patch	Wed Nov 25 21:47:51 2009 +0100
     2.3 @@ -0,0 +1,12 @@
     2.4 +--- glibc-2.7/sysdeps/unix/sysv/linux/kernel-features.h	2007-08-14 06:21:09.000000000 +0300
     2.5 ++++ glibc-2.7/sysdeps/unix/sysv/linux/kernel-features.h.new	2008-07-23 07:05:20.000000000 +0300
     2.6 +@@ -454,8 +454,7 @@
     2.7 +    and on Alpha just after 2.6.22-rc1.  */
     2.8 + #if __LINUX_KERNEL_VERSION >= 0x020611 \
     2.9 +     && ((!defined __sh__ && !defined __alpha__) \
    2.10 +-	|| (__LINUX_KERNEL_VERSION >= 0x020613 && defined __sh__) \
    2.11 +-	|| (__LINUX_KERNEL_VERSION >= 0x020617 && defined __alpha__))
    2.12 ++	|| (__LINUX_KERNEL_VERSION >= 0x020613 && defined __sh__))
    2.13 + # define __ASSUME_ATFCTS	1
    2.14 + #endif
    2.15 + 
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/patches/glibc/ports-2.10.1/650-syslog.patch	Wed Nov 25 21:47:51 2009 +0100
     3.3 @@ -0,0 +1,12 @@
     3.4 +diff -durN glibc-cvs-2.9.orig/misc/syslog.c glibc-cvs-2.9/misc/syslog.c
     3.5 +--- glibc-cvs-2.9.orig/misc/syslog.c	2009-06-01 10:16:50.000000000 +0200
     3.6 ++++ glibc-cvs-2.9/misc/syslog.c	2009-06-01 10:17:20.000000000 +0200
     3.7 +@@ -152,7 +152,7 @@
     3.8 + #define	INTERNALLOG	LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID
     3.9 + 	/* Check for invalid bits. */
    3.10 + 	if (pri & ~(LOG_PRIMASK|LOG_FACMASK)) {
    3.11 +-		syslog(INTERNALLOG,
    3.12 ++		__syslog(INTERNALLOG,
    3.13 + 		    "syslog: unknown facility/priority: %x", pri);
    3.14 + 		pri &= LOG_PRIMASK|LOG_FACMASK;
    3.15 + 	}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/patches/glibc/ports-2.10.1/660-debug-readlink_chk-readklinkat_chk.patch	Wed Nov 25 21:47:51 2009 +0100
     4.3 @@ -0,0 +1,24 @@
     4.4 +diff -dur glibc-cvs-2.9.orig/debug/readlink_chk.c glibc-cvs-2.9/debug/readlink_chk.c
     4.5 +--- glibc-cvs-2.9.orig/debug/readlink_chk.c	2005-03-01 01:41:15.000000000 +0100
     4.6 ++++ glibc-cvs-2.9/debug/readlink_chk.c	2009-06-01 10:59:37.000000000 +0200
     4.7 +@@ -25,7 +25,7 @@
     4.8 + 
     4.9 + 
    4.10 + ssize_t
    4.11 +-__readlink_chk (const char *path, void *buf, size_t len, size_t buflen)
    4.12 ++__readlink_chk (const char *path, char *buf, size_t len, size_t buflen)
    4.13 + {
    4.14 +   if (len > buflen)
    4.15 +     __chk_fail ();
    4.16 +diff -dur glibc-cvs-2.9.orig/debug/readlinkat_chk.c glibc-cvs-2.9/debug/readlinkat_chk.c
    4.17 +--- glibc-cvs-2.9.orig/debug/readlinkat_chk.c	2006-04-24 18:56:12.000000000 +0200
    4.18 ++++ glibc-cvs-2.9/debug/readlinkat_chk.c	2009-06-01 11:07:26.000000000 +0200
    4.19 +@@ -21,7 +21,7 @@
    4.20 + 
    4.21 + 
    4.22 + ssize_t
    4.23 +-__readlinkat_chk (int fd, const char *path, void *buf, size_t len,
    4.24 ++__readlinkat_chk (int fd, const char *path, char *buf, size_t len,
    4.25 + 		  size_t buflen)
    4.26 + {
    4.27 +   if (len > buflen)