As a maintainer of graphics/blender, could you have a look at PR #252648:
In short, TBB version 2021 will soon be available as devel/onetbb but the port you maintain does not build correctly with it, see the following Poudriere run:
and error logs:
c++ [...] /wrkdirs/usr/ports/graphics/blender/work/blender-2.91.0/intern/cycles/bvh/bvh.cpp
In file included from /wrkdirs/usr/ports/graphics/blender/work/blender-2.91.0/intern/cycles/bvh/bvh.cpp:25:
In file included from /wrkdirs/usr/ports/graphics/blender/work/blender-2.91.0/intern/cycles/bvh/../bvh/bvh_build.h:27:
In file included from /wrkdirs/usr/ports/graphics/blender/work/blender-2.91.0/intern/cycles/bvh/../util/util_task.h:22:
/wrkdirs/usr/ports/graphics/blender/work/blender-2.91.0/intern/cycles/bvh/../util/util_tbb.h:39:14: error: no member named 'self' in namespace 'tbb::v1::task'
1 error generated.
ninja: build stopped: subcommand failed.
Could you try to provide a patch (important: *by replying to this PR*) to facilitate the migration to devel/onetbb ?
To help you modifying your port, expected patches to devel/tbb and devel/onetbb are available in PR #252648.
You will also need:
- suitesparse patches from PR #252651
- opencv patches from PR #252785
- to disable option OPENVDB (see PR #252788)
Thanks for your contribution,
Let me quote your feedback from PR #252687:
> I'm also the maintainer for blender. I'm starting to think that being able to
> co-install the old tbb will need to be an option for a while.
I would like to avoid that situation, as much as possible. That would mean relocate tbb to a dedicated subdir and patch every remaining dependent port.
> For blender, disabling tbb means disabling openvdb, openimagedenoise,
> mod_fluids and cycles. While the first two can be disabled for a while, I doubt
> anyone will want blender without cycles. Blender is setup to disable those four
> options if using tbb is disabled and cycles doesn't compile without tbb.
It seems this is what we are seeing in the logs : cycles fail to compile. The upstream probably faces that exact same situation ; have you tried to ask for help from Blender community/devs ?
Thanks a lot,
The last bug you added as depends is missing a digit.
About to test at a patch that is meant to fix the tbb build for blender.
And good news for the patch :)
Created attachment 221955 [details]
maintainer update for graphics/blender
Adjust graphics/blender to build with onetbb.
Disable OPENVDB and OPENIMAGEDN until dependencies transition to onetbb
New patches combine https://developer.blender.org/rB3732508 and https://developer.blender.org/rBa1f44e4
Thanks a lot! I'll keep that patch for the big switch.
Patch committed, thanks!