Author: shlevy
Date: Sun Jul 24 20:24:23 2011
New Revision: 27922
URL: https://svn.nixos.org/websvn/nix/?rev=27922&sc=1

Log:
Add comments explaining the purpose of the postBuild prepend

Modified:
   nixpkgs/trunk/pkgs/os-specific/linux/kernel/generic.nix

Modified: nixpkgs/trunk/pkgs/os-specific/linux/kernel/generic.nix
==============================================================================
--- nixpkgs/trunk/pkgs/os-specific/linux/kernel/generic.nix     Sun Jul 24 
20:24:12 2011        (r27921)
+++ nixpkgs/trunk/pkgs/os-specific/linux/kernel/generic.nix     Sun Jul 24 
20:24:23 2011        (r27922)
@@ -77,6 +77,11 @@
 
   inherit preConfigure src module_init_tools localVersion postInstall;
 
+  #Currently, the builder sets $MODULE_DIR during installPhase. This causes
+  #problems with at least linux 3.0, so we need to conditionally avoid
+  #setting $MODULE_DIR. This prepend to postBuild accomplishes this with a
+  #sed/eval trick thanks to MarcWeber
+
   postBuild = (if setModuleDir then "" else '' 
     eval "$(type installPhase | sed -e '1d' -e '/export MODULE_DIR/d')";
   '') + postBuild;
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to