From 2a45e22d762a333eda20e5bec9d4227887f6ba8b46460f522a9975e67350d226 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Sat, 13 Feb 2010 15:24:36 +0000 Subject: [PATCH] Accepting request 32478 from Base:System Copy from Base:System/diffutils based on submit request 32478 from user rguenther OBS-URL: https://build.opensuse.org/request/show/32478 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diffutils?expand=0&rev=7 --- diffutils-2.8.7-autoconf.patch | 21 +++++++++++++++++++++ diffutils.changes | 5 +++++ diffutils.spec | 6 ++++-- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 diffutils-2.8.7-autoconf.patch diff --git a/diffutils-2.8.7-autoconf.patch b/diffutils-2.8.7-autoconf.patch new file mode 100644 index 0000000..cf9b15f --- /dev/null +++ b/diffutils-2.8.7-autoconf.patch @@ -0,0 +1,21 @@ +Index: m4/c-stack.m4 +=================================================================== +--- m4/c-stack.m4.orig 2007-09-24 11:55:43.000000000 +0200 ++++ m4/c-stack.m4 2010-02-13 14:56:24.000000000 +0100 +@@ -12,6 +12,8 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEUR + AC_REQUIRE([AC_FUNC_ALLOCA]) + AC_CHECK_FUNCS(setrlimit) + ++ saved_CFLAGS=$CFLAGS ++ CFLAGS=-O0 + AC_CACHE_CHECK([for working C stack overflow detection], + ac_cv_sys_xsi_stack_overflow_heuristic, + [AC_TRY_RUN( +@@ -113,6 +115,7 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEUR + [ac_cv_sys_xsi_stack_overflow_heuristic=yes], + [ac_cv_sys_xsi_stack_overflow_heuristic=no], + [ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling])]) ++ CFLAGS=$saved_CFLAGS + + if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then + AC_DEFINE(HAVE_XSI_STACK_OVERFLOW_HEURISTIC, 1, diff --git a/diffutils.changes b/diffutils.changes index 9dabfc9..cec9c2a 100644 --- a/diffutils.changes +++ b/diffutils.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Feb 13 15:06:26 CET 2010 - rguenther@suse.de + +- fix stack limit autoconf check + ------------------------------------------------------------------- Mon Dec 7 23:11:11 CET 2009 - jengelh@medozas.de diff --git a/diffutils.spec b/diffutils.spec index c0fa733..83f818b 100644 --- a/diffutils.spec +++ b/diffutils.spec @@ -1,7 +1,7 @@ # # spec file for package diffutils (Version 2.8.7) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,10 +27,11 @@ Obsoletes: diff AutoReqProv: on PreReq: %{install_info_prereq} Version: 2.8.7 -Release: 144 +Release: 145 Summary: GNU diff Utilities Source: diffutils-%{version}-cvs.tar.bz2 Patch1: diffutils-2.8.1-i18n-0.2.patch +Patch2: diffutils-2.8.7-autoconf.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -49,6 +50,7 @@ Authors: %prep %setup -q -n %{name}-%{version}-cvs %patch1 -p1 +%patch2 %build AUTOPOINT=true autoreconf -fi