summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-05-01 21:29:09 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-05-02 02:39:02 +0200
commitff92c8f0acd46f84cdd4e1dde15e9ed75536cbe8 (patch)
tree7ebd57dacdc2beab29e131856b53d3f365952bb1 /dev-lang/julia
parentdev-util/gertty: enable support for sqlalchemy-2 (diff)
downloadgentoo-ff92c8f0acd46f84cdd4e1dde15e9ed75536cbe8.tar.gz
gentoo-ff92c8f0acd46f84cdd4e1dde15e9ed75536cbe8.tar.bz2
gentoo-ff92c8f0acd46f84cdd4e1dde15e9ed75536cbe8.zip
dev-lang/julia: patch for GCC 13
Closes: https://bugs.gentoo.org/895710 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang/julia')
-rw-r--r--dev-lang/julia/files/julia-1.8.3-gcc13.patch10
-rw-r--r--dev-lang/julia/julia-1.8.5.ebuild12
2 files changed, 22 insertions, 0 deletions
diff --git a/dev-lang/julia/files/julia-1.8.3-gcc13.patch b/dev-lang/julia/files/julia-1.8.3-gcc13.patch
new file mode 100644
index 000000000000..96e2e48ba78d
--- /dev/null
+++ b/dev-lang/julia/files/julia-1.8.3-gcc13.patch
@@ -0,0 +1,10 @@
+--- a/deps/srccache/JuliaLang-llvm-project-8a2ae8c/llvm/include/llvm/Support/Signals.h
++++ b/deps/srccache/JuliaLang-llvm-project-8a2ae8c/llvm/include/llvm/Support/Signals.h
+@@ -15,6 +15,7 @@
+ #define LLVM_SUPPORT_SIGNALS_H
+
+ #include <string>
++#include <cstdint>
+
+ namespace llvm {
+ class StringRef;
diff --git a/dev-lang/julia/julia-1.8.5.ebuild b/dev-lang/julia/julia-1.8.5.ebuild
index eff4ebe3ca0b..85c029763417 100644
--- a/dev-lang/julia/julia-1.8.5.ebuild
+++ b/dev-lang/julia/julia-1.8.5.ebuild
@@ -65,6 +65,7 @@ PATCHES=(
"${DISTDIR}"/${PN}-0b211609.patch
"${DISTDIR}"/${PN}-a48ad530.patch
"${FILESDIR}"/${PN}-1.8.0-llvm-no-bindings.patch
+ "${FILESDIR}"/${PN}-1.8.3-gcc13.patch
)
QA_FLAGS_IGNORED+='usr/.*/julia/sys.so' # Julia sysimage generated by bootstrapping.
@@ -103,6 +104,10 @@ src_unpack() {
for i in "${tounpack[@]:1}"; do
cp "${DISTDIR}/${i}" "${S}/deps/srccache/${i#julia-}" || die
done
+
+ # Extract tarballs for patching.
+ cd "${S}/deps/srccache/" || die
+ tar xf llvm-julia-13.0.1-3.tar.gz || die
}
src_prepare() {
@@ -123,6 +128,13 @@ src_prepare() {
# disable doc install starting git fetching
sed -i -e 's~install: $(build_depsbindir)/stringreplace $(BUILDROOT)/doc/_build/html/en/index.html~install: $(build_depsbindir)/stringreplace~' Makefile || die
+
+ # Blank the tarball checksum check script.
+ echo "#!/bin/sh" > deps/tools/jlchecksum || die
+
+ # Repack tarballs.
+ cd "${S}/deps/srccache/" || die
+ tar czf llvm-julia-13.0.1-3.tar.gz JuliaLang-llvm-project-8a2ae8c || die
}
src_configure() {