Skip to content

blender: 5.0.1 -> 5.1.0#502842

Merged
drupol merged 1 commit into
NixOS:stagingfrom
frozolotl:blender-5.1.0
Mar 27, 2026
Merged

blender: 5.0.1 -> 5.1.0#502842
drupol merged 1 commit into
NixOS:stagingfrom
frozolotl:blender-5.1.0

Conversation

@frozolotl

@frozolotl frozolotl commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Changelog

Blender documentation on library changes:

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review
Commit: 70118d4b59ca11af7a2e4b75fc18310db2108e99


x86_64-linux

✅ 2 packages built:
  • blender
  • blendfarm

@nixpkgs-ci nixpkgs-ci Bot requested review from amarshall and veprbl March 23, 2026 22:45
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Mar 23, 2026
Comment thread pkgs/by-name/bl/blender/package.nix Outdated
@amarshall

amarshall commented Mar 24, 2026

Copy link
Copy Markdown
Member

Successfully tested CUDA build and render on x86_64-linux, but ROCm is broken.

@frozolotl

Copy link
Copy Markdown
Contributor Author

Successfully tested CUDA build and render on x86_64-linux, but ROCm is broken.

Thanks. ROCm is fixed now, as far as I can tell.
My machine does not support HIPRT, so that might be something to check still.

@drupol drupol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff LGTM, I was wondering if submitting the patch upstream would make sense.

Comment thread pkgs/by-name/bl/blender/package.nix Outdated
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Mar 25, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Mar 25, 2026
@amarshall

Copy link
Copy Markdown
Member

Were you able to perform an HIP (non-RT) Cycles GPU render? It segfaults for me, but it also segfaults on 5.0.1 so…

Blender HIP RT has been broken for a while in Nixpkgs (it can’t properly detect that it’s supported).

@frozolotl

frozolotl commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

Were you able to perform an HIP (non-RT) Cycles GPU render? It segfaults for me, but it also segfaults on 5.0.1 so…

Oh, that's good to know! I actually am too suffering from that same segfault you are talking about. I originally assumed it was an issue with my GPU because no one else seemed to have that issue from what I could tell.
I managed to test this PR because system-wide I still had ROCm 7.1.1 in use, which Blender did use.

I have been debugging this a bit since I published this PR. Let me share what I know:
I know that ROCm 7.1.1 works, while 7.2.0 does not. ROCm 7.2.1 doesn't fix the issue (I will create a PR once I was able to make things work).

Looking at the backtrace, it seems that rocm-comgr calls rocm-llvm, which—surprisingly—calls LLVM-lib 19 (even though it should be LLVM 22.0.0!). The reason for this is that OpenShadingLanguage imports LLVM-lib 19.
Switching to LLVM 22.1.0 does not fix the issue. However, disabling OpenShadingLanguage does!

I'll be back later. Hopefully I'll find a fix that does not involve disabling OSL.


If anyone needs a temporary fix, switching true to false here should be all that's needed (of course, at the cost of some functionality).
Alternatively, reverting #484792 would likely also do it.

@amarshall amarshall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR then is fine since it’s not breaking anything “new”. It might make sense to add an additional commit to e.g.

diff --git a/pkgs/by-name/bl/blender/package.nix b/pkgs/by-name/bl/blender/package.nix
index 91df7b38b283..0605cf7712fe 100644
--- a/pkgs/by-name/bl/blender/package.nix
+++ b/pkgs/by-name/bl/blender/package.nix
@@ -176,7 +176,7 @@ stdenv'.mkDerivation (finalAttrs: {
     (lib.cmakeBool "WITH_CYCLES_DEVICE_ONEAPI" false)
     (lib.cmakeBool "WITH_CYCLES_DEVICE_OPTIX" cudaSupport)
     (lib.cmakeBool "WITH_CYCLES_EMBREE" embreeSupport)
-    (lib.cmakeBool "WITH_CYCLES_OSL" true)
+    (lib.cmakeBool "WITH_CYCLES_OSL" (!rocmSupport))
     (lib.cmakeBool "WITH_SYSTEM_GLOG" true)
     (lib.cmakeBool "WITH_HYDRA" openUsdSupport)
     (lib.cmakeBool "WITH_INSTALL_PORTABLE" false)

to at least unbreak HIP.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Mar 26, 2026
@drupol

drupol commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Perhaps we could do it in a new PR so we can move on in this PR faster?

@frozolotl

Copy link
Copy Markdown
Contributor Author

I issued #504149, which solves the segfault.

@drupol drupol added this pull request to the merge queue Mar 27, 2026
Merged via the queue into NixOS:staging with commit b45a3a0 Mar 27, 2026
31 of 33 checks passed
@amarshall

amarshall commented Mar 27, 2026 via email

Copy link
Copy Markdown
Member

@frozolotl

Copy link
Copy Markdown
Contributor Author

Wait, why did this target staging? It can go to master.

Oops, that was not my intention 😅

@frozolotl frozolotl deleted the blender-5.1.0 branch March 27, 2026 22:02
@frozolotl

Copy link
Copy Markdown
Contributor Author

A quick note on the Eigen patch: there has been a PR to Blender that would fix the build.
https://projects.blender.org/blender/blender/pulls/156417

@amarshall

Copy link
Copy Markdown
Member

Cherry-pick to master #505352

sarahec pushed a commit to sarahec/nixpkgs that referenced this pull request Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants