lttng-modules: mark as broken on kernel version <3.18

On linux 3.14, we get errors like
  error: 'struct snd_soc_codec' has no member named 'name'
     __string( name,  codec->CODEC_NAME_FIELD )
indicating that the module is incompatible with the linux API
in this kernel version.

See https://hydra.nixos.org/build/33102405/nixlog/1/raw
This commit is contained in:
Joachim Fasting 2016-03-27 19:46:35 +02:00
parent 7b82f5a3fb
commit a452b43ee5

View file

@ -25,7 +25,9 @@ stdenv.mkDerivation rec {
license = with licenses; [ lgpl21 gpl2 mit ];
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
broken = (kernel.features.grsecurity or false);
broken =
(builtins.compareVersions kernel.version "3.18" == -1) ||
(kernel.features.grsecurity or false);
};
}