Skip to content

Commit

Permalink
spdk: fix build w/glibc-2.36
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma27 committed Oct 7, 2022
1 parent e012d67 commit 66e9ac8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/libraries/spdk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ in stdenv.mkDerivation rec {

postPatch = ''
patchShebangs .
# glibc-2.36 adds arc4random, so we don't need the custom implementation
# here anymore. Fixed upstream in https://github.com/spdk/spdk/commit/43a3984c6c8fde7201d6c8dfe1b680cb88237269,
# but the patch doesn't apply here.
sed -i -e '1i #define HAVE_ARC4RANDOM 1' lib/iscsi/iscsi.c
'';

enableParallelBuilding = true;
Expand Down

0 comments on commit 66e9ac8

Please sign in to comment.