r4604 - in glibc-package/branches/eglibc-2.13/debian: . patches patches/alpha
Author: aurel32
Date: 2011-04-01 21:22:08 +0000 (Fri, 01 Apr 2011)
New Revision: 4604
Added:
glibc-package/branches/eglibc-2.13/debian/patches/alpha/submitted-sysconf-cache.diff
Modified:
glibc-package/branches/eglibc-2.13/debian/changelog
glibc-package/branches/eglibc-2.13/debian/patches/series
Log:
* Add patches/alpha/submitted-sysconf-cache.diff to fix sysconf()
LEVEL*CACHE* entries. Closes: #620203.
Modified: glibc-package/branches/eglibc-2.13/debian/changelog
===================================================================
--- glibc-package/branches/eglibc-2.13/debian/changelog 2011-04-01 14:06:54 UTC (rev 4603)
+++ glibc-package/branches/eglibc-2.13/debian/changelog 2011-04-01 21:22:08 UTC (rev 4604)
@@ -147,6 +147,8 @@
add multiarch support to ldconfig.
* Add patches/alpha/local-strncmp.diff to remove broken alpha specific
implementation of strncmp().
+ * Add patches/alpha/submitted-sysconf-cache.diff to fix sysconf()
+ LEVEL*CACHE* entries. Closes: #620203.
[ Samuel Thibault ]
* Add patches/any/cvs-glro_dl_debug_mask.diff to fix build without
Added: glibc-package/branches/eglibc-2.13/debian/patches/alpha/submitted-sysconf-cache.diff
===================================================================
--- glibc-package/branches/eglibc-2.13/debian/patches/alpha/submitted-sysconf-cache.diff (rev 0)
+++ glibc-package/branches/eglibc-2.13/debian/patches/alpha/submitted-sysconf-cache.diff 2011-04-01 21:22:08 UTC (rev 4604)
@@ -0,0 +1,16 @@
+2011-04-01 Aurelien Jarno <aurelien@aurel32.net>
+
+ * sysdeps/unix/sysv/linux/alpha/sysconf.c: Fix cache sysconf
+ switch.
+
+--- a/ports/sysdeps/unix/sysv/linux/alpha/sysconf.c
++++ b/ports/sysdeps/unix/sysv/linux/alpha/sysconf.c
+@@ -135,7 +135,7 @@ __sysconf (int name)
+ if (shape <= 0)
+ return shape;
+
+- switch (name % 3)
++ switch ((name - _SC_LEVEL1_ICACHE_SIZE) % 3)
+ {
+ case 0: /* total size */
+ return shape & -0x100;
Modified: glibc-package/branches/eglibc-2.13/debian/patches/series
===================================================================
--- glibc-package/branches/eglibc-2.13/debian/patches/series 2011-04-01 14:06:54 UTC (rev 4603)
+++ glibc-package/branches/eglibc-2.13/debian/patches/series 2011-04-01 21:22:08 UTC (rev 4604)
@@ -55,6 +55,7 @@
alpha/submitted-____longjmp_chk.diff
alpha/submitted-PTR_MANGLE.diff
alpha/local-strncmp.diff
+alpha/submitted-sysconf-cache.diff
amd64/local-biarch.diff
amd64/local-clone.diff
Reply to: