public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cantor] f45: Fix for Julia 1.13 API change
@ 2026-11-12 1:40 Milan Bouchet-Valat
0 siblings, 0 replies; only message in thread
From: Milan Bouchet-Valat @ 2026-11-12 1:40 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-12 1:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 1:40 [rpms/cantor] f45: Fix for Julia 1.13 API change Milan Bouchet-Valat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox