patches/glibc/2.7/200-alpha-atfcts.patch
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Fri Jul 29 13:04:49 2011 +0200 (2011-07-29)
changeset 2574 6e1412ba8da9
parent 744 4bf8448536d5
permissions -rw-r--r--
scripts/functions: force extract folder to archive basename

Some archives like those of the 2011.07 revisions of Linaro GCC contain a folder
name different from the archive basename, which leads to errors afterwards, e.g.
when patching. E.g.:
gcc-linaro-4.5-2011.07.tar.bz2 extracts to gcc-linaro-4.5-2011.07-0/

This patch changes CT_Extract() to force the extraction of all archives to a
folder named like the archive basename. E.g.:
gcc-linaro-4.5-2011.07.tar.bz2 now extracts to gcc-linaro-4.5-2011.07/

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
yann@734
     1
--- glibc-2.7/sysdeps/unix/sysv/linux/kernel-features.h	2007-08-14 06:21:09.000000000 +0300
yann@734
     2
+++ glibc-2.7/sysdeps/unix/sysv/linux/kernel-features.h.new	2008-07-23 07:05:20.000000000 +0300
yann@734
     3
@@ -449,8 +449,7 @@
yann@734
     4
    and on Alpha just after 2.6.22-rc1.  */
yann@734
     5
 #if __LINUX_KERNEL_VERSION >= 0x020611 \
yann@734
     6
     && ((!defined __sh__ && !defined __alpha__) \
yann@734
     7
-	|| (__LINUX_KERNEL_VERSION >= 0x020613 && defined __sh__) \
yann@734
     8
-	|| (__LINUX_KERNEL_VERSION >= 0x020617 && defined __alpha__))
yann@734
     9
+	|| (__LINUX_KERNEL_VERSION >= 0x020613 && defined __sh__))
yann@734
    10
 # define __ASSUME_ATFCTS	1
yann@734
    11
 #endif
yann@734
    12