public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-libcramjam] f45: Work around ppc64 vectorization bug in LLVM 23
@ 2026-11-04 8:12 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-04 8:12 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-libcramjam
Branch : f45
Commit : 20d0366b5df79d1421fb9b8c04299004554c985a
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-11-04T06:59:58+00:00
Stats : +25/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/rust-libcramjam/c/20d0366b5df79d1421fb9b8c04299004554c985a?branch=f45
Log:
Work around ppc64 vectorization bug in LLVM 23
---
diff --git a/libcramjam-fix-metadata.diff b/libcramjam-fix-metadata.diff
index 29ef63a..72cf105 100644
--- a/libcramjam-fix-metadata.diff
+++ b/libcramjam-fix-metadata.diff
@@ -1,5 +1,5 @@
--- libcramjam-0.9.3/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ libcramjam-0.9.3/Cargo.toml 2026-10-03T05:52:13.252721+00:00
++++ libcramjam-0.9.3/Cargo.toml 2026-11-04T06:59:01.978597+00:00
@@ -40,15 +40,6 @@
subdirectory = "cramjam"
diff --git a/rust-libcramjam.spec b/rust-libcramjam.spec
index 407feb5..5e42b2c 100644
--- a/rust-libcramjam.spec
+++ b/rust-libcramjam.spec
@@ -11,6 +11,17 @@
# avoid an incompatible update.
%bcond capi %[ %{undefined epel} && %{undefined fc43} && %{undefined fc44} && %{undefined fc45} ]
+# Workaround for ppc64 vectorization bug in LLVM 23:
+# https://bugzilla.redhat.com/show_bug.cgi?id=2553620
+# This can be removed in F45 after the fix is backported, and in F46+ after the
+# fix is backported and/or LLVM is updated to version 24. Set the conditional
+# for F45/F46 only, expecting that this will be fixed before F46 branching.
+%if %{defined fc45} || %{defined fc46}
+%ifarch ppc64le
+%global build_rustflags %{build_rustflags} -Cno-vectorize-loops
+%endif
+%endif
+
%global crate libcramjam
Name: rust-libcramjam
diff --git a/rust2rpm.toml b/rust2rpm.toml
index 296b46d..94a18af 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,5 +1,18 @@
[package]
summary = "Compression library combining a plethora of algorithms"
+preamble = """\
+# Workaround for ppc64 vectorization bug in LLVM 23:
+# https://bugzilla.redhat.com/show_bug.cgi?id=2553620
+#
+# This can be removed in F45 after the fix is backported, and in F46+ after the
+# fix is backported and/or LLVM is updated to version 24. Set the conditional
+# for F45/F46 only, expecting that this will be fixed before F46 branching.
+%if %{defined fc45} || %{defined fc46}
+%ifarch ppc64le
+%global build_rustflags %{build_rustflags} -Cno-vectorize-loops
+%endif
+%endif
+"""
cargo-toml-patch-comments = [
"Omit unused, benchmark-only criterion dev-dependency",
"""\
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-04 8:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 8:12 [rpms/rust-libcramjam] f45: Work around ppc64 vectorization bug in LLVM 23 Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox