Merge #61181: spl: fix build with linux 5.1

This commit is contained in:
Vladimír Čunát 2019-05-12 14:06:35 +02:00
commit 359a7340d7
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -21,6 +21,11 @@ stdenv.mkDerivation rec {
patches = [ ./install_prefix.patch ];
# Backported fix for 0.7.13 to build with 5.1, please remove when updating to 0.7.14
postPatch = optionalString (versionAtLeast kernel.version "5.1") ''
sed -i 's/get_ds()/KERNEL_DS/g' module/spl/spl-vnode.c
'';
nativeBuildInputs = [ autoreconfHook ] ++ kernel.moduleBuildDependencies;
hardeningDisable = [ "fortify" "stackprotector" "pic" ];