~ubuntu-branches/ubuntu/utopic/eglibc/utopic

« back to all changes in this revision

Viewing changes to debian/patches/any/local-no-pagesize.diff

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2012-10-26 05:14:58 UTC
  • mfrom: (1.5.1) (4.4.22 experimental)
  • Revision ID: package-import@ubuntu.com-20121026051458-oryotr4i03ob5pab
Tags: 2.16-0ubuntu1
* Merge with unreleased 2.16 in Debian experimental, remaining changes:
  - Drop the Breaks line from libc6, which refers to a Debian transition
  - Remove the libc6 recommends on libc6-i686, which we don't build
  - Enable libc6{,-dev}-armel on armhf and libc6{-dev}-armhf on armel
  - Ship update-locale and validlocale in /usr/sbin in libc-bin
  - Don't build locales or locales-all in Ubuntu, we rely on langpacks
  - Heavily mangle the way we do service restarting on major upgrades
  - Use different MIN_KERNEL_SUPPORTED versions than Debian, due to
    buildd needs.  This should be universally bumped to 3.2.0 once all
    our buildds (including the PPA guests) are running precise kernels
  - Build i386 variants as -march=i686, build amd64 with -O3, and build
    ppc64 variants (both 64-bit and 32-bit) with -O3 -fno-tree-vectorize
  - Re-enable unsubmitted-ldconfig-cache-abi.diff and rebuild the cache
    on upgrades from previous versions that used a different constant
  - debian/patches/any/local-CVE-2012-3406.diff: switch to malloc when
    array grows too large to handle via alloca extension (CVE-2012-3406)
  - Build generic i386/i686 flavour with -mno-tls-direct-seg-refs
* Changes added/dropped with this merge while reducing our delta:
  - Stop building glibc docs from the eglibc source, and instead make
    the glibc-docs stub have a hard dependency on glibc-doc-reference
  - Remove outdated conflicts against ancient versions of ia32-libs
  - Drop the tzdata dependency from libc6, it's in required and minimal
  - Use gcc-4.7/g++-4.7 by default on all our supported architectures
  - Save our historical changelog as changelog.ubuntu in the source
  - Drop nscd's libaudit build-dep for now, as libaudit is in universe
  - Drop the unnecessary Breaks from libc6 to locales and locales-all
  - Ship xen's ld.so.conf.d snippet as /etc/ld.so.conf.d/libc6-xen.conf
* Disable hard failures on the test suite for the first upload to raring

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
---
 
2
 ports/sysdeps/unix/sysv/linux/ia64/sys/user.h |    3 ++-
2
3
 ports/sysdeps/unix/sysv/linux/mips/sys/user.h |    4 ++--
3
 
 sysdeps/unix/sysv/linux/ia64/sys/user.h       |    3 ++-
4
 
 sysdeps/unix/sysv/linux/x86_64/sys/user.h     |    4 ++--
5
 
 3 files changed, 6 insertions(+), 5 deletions(-)
 
4
 sysdeps/unix/sysv/linux/check_native.c        |    6 ------
 
5
 sysdeps/unix/sysv/linux/check_pf.c            |    6 ------
 
6
 sysdeps/unix/sysv/linux/ifaddrs.c             |    6 ------
 
7
 sysdeps/unix/sysv/linux/x86/sys/user.h        |    2 ++
 
8
 6 files changed, 6 insertions(+), 21 deletions(-)
6
9
 
7
 
--- a/sysdeps/unix/sysv/linux/ia64/sys/user.h
8
 
+++ b/sysdeps/unix/sysv/linux/ia64/sys/user.h
9
 
@@ -21,6 +21,7 @@
 
10
--- a/ports/sysdeps/unix/sysv/linux/ia64/sys/user.h
 
11
+++ b/ports/sysdeps/unix/sysv/linux/ia64/sys/user.h
 
12
@@ -20,6 +20,7 @@
10
13
 
11
14
 #include <features.h>
12
15
 #include <sys/types.h>
14
17
 
15
18
 /* This definition comes directly from the kernel headers.  If
16
19
    anything changes in them this header has to be changed, too.  */
17
 
@@ -45,7 +46,7 @@
 
20
@@ -44,7 +45,7 @@
18
21
   char u_comm[32];                             /* User command name.  */
19
22
 };
20
23
 
25
28
 #define HOST_DATA_START_ADDR   (u.start_data)
