From 2dfeeb47bb8581fa166c9db3d054470e63390f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 29 Jan 2010 21:30:09 +0000 Subject: [PATCH] Making kbd build in armv5tel-linux. gcc 4.4.3 issues a warning with it, and kbd was compiled with -Werror. I switch off -Werror in armv5tel-linux. svn path=/nixpkgs/branches/stdenv-updates/; revision=19735 --- pkgs/os-specific/linux/kbd/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/linux/kbd/default.nix b/pkgs/os-specific/linux/kbd/default.nix index 39d14b569f2..77d53adeb81 100644 --- a/pkgs/os-specific/linux/kbd/default.nix +++ b/pkgs/os-specific/linux/kbd/default.nix @@ -10,6 +10,11 @@ stdenv.mkDerivation rec { buildInputs = [ bison flex autoconf automake ]; + # We get a warning in armv5tel-linux, so we disable -Werror in it + patchPhase = if (stdenv.system == "armv5tel-linux") then '' + sed -i s/-Werror// src/Makefile.am + '' else ""; + # Grrr, kbd 1.15.1 doesn't include a configure script. preConfigure = "autoreconf";