packaging: remove unused dependency on onetbb#14735
Conversation
|
Isn't onetbb used to make hash calculation multithreaded? |
NixOS#14509 configured meson to not use any onetbb features. nixpkgs exposes an option to blake3 to remove onetbb from the runtime closure as well, so enable that. Co-authored-by: Philip Taron <philip.taron@gmail.com>
Head branch was pushed to by a user without write access
004d67c to
1ea3ce1
Compare
|
We are not using any of the features ourselves, but iirc blake3 relies on it for parallel hash computation. Would be nice to clarify this. |
xokdvium
left a comment
There was a problem hiding this comment.
Would like to better understand
the implications of this.
|
cc @silvanshade |
You are correct, however there is no meson option to turn this on. Line 324 in 907a576 So unless there's something out-of-tree, it's effectively dead code at the moment. |
That define comes from blake3. There's no option needed to turn it on |
|
Specifically from the pkg-config: https://github.com/BLAKE3-team/BLAKE3/blob/308b95dfa15d5a0aa8cb3c5534ffd90d76122c46/c/CMakeLists.txt#L250C35-L250C49 |
|
Ah, I understand. So the proposed PR disabled that by changing the pkg-config file that libblake3 shipped. |
|
OneTTB is an optional dependency of Blake3. I don't care if our experimental blake3 hashing is fast or not. Nixpkgs is free to hard-disable OneTBB in blake3. Nix I think should still support Blake3 built either way in case other non-Nix packaging of blake3 enables this, but we don't need to test that, we can just keep the small bit of CPP around as a minimal effort attempt. |
|
https://github.com/NixOS/nix/pull/14509/files this change is about the C++ standard library, and should be viewed as completely orthogonal knob --- all combinations of blake3 with/without TBB, and libstdc++ with/without TBB should work. This just exists to undo an (IMO poor form) header hack impl in libstc++ to auto-enable this feature. |
|
I don't think we need to do this PR because I think Nix should just use whatever blake3 Nixpkgs wants to give us. I want to purely follow Nixpkg's lead here. |
#14509 configured meson to not use any onetbb features. nixpkgs exposes an option to blake3 to remove onetbb from the runtime closure as well, so enable that.
Motivation
Context
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.