[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X Strike Force X.Org X11 SVN commit: r3218 - in branches/7.1/xserver/xorg-server/debian: . patches



Author: dparsons
Date: 2006-09-15 22:55:21 -0400 (Fri, 15 Sep 2006)
New Revision: 3218

Added:
   branches/7.1/xserver/xorg-server/debian/patches/18_execinfo_configured.patch
   branches/7.1/xserver/xorg-server/debian/patches/18_execinfo_only_for_backtrace.patch
Modified:
   branches/7.1/xserver/xorg-server/debian/changelog
   branches/7.1/xserver/xorg-server/debian/patches/series
Log:
  * Apply upstream patches 18_execinfo_configured.patch,
    18_execinfo_only_for_backtrace.patch, to use execinfo.h for and
    only for backtrace. Closes: #363218.
	  


Modified: branches/7.1/xserver/xorg-server/debian/changelog
===================================================================
--- branches/7.1/xserver/xorg-server/debian/changelog	2006-09-16 02:25:58 UTC (rev 3217)
+++ branches/7.1/xserver/xorg-server/debian/changelog	2006-09-16 02:55:21 UTC (rev 3218)
@@ -1,8 +1,11 @@
 xorg-server (2:1.1.1-6) UNRELEASED; urgency=low
 
   * Added SGI FreeB licence to debian/copyright. Closes: #368563.
+  * Apply upstream patches 18_execinfo_configured.patch,
+    18_execinfo_only_for_backtrace.patch, to use execinfo.h for and
+    only for backtrace. Closes: #363218.
 
- -- Drew Parsons <dparsons@debian.org>  Sat, 16 Sep 2006 12:23:04 +1000
+ -- Drew Parsons <dparsons@debian.org>  Sat, 16 Sep 2006 12:45:25 +1000
 
 xorg-server (2:1.1.1-5) experimental; urgency=low
 

Added: branches/7.1/xserver/xorg-server/debian/patches/18_execinfo_configured.patch
===================================================================
--- branches/7.1/xserver/xorg-server/debian/patches/18_execinfo_configured.patch	                        (rev 0)
+++ branches/7.1/xserver/xorg-server/debian/patches/18_execinfo_configured.patch	2006-09-16 02:55:21 UTC (rev 3218)
@@ -0,0 +1,29 @@
+From: Daniel Stone <daniel@fooishbar.org>
+Date: Sat, 12 Aug 2006 16:25:06 +0000 (+0300)
+Subject: configure.ac: fix execinfo.h test (Debian #363218)
+X-Git-Url: http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commitdiff;h=5a3488ccac8e5dabd9fc98bc41ef178ead1b2faf
+
+configure.ac: fix execinfo.h test (Debian #363218)
+Define HAVE_EXECINFO_H as well as HAVE_BACKTRACE, when we find execinfo.h.
+---
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -174,6 +174,7 @@ dnl glibc backtrace support check (hw/xf
+ AC_CHECK_HEADER([execinfo.h],[
+     AC_CHECK_LIB(c, backtrace, [
+         AC_DEFINE(HAVE_BACKTRACE, 1, [Has backtrace support])
++        AC_DEFINE(HAVE_EXECINFO_H, 1, [Have execinfo.h])
+     ])]
+ )
+ 
+--- a/include/xorg-config.h.in
++++ b/include/xorg-config.h.in
+@@ -109,4 +109,7 @@
+ /* Name of the period field in struct kbd_repeat */
+ #undef LNX_KBD_PERIOD_NAME
+ 
++/* Have execinfo.h */
++#undef HAVE_EXECINFO_H
++
+ #endif /* _XORG_CONFIG_H_ */

Added: branches/7.1/xserver/xorg-server/debian/patches/18_execinfo_only_for_backtrace.patch
===================================================================
--- branches/7.1/xserver/xorg-server/debian/patches/18_execinfo_only_for_backtrace.patch	                        (rev 0)
+++ branches/7.1/xserver/xorg-server/debian/patches/18_execinfo_only_for_backtrace.patch	2006-09-16 02:55:21 UTC (rev 3218)
@@ -0,0 +1,31 @@
+From: Michel Dänzer <michel@tungstengraphics.com>
+Date: Sat, 24 Jun 2006 13:09:24 +0000 (+0200)
+Subject: Make sure <execinfo.h> is actually included when needed.
+X-Git-Tag: xorg-server-1.1.99.3
+X-Git-Url: http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commitdiff;h=36756fdb2ddc154b406f664a6af0f38d26e6973d
+
+Make sure <execinfo.h> is actually included when needed.
+
+configure only defines HAVE_BACKTRACE, not HAVE_EXECINFO_H.
+
+This could cause problems on platforms where the size of a pointer is greater
+than that of an integer, see
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=363218 .
+---
+
+--- a/hw/xfree86/common/xf86Events.c
++++ b/hw/xfree86/common/xf86Events.c
+@@ -1255,12 +1255,8 @@ xf86InterceptSigIll(void (*sigillhandler
+     xf86SigIllHandler = sigillhandler;
+ }
+ 
+-#ifdef HAVE_EXECINFO_H
+-#define HAVE_BACKTRACE
+-#include <execinfo.h>
+-#endif
+-
+ #ifdef HAVE_BACKTRACE
++#include <execinfo.h>
+ 
+ static __inline__ void xorg_backtrace(void)
+ {

Modified: branches/7.1/xserver/xorg-server/debian/patches/series
===================================================================
--- branches/7.1/xserver/xorg-server/debian/patches/series	2006-09-16 02:25:58 UTC (rev 3217)
+++ branches/7.1/xserver/xorg-server/debian/patches/series	2006-09-16 02:55:21 UTC (rev 3218)
@@ -15,3 +15,5 @@
 15_symlink_mesa.diff
 16_s390_fix.diff 
 17_ignoreabi.diff
+18_execinfo_configured.patch
+18_execinfo_only_for_backtrace.patch



Reply to: