public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/blender] rawhide: Fix building on RISC-V
@ 2026-11-25 22:15 Marcin Juszkiewicz
0 siblings, 0 replies; only message in thread
From: Marcin Juszkiewicz @ 2026-11-25 22:15 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/blender
Branch : rawhide
Commit : 58cf0ae00940da8e1c56360eca61e0090e699cc7
Author : Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
Date : 2026-11-25T18:38:07+01:00
Stats : +34/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/blender/c/58cf0ae00940da8e1c56360eca61e0090e699cc7?branch=rawhide
Log:
Fix building on RISC-V
---
diff --git a/blender-onetbb-const-comparator-upstream.patch b/blender-onetbb-const-comparator-upstream.patch
new file mode 100644
index 0000000..0e2e5e0
--- /dev/null
+++ b/blender-onetbb-const-comparator-upstream.patch
@@ -0,0 +1,30 @@
+Subject: [PATCH] Build: resolve failure with OneTBB
+
+OneTBB requires const arguments for the comparison function.
+
+Backport of upstream commit af82c3ca2d0f94978bc8b4178c623fbed9767068
+(landed after the 5.3.0 release tarball was cut):
+https://projects.blender.org/blender/blender/commit/af82c3ca2d0f94978bc8b4178c623fbed9767068
+
+Without this, MOD_grease_pencil_build.cc fails to compile against the
+oneTBB currently in Fedora because tbb::parallel_sort invokes the
+comparator with const references (quick_sort_range::split_unchecked
+passes a const pivot), which cannot bind to a lambda taking non-const
+Pair& arguments.
+
+---
+--- a/source/blender/modifiers/intern/MOD_grease_pencil_build.cc
++++ b/source/blender/modifiers/intern/MOD_grease_pencil_build.cc
+@@ -491,8 +491,9 @@ static bke::CurvesGeometry reorder_strokes(const bke::CurvesGeometry &curves,
+ distances[stroke].selected = select[stroke];
+ }
+
+- parallel_sort(
+- distances.begin(), distances.end(), [](Pair &a, Pair &b) { return a.value < b.value; });
++ parallel_sort(distances.begin(), distances.end(), [](const Pair &a, const Pair &b) {
++ return a.value < b.value;
++ });
+
+ Array<int> new_order(curves.curves_num());
+ for (const int i : curves.curves_range()) {
+--
diff --git a/blender.spec b/blender.spec
index dc87bb1..b2ce5ea 100644
--- a/blender.spec
+++ b/blender.spec
@@ -107,6 +107,10 @@ Patch1: %{name}-hiprt-log-level-upstream.patch
Patch2: %{name}-ocio24-config.patch
%endif
+# Fix build failure with oneTBB, which requires const comparator arguments
+# (upstream commit af82c3ca2d0f, landed after the 5.3.0 release).
+Patch3: %{name}-onetbb-const-comparator-upstream.patch
+
# versions.cmake pins the libraries used for Blender's official precompiled
# dependency bundle. Those pins are tested versions, not general minimums for
# system libraries. Version constraints below are limited to requirements that
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-25 22:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 22:15 [rpms/blender] rawhide: Fix building on RISC-V Marcin Juszkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox