]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
* Enable ucontext for all Linux builds with glibc 2.4 or later, not just
authorRuss Allbery <rra@debian.org>
Thu, 19 Apr 2007 18:27:01 +0000 (18:27 +0000)
committerRuss Allbery <rra@debian.org>
Thu, 19 Apr 2007 18:27:01 +0000 (18:27 +0000)
  with i386 and amd64.  Newer versions of glibc change internal
  structures in ways that cause the old LWP code to have stack
  overflows.  (Closes: #419903)

debian/changelog
debian/patches/glibc-ucontext [new file with mode: 0644]
src/config/param.alpha_linux_26.h
src/config/param.ia64_linux26.h
src/config/param.parisc_linux24.h
src/config/param.ppc64_linux26.h
src/config/param.ppc_linux26.h
src/config/param.s390_linux26.h
src/config/param.s390x_linux26.h
src/config/param.sparc64_linux26.h
src/config/param.sparc_linux24.h

index f89399307754be099e5445e534d47512f3ad4f58..7ea44ad84be19f39fd1b483acbbef596263bad4b 100644 (file)
@@ -1,5 +1,9 @@
 openafs (1.4.4.dfsg1-2) unstable; urgency=low
 
+  * Enable ucontext for all Linux builds with glibc 2.4 or later, not just
+    with i386 and amd64.  Newer versions of glibc change internal
+    structures in ways that cause the old LWP code to have stack
+    overflows.  (Closes: #419903)
   * When determining the AFS sysname for kernel module builds, add
     explicit cases for 2.6 kernels for all architectures that support them
     (everything except non-64-bit sparc_linux).  Fixes build problems with
diff --git a/debian/patches/glibc-ucontext b/debian/patches/glibc-ucontext
new file mode 100644 (file)
index 0000000..8967b12
--- /dev/null
@@ -0,0 +1,144 @@
+=== src/config/param.alpha_linux_26.h
+==================================================================
+--- src/config/param.alpha_linux_26.h  (revision 2485)
++++ src/config/param.alpha_linux_26.h  (local)
+@@ -81,6 +81,11 @@
+ #define SYS_NAME_ID    SYS_NAME_ID_alpha_linux_26
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* AFS_PARAM_H */
+                                    
+ #else /* !defined(UKERNEL) */
+=== src/config/param.ia64_linux26.h
+==================================================================
+--- src/config/param.ia64_linux26.h    (revision 2485)
++++ src/config/param.ia64_linux26.h    (local)
+@@ -97,6 +97,11 @@
+ #endif /* KERNEL */
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* _PARAM_IA64_LINUX20_H_ */
+ #else /* !defined(UKERNEL) */
+=== src/config/param.parisc_linux24.h
+==================================================================
+--- src/config/param.parisc_linux24.h  (revision 2485)
++++ src/config/param.parisc_linux24.h  (local)
+@@ -70,6 +70,11 @@
+ #endif
+ #endif /* KERNEL */
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* AFS_PARAM_H */
+ #else /* !defined(UKERNEL) */
+=== src/config/param.ppc64_linux26.h
+==================================================================
+--- src/config/param.ppc64_linux26.h   (revision 2485)
++++ src/config/param.ppc64_linux26.h   (local)
+@@ -76,6 +76,11 @@
+ #endif
+ #endif /* KERNEL */
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* _PARAM_PPC64_LINUX20_H_ */
+ #else /* !defined(UKERNEL) */
+=== src/config/param.ppc_linux26.h
+==================================================================
+--- src/config/param.ppc_linux26.h     (revision 2485)
++++ src/config/param.ppc_linux26.h     (local)
+@@ -74,6 +74,11 @@
+ #endif
+ #endif /* KERNEL */
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* AFS_PARAM_H */
+ #else /* !defined(UKERNEL) */
+=== src/config/param.s390_linux26.h
+==================================================================
+--- src/config/param.s390_linux26.h    (revision 2485)
++++ src/config/param.s390_linux26.h    (local)
+@@ -86,6 +86,11 @@
+ #endif
+ #endif /* KERNEL */
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* AFS_PARAM_H */
+ #else /* !defined(UKERNEL) */
+=== src/config/param.s390x_linux26.h
+==================================================================
+--- src/config/param.s390x_linux26.h   (revision 2485)
++++ src/config/param.s390x_linux26.h   (local)
+@@ -89,6 +89,11 @@
+ #endif
+ #endif /* KERNEL */
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* AFS_PARAM_H */
+ #else /* !defined(UKERNEL) */
+=== src/config/param.sparc64_linux26.h
+==================================================================
+--- src/config/param.sparc64_linux26.h (revision 2485)
++++ src/config/param.sparc64_linux26.h (local)
+@@ -95,6 +95,11 @@
+ #endif
+ #endif
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* _PARAM_SPARC64_LINUX26_H_ */
+ #else /* !defined(UKERNEL) */
+=== src/config/param.sparc_linux24.h
+==================================================================
+--- src/config/param.sparc_linux24.h   (revision 2485)
++++ src/config/param.sparc_linux24.h   (local)
+@@ -98,6 +98,11 @@
+ #endif
+ #endif
++#ifdef __GLIBC__
++#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
++#define USE_UCONTEXT
++#endif
++#endif
+ #endif /* AFS_PARAM_H */
+ #else /* !defined(UKERNEL) */
index 1d44da6d742b4054bfc8dfa209710ecd9b0ee1ec..2ec3ba147797f26347aabff10ba8cca7fd053b70 100644 (file)
 #define SYS_NAME_ID    SYS_NAME_ID_alpha_linux_26
 
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* AFS_PARAM_H */
                                     
 #else /* !defined(UKERNEL) */
index 5f28d47a34463a375543a56ecba3bc6861dfd63e..cca359e7f2480394d3d1c2cf932be08ab3aee353 100644 (file)
 #endif /* KERNEL */
 
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* _PARAM_IA64_LINUX20_H_ */
 
 #else /* !defined(UKERNEL) */
index ad7506f5e5ea85a45c4d29a979797be7f986b570..e70234abb69b1bab23e09939573073778604d730 100644 (file)
 #endif
 #endif /* KERNEL */
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* AFS_PARAM_H */
 
 #else /* !defined(UKERNEL) */
index 730caf37c4fe7f251e610578f6bef86944f6d14c..11f7557bd12bb552514291770a8d7866c9927b6e 100644 (file)
 #endif
 #endif /* KERNEL */
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* _PARAM_PPC64_LINUX20_H_ */
 
 #else /* !defined(UKERNEL) */
index 37abeacb9dd31f47224dec99443a4f9b73044daf..d9dd4d8f9e5014ef848aa941e47517fb38ed622c 100644 (file)
 #endif
 #endif /* KERNEL */
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* AFS_PARAM_H */
 
 #else /* !defined(UKERNEL) */
index a941c28c384e186d7f8fc614bdd35517d4b5ad3d..cf3ebf7e12b968451626f0eb9473aac754f301d3 100644 (file)
 #endif
 #endif /* KERNEL */
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* AFS_PARAM_H */
 
 #else /* !defined(UKERNEL) */
index 5ad1806f46ef19cd0e01239a54ac60a351e300f7..bb3bc8515829ee53074e06e232e3d50a65ea7033 100644 (file)
 #endif
 #endif /* KERNEL */
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* AFS_PARAM_H */
 
 #else /* !defined(UKERNEL) */
index 68bd28a24013e429545a66f5b181277d75ec9f6c..30550e2cfa924989eefb49351fb8e8b33522c159 100644 (file)
 #endif
 #endif
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* _PARAM_SPARC64_LINUX26_H_ */
 
 #else /* !defined(UKERNEL) */
index 3082a524e7cf267f2a4e61c68f6f0a18afb3f50b..7373559e2f3b3e21df9d50087aefabb0466d6eb5 100644 (file)
 #endif
 #endif
 
+#ifdef __GLIBC__
+#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 3)
+#define USE_UCONTEXT
+#endif
+#endif
 #endif /* AFS_PARAM_H */
 
 #else /* !defined(UKERNEL) */