tag 617628 + patch
user ubuntu-de...@lists.ubuntu.com
usertags 617628 + natty ubuntu-patch
user debian-...@lists.debian.org
usertags 617628 + ftbfs-gcc-4.6
thanks

seen as well on ix86 with GCC-4.6. workaround to run the test with -O0.

same with all tcl8.x and tk8.x packages.

diff -u tcl8.5-8.5.9/debian/changelog tcl8.5-8.5.9/debian/changelog
--- tcl8.5-8.5.9/debian/changelog
+++ tcl8.5-8.5.9/debian/changelog
@@ -1,3 +1,9 @@
+tcl8.5 (8.5.9-2ubuntu1) oneiric; urgency=low
+
+  * Fix stack grow check. Closes: #617628.
+
+ -- Matthias Klose <d...@ubuntu.com>  Tue, 26 Apr 2011 12:35:40 +0200
+
 tcl8.5 (8.5.9-2) unstable; urgency=low
 
   * Moved /usr/share/tcltk/tcl8.5/tclConfig.sh back to the /usr/lib/tcl8.5
diff -u tcl8.5-8.5.9/debian/patches/series tcl8.5-8.5.9/debian/patches/series
--- tcl8.5-8.5.9/debian/patches/series
+++ tcl8.5-8.5.9/debian/patches/series
@@ -8,0 +9 @@
+tclstackcheck.diff
only in patch2:
unchanged:
--- tcl8.5-8.5.9.orig/debian/patches/tclstackcheck.diff
+++ tcl8.5-8.5.9/debian/patches/tclstackcheck.diff
@@ -0,0 +1,38 @@
+--- tcl8.5-8.5.9.orig/unix/configure.in
++++ tcl8.5-8.5.9/unix/configure.in
+@@ -703,6 +703,8 @@
+ #  Does the C stack grow upwards or downwards? Or cross-compiling?
+ #--------------------------------------------------------------------
+ 
++hold_cflags=$CFLAGS
++CFLAGS="$CFLAGS -O0"
+ AC_CACHE_CHECK([if the C stack grows upwards in memory], 
tcl_cv_stack_grows_up, [
+     AC_TRY_RUN([
+       int StackGrowsUp(int *parent) {
+@@ -715,6 +717,7 @@
+       }
+     ], tcl_cv_stack_grows_up=yes, tcl_cv_stack_grows_up=no,
+     tcl_cv_stack_grows_up=unknown)])
++CFLAGS=$hold_cflags
+ if test $tcl_cv_stack_grows_up = unknown; then
+     AC_DEFINE(TCL_CROSS_COMPILE, 1, [Are we cross-compiling?])
+ elif test $tcl_cv_stack_grows_up = yes; then
+--- tcl8.5-8.5.9.orig/unix/configure
++++ tcl8.5-8.5.9/unix/configure
+@@ -18660,6 +18660,8 @@
+ #  Does the C stack grow upwards or downwards? Or cross-compiling?
+ #--------------------------------------------------------------------
+ 
++hold_CFLAGS=$CFLAGS
++CFLAGS="$CFLAGS -O0"
+ echo "$as_me:$LINENO: checking if the C stack grows upwards in memory" >&5
+ echo $ECHO_N "checking if the C stack grows upwards in memory... $ECHO_C" >&6
+ if test "${tcl_cv_stack_grows_up+set}" = set; then
+@@ -18711,6 +18713,7 @@
+ fi
+ echo "$as_me:$LINENO: result: $tcl_cv_stack_grows_up" >&5
+ echo "${ECHO_T}$tcl_cv_stack_grows_up" >&6
++CFLAGS=$hold_CFLAGS
+ if test $tcl_cv_stack_grows_up = unknown; then
+ 
+ cat >>confdefs.h <<\_ACEOF

Reply via email to