fix the compilation of virtualboxGuestaddition

svn path=/nixpkgs/trunk/; revision=28415
This commit is contained in:
David Guibert 2011-08-09 09:07:29 +00:00
parent 9502aedde3
commit 0ce8c08099

View File

@ -45,8 +45,7 @@ stdenv.mkDerivation {
for i in * for i in *
do do
cd $i cd $i
sed -i -e "s/depmod/echo/g" Makefile find . -type f | xargs sed 's/depmod -a/true/' -i
sed -i -e "s/depmod/echo/g" */Makefile
make make
cd .. cd ..
done done
@ -117,8 +116,8 @@ stdenv.mkDerivation {
cd $i cd $i
kernelVersion=$(cd ${kernel}/lib/modules; ls) kernelVersion=$(cd ${kernel}/lib/modules; ls)
export MODULE_DIR=$out/lib/modules/$kernelVersion/misc export MODULE_DIR=$out/lib/modules/$kernelVersion/misc
sed -i -e "s|-o root||g" \ find . -type f | xargs sed -i -e "s|-o root||g" \
-e "s|-g root||g" Makefile -e "s|-g root||g"
make install make install
cd .. cd ..
done done