From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/julia/files/, dev-lang/julia/
Date: Fri, 19 Nov 2021 05:28:06 +0000 (UTC) [thread overview]
Message-ID: <1637299671.1cd3050cc829569909731b3571b30f05fdc21f30.sam@gentoo> (raw)
commit: 1cd3050cc829569909731b3571b30f05fdc21f30
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 19 05:27:51 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov 19 05:27:51 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cd3050c
dev-lang/julia: fix build with glibc 2.34
Closes: https://bugs.gentoo.org/824486
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-lang/julia/files/julia-1.6.3-glibc-2.34.patch | 32 +++++++++++++++++++++++
dev-lang/julia/julia-1.6.3.ebuild | 1 +
2 files changed, 33 insertions(+)
diff --git a/dev-lang/julia/files/julia-1.6.3-glibc-2.34.patch b/dev-lang/julia/files/julia-1.6.3-glibc-2.34.patch
new file mode 100644
index 000000000000..3e3146529aea
--- /dev/null
+++ b/dev-lang/julia/files/julia-1.6.3-glibc-2.34.patch
@@ -0,0 +1,32 @@
+https://github.com/JuliaLang/julia/commit/09a49c6b57fbde109f0f0c2aa9aa05cef2c1dd40
+https://bugs.gentoo.org/824486
+
+From: t-bltg <13423344+t-bltg@users.noreply.github.com>
+Date: Thu, 12 Aug 2021 21:36:18 +0200
+Subject: [PATCH] MINSIGSTKSZ is no longer constant in glibc (#41860)
+
+MINSIGSTKSZ is redefined to sysconf(_SC_MINSIGSTKSZ) starting from glibc 2.34
+
+Co-authored-by: t-bltg <t-bltg@users.noreply.github.com>
+(cherry picked from commit f19b9a20dde2688c642b7dd709b5d9446e4df2f6)
+--- a/src/task.c
++++ b/src/task.c
+@@ -29,6 +29,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <signal.h>
++#include <unistd.h>
+ #include <errno.h>
+ #include <inttypes.h>
+ #include "julia.h"
+@@ -75,8 +76,8 @@ static inline void tsan_switch_to_ctx(jl_ucontext_t *ctx) {}
+
+ // empirically, jl_finish_task needs about 64k stack space to infer/run
+ // and additionally, gc-stack reserves 64k for the guard pages
+-#if defined(MINSIGSTKSZ) && MINSIGSTKSZ > 131072
+-#define MINSTKSZ MINSIGSTKSZ
++#if defined(MINSIGSTKSZ)
++#define MINSTKSZ (MINSIGSTKSZ > 131072 ? MINSIGSTKSZ : 131072)
+ #else
+ #define MINSTKSZ 131072
+ #endif
diff --git a/dev-lang/julia/julia-1.6.3.ebuild b/dev-lang/julia/julia-1.6.3.ebuild
index 83b3fe9df043..096876a7c5a3 100644
--- a/dev-lang/julia/julia-1.6.3.ebuild
+++ b/dev-lang/julia/julia-1.6.3.ebuild
@@ -67,6 +67,7 @@ PATCHES=(
"${FILESDIR}/${PN}"-1.1.0-fix_llvm_install.patch
"${FILESDIR}/${PN}"-1.4.0-no_symlink_llvm.patch
"${FILESDIR}/${PN}"-1.6.0-fix-hardcoded-libs.patch
+ "${FILESDIR}/${PN}"-1.6.3-glibc-2.34.patch
)
pkg_setup() {
next reply other threads:[~2021-11-19 5:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-19 5:28 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-04 5:16 [gentoo-commits] repo/gentoo:master commit in: dev-lang/julia/files/, dev-lang/julia/ Matthias Maier
2022-12-10 19:31 Maciej Barć
2022-03-17 9:06 Maciej Barć
2022-01-03 21:37 Matthias Maier
2021-11-18 6:58 Matthias Maier
2020-04-03 3:20 Matthias Maier
2020-04-03 3:20 Matthias Maier
2019-02-24 3:12 Matthias Maier
2019-01-07 21:38 Matthias Maier
2018-08-31 2:32 Matthias Maier
2018-07-01 4:49 Matthias Maier
2017-11-28 11:12 Matthias Maier
2016-09-24 21:25 Matthias Maier
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=1637299671.1cd3050cc829569909731b3571b30f05fdc21f30.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