public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Bouchet-Valat <nalimilan@club.fr>
To: git-commits@fedoraproject.org
Subject: [rpms/cantor] f45: Fix for Julia 1.13 API change
Date: Thu, 12 Nov 2026 01:40:52 GMT [thread overview]
Message-ID: <179444765222.1.1185395833355691146.rpms-cantor-d1d7f39dd89e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cantor
Branch : f45
Commit : d1d7f39dd89ec5a938f3ceebc46c542e5d9ba751
Author : Milan Bouchet-Valat <nalimilan@club.fr>
Date : 2026-11-11T21:58:21+01:00
Stats : +65/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/cantor/c/d1d7f39dd89ec5a938f3ceebc46c542e5d9ba751?branch=f45
Log:
Fix for Julia 1.13 API change
---
diff --git a/cantor-26.08.3-julia-api-1.13.patch b/cantor-26.08.3-julia-api-1.13.patch
new file mode 100644
index 0000000..d689f17
--- /dev/null
+++ b/cantor-26.08.3-julia-api-1.13.patch
@@ -0,0 +1,59 @@
+--- a/src/backends/julia/juliaserver/juliaserver.cpp 2026-11-04 14:41:42.683154025 +0100
++++ b/src/backends/julia/juliaserver/juliaserver.cpp 2026-11-04 14:42:09.193959690 +0100
+@@ -60,7 +60,7 @@
+ );
+
+ jl_module_t* jl_repl_module = (jl_module_t*)(jl_eval_string("REPL"));
+- jl_function_t* jl_ends_func = jl_get_function(jl_repl_module, "ends_with_semicolon");
++ auto* jl_ends_func = jl_get_function(jl_repl_module, "ends_with_semicolon");
+ bool isEndsWithSemicolon = jl_unbox_bool(jl_call1(jl_ends_func, jl_cstr_to_string(command.toStdString().c_str())));
+
+ // Run command
+@@ -78,7 +78,7 @@
+ jl_value_t *ex = jl_exception_in_transit;
+ #endif
+ jl_printf(jl_stderr_stream(), "error during run:\n");
+- jl_function_t *showerror =
++ auto *showerror =
+ jl_get_function(jl_base_module, "showerror");
+ jl_value_t *bt = static_cast<jl_value_t *>(
+ jl_eval_string("catch_backtrace()")
+@@ -91,7 +91,7 @@
+ m_was_exception = true;
+ } else if (val && !isEndsWithSemicolon) { // no exception occurred
+ // If last result is not nothing, show it
+- jl_function_t *equality = jl_get_function(jl_base_module, "==");
++ auto *equality = jl_get_function(jl_base_module, "==");
+ jl_value_t *nothing =
+ static_cast<jl_value_t *>(jl_eval_string("nothing"));
+ bool is_nothing = jl_unbox_bool(
+@@ -99,7 +99,7 @@
+ );
+ if (!is_nothing) {
+ jl_value_t *out_display = static_cast<jl_value_t *>(jl_eval_string("TextDisplay(stdout)"));
+- jl_function_t *display = jl_get_function(jl_base_module, "display");
++ auto *display = jl_get_function(jl_base_module, "display");
+ jl_call2(display, out_display, val);
+ }
+ m_was_exception = false;
+@@ -154,8 +154,8 @@
+
+ void JuliaServer::parseJlModule(jl_module_t* module, bool parseValue)
+ {
+- jl_function_t* jl_string_function = jl_get_function(jl_base_module, "string");
+- jl_function_t* jl_sizeof_function = jl_get_function(jl_base_module, "sizeof");
++ auto* jl_string_function = jl_get_function(jl_base_module, "string");
++ auto* jl_sizeof_function = jl_get_function(jl_base_module, "sizeof");
+
+ if (module != JL_MAIN_MODULE)
+ {
+@@ -166,7 +166,7 @@
+ parsedModules.append(moduleName);
+ }
+
+- jl_function_t* jl_names_function = jl_get_function(jl_base_module, "names");
++ auto* jl_names_function = jl_get_function(jl_base_module, "names");
+ jl_value_t* names = jl_call1(jl_names_function, (jl_value_t*)module);
+ #if QT_VERSION_CHECK(JULIA_VERSION_MAJOR, JULIA_VERSION_MINOR, 0) >= QT_VERSION_CHECK(1, 11, 0)
+ jl_value_t **data = (jl_value_t**)jl_array_data_(names);
+
diff --git a/cantor.spec b/cantor.spec
index d0ed9d4..e087766 100644
--- a/cantor.spec
+++ b/cantor.spec
@@ -25,7 +25,7 @@
Name: cantor
Summary: KDE Frontend to Mathematical Software
Version: 26.08.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL-2.0-or-later
URL: https://apps.kde.org/cantor/
@@ -40,6 +40,8 @@ Source: https://download.kde.org/%{stable_kf6}/release-service/%{version}/src/%
Patch2: cantor-21.04.3-no-julia-internal.patch
# Fixes for R API 4.6
Patch: cantor-26.04.0-r-api-4.6.patch
+# Fix for Julia API 1.13 (backport of 0d1fd2ede08d3904e1b6781f2f0578bb76ed8601)
+Patch: cantor-26.08.3-julia-api-1.13.patch
BuildRequires: openblas-devel
@@ -265,6 +267,9 @@ desktop-file-validate %{buildroot}%{_kf6_datadir}/applications/org.kde.%{name}.d
%changelog
+* Wed Nov 11 2026 Milan Bouchet-Valat <nalimilan@club.fr> - 26.08.3-2
+- Patch for Julia API 1.13
+
* Sun Nov 08 2026 Steve Cossette <farchord@gmail.com> - 26.08.3-1
- 26.08.3
reply other threads:[~2026-11-12 1:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179444765222.1.1185395833355691146.rpms-cantor-d1d7f39dd89e@fedoraproject.org \
--to=nalimilan@club.fr \
--cc=git-commits@fedoraproject.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