Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile/, dev-scheme/guile/files/
Date: Fri, 01 Jan 2021 05:52:39
Message-Id: 1609480349.fb97c7de4b112b77e5205b7926bfaf1d38cc733d.sam@gentoo
1 commit: fb97c7de4b112b77e5205b7926bfaf1d38cc733d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 05:52:29 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 05:52:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb97c7de
7
8 dev-scheme/guile: fix build where stack grows upwards
9
10 Closes: https://bugs.gentoo.org/747049
11 Package-Manager: Portage-3.0.9, Repoman-3.0.2
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 dev-scheme/guile/files/guile-2.2.7-stack-up.patch | 17 +++++++++++++++++
15 dev-scheme/guile/guile-2.2.7.ebuild | 8 ++++++--
16 2 files changed, 23 insertions(+), 2 deletions(-)
17
18 diff --git a/dev-scheme/guile/files/guile-2.2.7-stack-up.patch b/dev-scheme/guile/files/guile-2.2.7-stack-up.patch
19 new file mode 100644
20 index 00000000000..de291421c0b
21 --- /dev/null
22 +++ b/dev-scheme/guile/files/guile-2.2.7-stack-up.patch
23 @@ -0,0 +1,17 @@
24 +This patch (dropping an obsolete extra parameter to grow_stack) landed post
25 +2.2.7 and we're not likely to ever see a 2.2.8, as development has moved
26 +on to 3.x now.
27 +
28 +https://bugs.gentoo.org/747049
29 +https://www.mail-archive.com/guile-devel@×××.org/msg15502.html
30 +--- a/libguile/continuations.c
31 ++++ b/libguile/continuations.c
32 +@@ -302,7 +302,7 @@
33 +
34 + #if SCM_STACK_GROWS_UP
35 + if (dst + continuation->num_stack_items >= &stack_top_element)
36 +- grow_stack (cont, mra);
37 ++ grow_stack (cont);
38 + #else
39 + dst -= continuation->num_stack_items;
40 + if (dst <= &stack_top_element)
41
42 diff --git a/dev-scheme/guile/guile-2.2.7.ebuild b/dev-scheme/guile/guile-2.2.7.ebuild
43 index 61026da9a02..6020cc99568 100644
44 --- a/dev-scheme/guile/guile-2.2.7.ebuild
45 +++ b/dev-scheme/guile/guile-2.2.7.ebuild
46 @@ -1,4 +1,4 @@
47 -# Copyright 1999-2020 Gentoo Authors
48 +# Copyright 1999-2021 Gentoo Authors
49 # Distributed under the terms of the GNU General Public License v2
50
51 EAPI=7
52 @@ -29,7 +29,11 @@ BDEPEND="
53 sys-devel/libtool
54 sys-devel/gettext"
55
56 -PATCHES=( "${FILESDIR}/${PN}-2.2.3-gentoo-sandbox.patch" )
57 +PATCHES=(
58 + "${FILESDIR}/${PN}-2.2.3-gentoo-sandbox.patch"
59 + "${FILESDIR}/${PN}-2.2.7-stack-up.patch"
60 +)
61 +
62 DOCS=( GUILE-VERSION HACKING README )
63
64 src_configure() {