Author: eelco
Date: Sun Jul 18 21:10:46 2010
New Revision: 22630
URL: https://svn.nixos.org/websvn/nix/?rev=22630&sc=1
Log:
* Apply a patch that is apparently required to make the kernel work
properly on Amazon EC2.
* Always apply the CIFS timeout patch. It's rather annoying to have
to build a separate kernel for the VM tests.
Modified:
nixpkgs/trunk/pkgs/build-support/vm/default.nix
nixpkgs/trunk/pkgs/os-specific/linux/kernel/patches.nix
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Modified: nixpkgs/trunk/pkgs/build-support/vm/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/build-support/vm/default.nix Sun Jul 18 21:01:17
2010 (r22629)
+++ nixpkgs/trunk/pkgs/build-support/vm/default.nix Sun Jul 18 21:10:46
2010 (r22630)
@@ -7,9 +7,7 @@
# The 15 second CIFS timeout is too short if the host if heavily
# loaded (e.g., in the Hydra build farm when it's running many jobs
# in parallel). So apply a patch to increase the timeout to 120s.
- kernel = pkgs.linux.override (orig: {
- kernelPatches = orig.kernelPatches ++ [ kernelPatches.cifs_timeout ];
- });
+ kernel = assert pkgs.linux.features.cifsTimeout; pkgs.linux;
kvm = pkgs.qemu_kvm;
Modified: nixpkgs/trunk/pkgs/os-specific/linux/kernel/patches.nix
==============================================================================
--- nixpkgs/trunk/pkgs/os-specific/linux/kernel/patches.nix Sun Jul 18
21:01:17 2010 (r22629)
+++ nixpkgs/trunk/pkgs/os-specific/linux/kernel/patches.nix Sun Jul 18
21:10:46 2010 (r22630)
@@ -160,6 +160,17 @@
cifs_timeout =
{ name = "cifs-timeout";
patch = ./cifs-timeout.patch;
+ features.cifsTimeout = true;
+ };
+
+ no_xsave =
+ { name = "no-xsave";
+ patch = fetchurl {
+ url =
"http://cvs.fedoraproject.org/viewvc/devel/kernel/fix_xen_guest_on_old_EC2.patch?revision=1.1&view=co";
+ name = "no-xsave.patch";
+ sha256 =
"02f51f9b636b105c81a3ed62145abdc0ecb043b8114eb10257854577f617f894";
+ };
+ features.noXsave = true;
};
}
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Jul 18 21:01:17
2010 (r22629)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Sun Jul 18 21:10:46
2010 (r22630)
@@ -6472,6 +6472,8 @@
[ kernelPatches.fbcondecor_2_6_31
kernelPatches.sec_perm_2_6_24
kernelPatches.aufs2_2_6_32
+ kernelPatches.cifs_timeout
+ kernelPatches.no_xsave
];
};
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits