From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1SmAxp-0000U6-88 for garchives@archives.gentoo.org; Tue, 03 Jul 2012 21:48:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB206E0517; Tue, 3 Jul 2012 21:48:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 699C0E0517 for ; Tue, 3 Jul 2012 21:48:45 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 932911B401D for ; Tue, 3 Jul 2012 21:48:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5C4BBE5436 for ; Tue, 3 Jul 2012 21:48:43 +0000 (UTC) From: "Cyprien Nicolas" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Cyprien Nicolas" Message-ID: <1341352115.56631f8f78afd6f46d29e1bdbd5cc0ee7978b9a2.fulax@gentoo> Subject: [gentoo-commits] proj/lisp:master commit in: dev-scheme/guile/files/, dev-scheme/guile/ X-VCS-Repository: proj/lisp X-VCS-Files: dev-scheme/guile/files/guile-1.8.8-fix_stack-grow-direction-check.patch dev-scheme/guile/guile-1.8.8-r2.ebuild X-VCS-Directories: dev-scheme/guile/files/ dev-scheme/guile/ X-VCS-Committer: fulax X-VCS-Committer-Name: Cyprien Nicolas X-VCS-Revision: 56631f8f78afd6f46d29e1bdbd5cc0ee7978b9a2 X-VCS-Branch: master Date: Tue, 3 Jul 2012 21:48:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 2a6c700c-fab0-4e50-83f8-679c3cd4eb5d X-Archives-Hash: 9f24ae9471795f537108a24b07511f8a commit: 56631f8f78afd6f46d29e1bdbd5cc0ee7978b9a2 Author: Cyprien Nicolas (fulax) gmail co= m> AuthorDate: Tue Jul 3 21:48:35 2012 +0000 Commit: Cyprien Nicolas gmail com> CommitDate: Tue Jul 3 21:48:35 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/lisp.git;a=3D= commit;h=3D56631f8f dev-scheme/guile-1.8.8-r2: Import upstream patch for bug #424475. No revb= ump as it fixes a build-time failure. (Portage version: 2.2.0_alpha110/git/Linux i686, signed Manifest commit w= ith key 0xBE63A96F) --- ...uile-1.8.8-fix_stack-grow-direction-check.patch | 53 ++++++++++++++= ++++++ dev-scheme/guile/guile-1.8.8-r2.ebuild | 8 ++-- 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/dev-scheme/guile/files/guile-1.8.8-fix_stack-grow-direction-= check.patch b/dev-scheme/guile/files/guile-1.8.8-fix_stack-grow-direction= -check.patch new file mode 100644 index 0000000..a9fe226 --- /dev/null +++ b/dev-scheme/guile/files/guile-1.8.8-fix_stack-grow-direction-check.p= atch @@ -0,0 +1,53 @@ +From 62bc1072c19e81bb0f9e42a5034e7ab8c27d3b94 Mon Sep 17 00:00:00 2001 +From: Ludovic Court=C3=A8s +Date: Sun, 01 Jul 2012 15:32:03 +0000 +Subject: Fix stack growth direction check. + +Backport of 236f901b0e2b18093421e2e440cf80d00fb98757 from `stable-2.0'. +Fixes . +Reported by Cyprien Nicolas . + +* configure.in: Pull stack growth direction check from upstream + Autoconf. See + http://lists.gnu.org/archive/html/bug-autoconf/2011-06/msg00035.html + for a discussion. +--- +diff --git a/configure.in b/configure.in +index f058841..682e31f 100644 +--- a/configure.in ++++ b/configure.in +@@ -1244,23 +1244,20 @@ SCM_I_GSC_STACK_GROWS_UP=3D0 + AC_RUN_IFELSE([AC_LANG_SOURCE( + [AC_INCLUDES_DEFAULT + int +-find_stack_direction () ++find_stack_direction (int *addr, int depth) + { +- static char *addr =3D 0; +- auto char dummy; +- if (addr =3D=3D 0) +- { +- addr =3D &dummy; +- return find_stack_direction (); +- } +- else +- return (&dummy > addr) ? 1 : -1; ++ int dir, dummy =3D 0; ++ if (! addr) ++ addr =3D &dummy; ++ *addr =3D addr < &dummy ? 1 : addr =3D=3D &dummy ? 0 : -1; ++ dir =3D depth ? find_stack_direction (addr, depth - 1) : 0; ++ return dir + dummy; + } +=20 + int +-main () ++main (int argc, char **argv) + { +- return find_stack_direction () < 0; ++ return find_stack_direction (0, argc + !argv + 20) < 0; + }])], + [SCM_I_GSC_STACK_GROWS_UP=3D1], + [], +-- +cgit v0.9.0.2 diff --git a/dev-scheme/guile/guile-1.8.8-r2.ebuild b/dev-scheme/guile/gu= ile-1.8.8-r2.ebuild index ffac522..82fce01 100644 --- a/dev-scheme/guile/guile-1.8.8-r2.ebuild +++ b/dev-scheme/guile/guile-1.8.8-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/guile/guile-1.8.8-r1.ebuil= d,v 1.10 2011/07/09 11:18:15 xarthisius Exp $ +# $Header: $ =20 -EAPI=3D3 +EAPI=3D4 inherit eutils autotools flag-o-matic elisp-common =20 DESCRIPTION=3D"Scheme interpreter" @@ -29,8 +29,8 @@ SLOT=3D"12" MAJOR=3D"1.8" =20 src_prepare() { - # epatch "${FILESDIR}/${P}-fix_guile-config.patch" + epatch "${FILESDIR}/${P}-fix_stack-grow-direction-check.patch" eautoreconf } =20