r1865 - in glibc-package/trunk/debian: . patches patches/any
Author: aurel32
Date: 2006-10-21 20:44:46 +0000 (Sat, 21 Oct 2006)
New Revision: 1865
Added:
glibc-package/trunk/debian/patches/any/local-no-pagesize.diff
Modified:
glibc-package/trunk/debian/changelog
glibc-package/trunk/debian/patches/series
Log:
* New any/local-no-pagesize.diff (remove the usage of PAGE_SIZE) by
Steve Langasek. Closes: #394385.
Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog 2006-10-20 22:51:26 UTC (rev 1864)
+++ glibc-package/trunk/debian/changelog 2006-10-21 20:44:46 UTC (rev 1865)
@@ -1,3 +1,11 @@
+glibc (2.3.6.ds1-7) unstable; urgency=low
+
+ [ Aurelien Jarno ]
+ * New any/local-no-pagesize.diff (remove the usage of PAGE_SIZE) by
+ Steve Langasek. Closes: #394385.
+
+ -- Aurelien Jarno <aurel32@debian.org> Sat, 21 Oct 2006 22:41:39 +0200
+
glibc (2.3.6.ds1-6) unstable; urgency=low
[ Aurelien Jarno ]
Added: glibc-package/trunk/debian/patches/any/local-no-pagesize.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/local-no-pagesize.diff (rev 0)
+++ glibc-package/trunk/debian/patches/any/local-no-pagesize.diff 2006-10-21 20:44:46 UTC (rev 1865)
@@ -0,0 +1,99 @@
+--- glibc-2.3.6.orig/sysdeps/unix/sysv/linux/alpha/sys/user.h 2001-07-06 06:56:13.000000000 +0200
++++ glibc-2.3.6/sysdeps/unix/sysv/linux/alpha/sys/user.h 2006-10-21 22:38:36.108043157 +0200
+@@ -23,6 +23,7 @@
+ only. Don't read too much into it. Don't use it for anything other
+ than gdb/strace unless you know what you are doing. */
+
++#include <unistd.h>
+ #include <asm/page.h>
+ #include <asm/reg.h>
+
+@@ -41,7 +42,7 @@
+ char u_comm[32]; /* user command name */
+ };
+
+-#define NBPG PAGE_SIZE
++#define NBPG sysconf(_SC_PAGESIZE)
+ #define UPAGES 1
+ #define HOST_TEXT_START_ADDR (u.start_code)
+ #define HOST_DATA_START_ADDR (u.start_data)
+--- glibc-2.3.6.orig/sysdeps/unix/sysv/linux/i386/sys/user.h 2001-07-06 06:56:17.000000000 +0200
++++ glibc-2.3.6/sysdeps/unix/sysv/linux/i386/sys/user.h 2006-10-21 22:38:40.748151944 +0200
+@@ -23,6 +23,8 @@
+ too much into it. Don't use it for anything other than GDB unless
+ you know what you are doing. */
+
++#include <unistd.h>
++
+ struct user_fpregs_struct
+ {
+ long int cwd;
+@@ -92,8 +94,7 @@
+ int u_debugreg [8];
+ };
+
+-#define PAGE_SHIFT 12
+-#define PAGE_SIZE (1UL << PAGE_SHIFT)
++#define PAGE_SIZE sysconf(_SC_PAGESIZE)
+ #define PAGE_MASK (~(PAGE_SIZE-1))
+ #define NBPG PAGE_SIZE
+ #define UPAGES 1
+--- glibc-2.3.6.orig/sysdeps/unix/sysv/linux/ia64/sys/user.h 2002-08-25 05:57:38.000000000 +0200
++++ glibc-2.3.6/sysdeps/unix/sysv/linux/ia64/sys/user.h 2006-10-21 22:38:50.554268504 +0200
+@@ -21,6 +21,7 @@
+
+ #include <features.h>
+ #include <sys/types.h>
++#include <unistd.h>
+
+ /* This definition comes directly from the kernel headers. If
+ anything changes in them this header has to be changed, too. */
+@@ -45,7 +46,7 @@
+ char u_comm[32]; /* User command name. */
+ };
+
+-#define NBPG PAGE_SIZE
++#define NBPG sysconf(_SC_PAGESIZE)
+ #define UPAGES 1
+ #define HOST_TEXT_START_ADDR (u.start_code)
+ #define HOST_DATA_START_ADDR (u.start_data)
+--- glibc-2.3.6.orig/sysdeps/unix/sysv/linux/mips/sys/user.h 2004-11-24 05:37:35.000000000 +0100
++++ glibc-2.3.6/sysdeps/unix/sysv/linux/mips/sys/user.h 2006-10-21 22:39:01.575151737 +0200
+@@ -20,6 +20,7 @@
+ #define _SYS_USER_H 1
+
+ #include <sgidefs.h>
++#include <unistd.h>
+
+ /* The whole purpose of this file is for GDB and GDB only. Don't read
+ too much into it. Don't use it for anything other than GDB unless
+@@ -207,8 +208,7 @@
+
+ #endif
+
+-#define PAGE_SHIFT 12
+-#define PAGE_SIZE (1UL << PAGE_SHIFT)
++#define PAGE_SIZE sysconf(_SC_PAGESIZE)
+ #define PAGE_MASK (~(PAGE_SIZE-1))
+ #define NBPG PAGE_SIZE
+ #define UPAGES 1
+--- glibc-2.3.6.orig/sysdeps/unix/sysv/linux/x86_64/sys/user.h 2004-11-05 00:37:34.000000000 +0100
++++ glibc-2.3.6/sysdeps/unix/sysv/linux/x86_64/sys/user.h 2006-10-21 22:39:08.237872033 +0200
+@@ -24,6 +24,7 @@
+ you know what you are doing. */
+
+ #include <bits/wordsize.h>
++#include <unistd.h>
+
+ #if __WORDSIZE == 64
+
+@@ -164,8 +165,7 @@
+ };
+ #endif /* __WORDSIZE */
+
+-#define PAGE_SHIFT 12
+-#define PAGE_SIZE (1UL << PAGE_SHIFT)
++#define PAGE_SIZE sysconf(_SC_PAGESIZE)
+ #define PAGE_MASK (~(PAGE_SIZE-1))
+ #define NBPG PAGE_SIZE
+ #define UPAGES 1
Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series 2006-10-20 22:51:26 UTC (rev 1864)
+++ glibc-package/trunk/debian/patches/series 2006-10-21 20:44:46 UTC (rev 1865)
@@ -169,6 +169,7 @@
any/local-linuxthreads-sizefix.diff -p1
any/local-localedef-fix-trampoline.diff -p1
any/local-makeconfig.diff -p0
+any/local-no-pagesize.diff -p1
any/local-nss-upgrade.diff -p1
any/local-rtld.diff -p1
any/local-sysctl.diff -p1
Reply to: