summary refs log tree commit diff
path: root/pkgs/os-specific/linux/lttng-modules
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-03-27 19:46:35 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-03-27 20:13:21 +0200
commita452b43ee5fd5e5321b5b5e6a233a118c4efeb07 (patch)
tree52fb8645489b4557e21227a6d46efbcabbcec825 /pkgs/os-specific/linux/lttng-modules
parent7b82f5a3fb81aa3c413aa05554a1fa85c14776e3 (diff)
downloadnixpkgs-a452b43ee5fd5e5321b5b5e6a233a118c4efeb07.tar
nixpkgs-a452b43ee5fd5e5321b5b5e6a233a118c4efeb07.tar.gz
nixpkgs-a452b43ee5fd5e5321b5b5e6a233a118c4efeb07.tar.bz2
nixpkgs-a452b43ee5fd5e5321b5b5e6a233a118c4efeb07.tar.lz
nixpkgs-a452b43ee5fd5e5321b5b5e6a233a118c4efeb07.tar.xz
nixpkgs-a452b43ee5fd5e5321b5b5e6a233a118c4efeb07.tar.zst
nixpkgs-a452b43ee5fd5e5321b5b5e6a233a118c4efeb07.zip
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
Diffstat (limited to 'pkgs/os-specific/linux/lttng-modules')
-rw-r--r--pkgs/os-specific/linux/lttng-modules/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/lttng-modules/default.nix b/pkgs/os-specific/linux/lttng-modules/default.nix
index 91a3464d1fa..f029c6b82be 100644
--- a/pkgs/os-specific/linux/lttng-modules/default.nix
+++ b/pkgs/os-specific/linux/lttng-modules/default.nix
@@ -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);
   };
 
 }