public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/blender] rawhide: Fix building on RISC-V
Date: Wed, 25 Nov 2026 22:15:30 GMT [thread overview]
Message-ID: <179564493093.1.15902050184468067322.rpms-blender-58cf0ae00940@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-25 22:15 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=179564493093.1.15902050184468067322.rpms-blender-58cf0ae00940@fedoraproject.org \
--to=mjuszkiewicz@redhat.com \
--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