spdk: fix build w/glibc-2.36

Failing Hydra build: https://hydra.nixos.org/build/193339001
This commit is contained in:
Maximilian Bosch 2022-10-07 09:47:08 +02:00
parent ea13def9b9
commit 2768c81adc
No known key found for this signature in database
GPG key ID: 9A6EEA275CA5BE0A

View file

@ -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;