Comment 11 for bug 627022

Revision history for this message
In , Codez-iccd-99 (codez-iccd-99) wrote :

As it is stated in bug #336837, comment 33 the version 256.53 of nvidia-drivers can be compiled against 2.6.36 (gentoo-sources-)kernel with a patch that was posted to NVidia forums by artem.
So with little tinkering applied for nvidia-drivers-256.53.ebuild, I am able to compile those drivers. (I don't know how they work yet, though.)
The question is, would this patch (and later potential stabilizing of 256.53) be an acceptable alternative for unmasking masked drivers?

Ebuild was modified as per following, shown here only for reference. The .txt extension was removed from the file posted in the forums. I'll post the real deals (ebuild and the patch) if there's any point for doing that.

--- /usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-256.53.ebuild 2010-08-31 18:57:49.000000000 +0300
+++ /usr/local/portage/x11-drivers/nvidia-drivers/nvidia-drivers-256.53.ebuild 2010-11-05 17:03:37.000000000 +0200
@@ -277,6 +277,10 @@

   # If greater than 2.6.5 use M= instead of SUBDIR=
   convert_to_m "${NV_SRC}"/Makefile.kbuild
+
+ if kernel_is ge 2 6 36; then
+ epatch "${FILESDIR}"/NVIDIA-Linux-x86-256.53-linux-2.6.36.patch
+ fi
  fi
 }