26
29
--- a/ports/sysdeps/unix/sysv/linux/mips/sys/user.h
27
30
+++ b/ports/sysdeps/unix/sysv/linux/mips/sys/user.h
28
 
@@ -20,6 +20,7 @@
 
31
@@ -19,6 +19,7 @@
29
32
 #define _SYS_USER_H    1
30
33
 
31
34
 #include <sgidefs.h>
33
36
 
34
37
 /* The whole purpose of this file is for GDB and GDB only.  Don't read
35
38
    too much into it.  Don't use it for anything other than GDB unless
36
 
@@ -207,8 +208,7 @@
 
39
@@ -206,8 +207,7 @@
37
40
 
38
41
 #endif
39
42
 
43
46
 #define PAGE_MASK              (~(PAGE_SIZE-1))
44
47
 #define NBPG                   PAGE_SIZE
45
48
 #define UPAGES                 1
46
 
--- a/sysdeps/unix/sysv/linux/x86_64/sys/user.h
47
 
+++ b/sysdeps/unix/sysv/linux/x86_64/sys/user.h
48
 
@@ -24,6 +24,7 @@
 
49
--- a/sysdeps/unix/sysv/linux/x86/sys/user.h
 
50
+++ b/sysdeps/unix/sysv/linux/x86/sys/user.h
 
51
@@ -22,6 +22,8 @@
 
52
    too much into it.  Don't use it for anything other than GDB unless
49
53
    you know what you are doing.  */
50
54
 
51
 
 #include <bits/wordsize.h>
52
55
+#include <unistd.h>
53
 
 
54
 
 #if __WORDSIZE == 64
55
 
 
56
 
@@ -164,8 +165,7 @@
57
 
 };
58
 
 #endif  /* __WORDSIZE */
59
 
 
60
 
-#define PAGE_SHIFT             12
61
 
-#define PAGE_SIZE              (1UL << PAGE_SHIFT)
62
 
+#define PAGE_SIZE              (sysconf(_SC_PAGESIZE))
63
 
 #define PAGE_MASK              (~(PAGE_SIZE-1))
64
 
 #define NBPG                   PAGE_SIZE
65
 
 #define UPAGES                 1
66
 
diff --git a/sysdeps/unix/sysv/linux/check_native.c b/sysdeps/unix/sysv/linux/check_native.c
67
 
index 6e6624a..58db4cd 100644
 
56
+
 
57
 #ifdef __x86_64__
 
58
 
 
59
 struct user_fpregs_struct
68
60
--- a/sysdeps/unix/sysv/linux/check_native.c
69
61
+++ b/sysdeps/unix/sysv/linux/check_native.c
70
 
@@ -77,13 +77,7 @@ __check_native (uint32_t a1_index, int *a1_native,
 
62
@@ -77,13 +77,7 @@
71
63
   memset (&nladdr, '\0', sizeof (nladdr));
72
64
   nladdr.nl_family = AF_NETLINK;
73
65
 
81
73
   bool use_malloc = false;
82
74
   char *buf;
83
75
 
84
 
diff --git a/sysdeps/unix/sysv/linux/check_pf.c b/sysdeps/unix/sysv/linux/check_pf.c
85
 
index c053adc..f4efc25 100644
86
76
--- a/sysdeps/unix/sysv/linux/check_pf.c
87
77
+++ b/sysdeps/unix/sysv/linux/check_pf.c
88
 
@@ -71,13 +71,7 @@ make_request (int fd, pid_t pid, bool *seen_ipv4, bool *seen_ipv6,
 
78
@@ -108,13 +108,7 @@
89
79
   memset (&nladdr, '\0', sizeof (nladdr));
90
80
   nladdr.nl_family = AF_NETLINK;
91
81
 
99
89
   bool use_malloc = false;
100
90
   char *buf;
101
91
 
102
 
diff --git a/sysdeps/unix/sysv/linux/ifaddrs.c b/sysdeps/unix/sysv/linux/ifaddrs.c
103
 
index ca8c490..83ca090 100644
104
92
--- a/sysdeps/unix/sysv/linux/ifaddrs.c
105
93
+++ b/sysdeps/unix/sysv/linux/ifaddrs.c
106
 
@@ -144,13 +144,7 @@ __netlink_request (struct netlink_handle *h, int type)
 
94
@@ -143,13 +143,7 @@
107
95
   ssize_t read_len;
108
96
   bool done = false;
109
97
 
116
104
-#endif
117
105
   bool use_malloc = false;
118
106
   char *buf;
119
 
 
 
107