public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/sympy] rawhide: Fix compatibility with llvmlite 0.48
Date: Sat, 04 Jul 2026 15:58:06 GMT [thread overview]
Message-ID: <178318068643.1.14859862305179232303.rpms-sympy-c81a2aee6759@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/sympy
Branch : rawhide
Commit : c81a2aee6759e11dc552f1ff384d046a0c1be5ef
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-07-02T12:31:20+01:00
Stats : +33/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/sympy/c/c81a2aee6759e11dc552f1ff384d046a0c1be5ef?branch=rawhide
Log:
Fix compatibility with llvmlite 0.48
---
diff --git a/30006.patch b/30006.patch
new file mode 100644
index 0000000..05eff47
--- /dev/null
+++ b/30006.patch
@@ -0,0 +1,30 @@
+From 774c64aafd72e3ae0196baac71be17aef489cf77 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Thu, 2 Jul 2026 12:21:02 +0100
+Subject: [PATCH] Fix compatibility with llvmlite 0.48
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The `size_level` keyword argument to
+`llvm.create_pipeline_tuning_options` has been removed, so don’t pass it
+anymore. This is backward-compatible with previous `llvmlite` releases
+because we were explicitly passing the default value anyway.
+---
+ sympy/printing/llvmjitcode.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/sympy/printing/llvmjitcode.py b/sympy/printing/llvmjitcode.py
+index 2d60bcf5cda0..7f495387db1b 100644
+--- a/sympy/printing/llvmjitcode.py
++++ b/sympy/printing/llvmjitcode.py
+@@ -285,8 +285,7 @@ def _compile_function(self, strmod):
+ pmb.populate(pass_manager)
+ pass_manager.run(llmod)
+ else:
+- pto = llvm.create_pipeline_tuning_options(speed_level=2,
+- size_level=0)
++ pto = llvm.create_pipeline_tuning_options(speed_level=2)
+ pto.loop_vectorization = True
+ pass_builder = llvm.create_pass_builder(target_machine, pto)
+ pass_manager = pass_builder.getModulePassManager()
diff --git a/sympy.spec b/sympy.spec
index 0afe279..7e36892 100644
--- a/sympy.spec
+++ b/sympy.spec
@@ -26,6 +26,9 @@ Patch: %{name}-mpmath.patch
# Fix the doc build with sphinx 9
# https://github.com/sympy/sympy/pull/28995
Patch: %{name}-sphinx9.patch
+# Fix compatibility with llvmlite 0.48
+# https://github.com/sympy/sympy/pull/30006
+Patch: %{giturl}/pull/30006.patch
# We have to build on an architecture that:
# - Supports Java (for antlr4), which excludes 32-bit x86
reply other threads:[~2026-07-04 15:58 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=178318068643.1.14859862305179232303.rpms-sympy-c81a2aee6759@fedoraproject.org \
--to=code@musicinmybrain.net \
--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