Repository navigation
rocksdb: add enableLiburing option - #314945
Conversation
d4ff572 to
efbeda2
Compare
The original implementation of this was really weird, so I restructed it a lot while debugging, and am just gonna leave the restructured version. Root cause of the segfault seems to be that upstream nixpkgs liburing derivation is generating both static and dynamic libraries, causing rocksdb to statically link liburing in a dynamic build, pulling in some allocator stuff at the same time. I created a PR[1] to fix this upstream, but it probably won't be available on nixos-unstable for quite a while, so we can also patch it locally. [1]: NixOS/nixpkgs#314945
|
@Benjamin-L can you rebase this branch? |
If the static libraries are available, rocksdb will try to link against them instead of the dynamic libraries.
efbeda2 to
65a6502
Compare
|
@PedroHLC Rebased onto current staging. |
PedroHLC
left a comment
There was a problem hiding this comment.
LGTM, couldn't test it against staging, but have been seeing this working out perfectly in conduwuit flake.
I'm not opposed in principle, but this breaks |
Hummm, that smells like something to be fixed in Ceph and not here. It looks like it's using/expecting either the static with the shared library stdenv's output or the inverse... |
|
In principle, static linkage isn't all-or-nothing situation. |
Description of changes
Rocksdb added support for io-uring in v6.7.0. This PR adds an
enableLiburingoption to the package to enable this.In the process, I discovered that the
liburingpackage is broken in static stdenv, and outputs both static and dynamic libraries unconditionally. This causes rocksdb to link against the static liburing when built in a dynamic stdenv. In conduwuit, we are using an overlay to add liburing support to rocksdb and fix the static library issues with liburing, but would like to be able to just use upstream nixpkgs.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.