-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embree, openimagedenoise: Fix build failure due to TBB split #216844
Conversation
i did try this myself and it worked but it would have to be applied always when tbb is used with cmake |
At least in case of embree, they are using their own specific CMake find module |
sadly |
@Artturin Ubuntu is also splitting tbb, maybe that's still the best practice? Seems like a situation we want a consistent best practice in nixpkgs to be documented. |
Hi! Not sure if this is applicable, but since openimagedenoise is affected by the exact same issue (which is also required to build Blender), could the PR maybe also include the added cmake flags on the openimagedenoise package? As in, diff --git a/pkgs/development/libraries/openimagedenoise/default.nix b/pkgs/development/libraries/openimagedenoise/default.nix
index 8d02b976c91..39cc5ec3b52 100644
--- a/pkgs/development/libraries/openimagedenoise/default.nix
+++ b/pkgs/development/libraries/openimagedenoise/default.nix
@@ -10,6 +10,11 @@ stdenv.mkDerivation rec {
sha256 = "sha256-i73w/Vkr5TPLB1ulPbPU4OVGwdNlky1brfarueD7akE=";
};
+ cmakeFlags = [
+ "-DTBB_ROOT=${tbb}"
+ "-DTBB_INCLUDE_DIR=${tbb.dev}/include"
+ ];
+
nativeBuildInputs = [ cmake python3 ispc ];
buildInputs = [ tbb ]; |
@MultisampledNight i did try that and it did not work. Not sure if i'm doing something wrong. |
Result of 3 packages failed to build:
1 package built:
|
Hmm, interesting, it works (and is just building Blender fine on my local system) with this overlay, not including this PR: (final: prev: {
# TODO: this overlay can be removed after https://github.com/NixOS/nixpkgs/pull/216844 is merged
embree = prev.embree.overrideAttrs(old: rec {
cmakeFlags = old.cmakeFlags ++ ["-DTBB_ROOT=${final.tbb}" "-DTBB_INCLUDE_DIR=${final.tbb.dev}/include"];
});
openimagedenoise = prev.openimagedenoise.overrideAttrs(old: rec {
cmakeFlags = ["-DTBB_ROOT=${final.tbb}" "-DTBB_INCLUDE_DIR=${final.tbb.dev}/include"];
});
}) EDIT: anyway I'll stop now since this isn't really relevant for the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good
fixes the issue
@MultisampledNight I would also look into the openimagedenoise issue, but it only makes sense if @Artturin is OK with that instead of the revert PR. I want to avoid both PRs being merged at the same time resulting in a mess, that's why it's still marked as a draft |
@MultisampledNight @davidak It turns out that openimagedenoise can be fixed by the exact same flags. I added a commit to fix openimagedenoise as well. That should resolve all breakage due to #212787 @davidak the reason your change didn't work was that you used |
I have a PR that fixes both versions of openimagedenoise. If you want it in one PR, you can cherry-pick my commit from #216853. It would make sense to have both in one PR because both break the same packages. |
Right, I missed the other openimagedenoise... sigh.. my nixpkgs-review run was already halfway through compiling Blender, but I guess I'll have to start again |
Fixes NixOS#216580. Co-authored-by: davidak <git@davidak.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good
Fixes the issue
Result of 5 packages built:
Note: This was before the force-push to include the fix for |
Description of changes
Fixes #216390
Fixes #216580
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)