From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-scheme/stklos/, dev-scheme/stklos/files/
Date: Thu, 17 Nov 2022 21:00:09 +0000 (UTC) [thread overview]
Message-ID: <1668717471.e5bc664a82ec2d232b2ed28c49ece09ffa91ba6f.sam@gentoo> (raw)
commit: e5bc664a82ec2d232b2ed28c49ece09ffa91ba6f
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 17 20:36:53 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 17 20:37:51 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5bc664a
dev-scheme/stklos: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/881693
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../stklos/files/stklos-1.70-configure-clang16.patch | 15 +++++++++++++++
.../stklos/{stklos-1.70.ebuild => stklos-1.70-r1.ebuild} | 14 ++++++++++----
2 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/dev-scheme/stklos/files/stklos-1.70-configure-clang16.patch b/dev-scheme/stklos/files/stklos-1.70-configure-clang16.patch
new file mode 100644
index 000000000000..51fa0842c032
--- /dev/null
+++ b/dev-scheme/stklos/files/stklos-1.70-configure-clang16.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/881693
+--- a/configure.ac
++++ b/configure.ac
+@@ -446,8 +446,9 @@ fi
+ ###
+ ### See in what direction the stack grows (code stolen from Sawfish)
+ ###
+-AC_RUN_IFELSE([AC_LANG_SOURCE([[ void inner (char *foo) { char bar; exit (!(foo >= &bar)); }
+- void main () { char foo; inner (&foo); } ]])],[STACK_DIRECTION="DOWN"],[STACK_DIRECTION="UP"],[echo "Stack direction is not detected when cross compiling for now"])
++AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
++ void inner (char *foo) { char bar; exit (!(foo >= &bar)); }
++ int main (void) { char foo; inner (&foo); } ]])],[STACK_DIRECTION="DOWN"],[STACK_DIRECTION="UP"],[echo "Stack direction is not detected when cross compiling for now"])
+
+
+
diff --git a/dev-scheme/stklos/stklos-1.70.ebuild b/dev-scheme/stklos/stklos-1.70-r1.ebuild
similarity index 86%
rename from dev-scheme/stklos/stklos-1.70.ebuild
rename to dev-scheme/stklos/stklos-1.70-r1.ebuild
index d138654b1211..af8d4da1cbde 100644
--- a/dev-scheme/stklos/stklos-1.70.ebuild
+++ b/dev-scheme/stklos/stklos-1.70-r1.ebuild
@@ -5,7 +5,7 @@ EAPI="8"
inherit autotools toolchain-funcs
-DESCRIPTION="fast and light Scheme implementation"
+DESCRIPTION="Fast and light Scheme implementation"
HOMEPAGE="https://www.stklos.net/"
SRC_URI="https://www.${PN}.net/download/${P}.tar.gz"
@@ -20,18 +20,24 @@ RDEPEND="dev-libs/boehm-gc[threads?]
dev-libs/libpcre"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
DOCS=( AUTHORS ChangeLog {HACKING,NEWS}.md PACKAGES-USED {PORTING-NOTES,README}.md SUPPORTED-SRFIS )
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-configure-clang16.patch
+)
+
src_prepare() {
+ default
+
use threads || rm -f tests/srfis/216.stk
- default
eautoreconf
- export LD="$(tc-getCC)"
}
src_configure() {
+ export LD="$(tc-getCC)"
+
econf \
--enable-threads=$(usex threads pthreads none) \
--without-gmp-light \
next reply other threads:[~2022-11-17 21:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-17 21:00 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-18 5:44 [gentoo-commits] repo/gentoo:master commit in: dev-scheme/stklos/, dev-scheme/stklos/files/ Akinori Hattori
2024-11-03 13:05 Akinori Hattori
2024-05-19 8:50 Akinori Hattori
2024-01-17 11:57 Akinori Hattori
2023-09-27 13:42 Akinori Hattori
2021-11-29 13:25 Akinori Hattori
2021-11-27 6:39 Akinori Hattori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1668717471.e5bc664a82ec2d232b2ed28c49ece09ffa91ba6f.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox