View Single Post
Old 12-13-07, 09:40 AM   #3
tld
Registered User
 
Join Date: Aug 2005
Posts: 47
Default Re: FYI: Compiling 100.14.11 under 2.6.23 kernels

Sure. If you're not yet familiar with creating a patched ebuild, you'll want to look here:

http://gentoo-wiki.com/HOWTO_Create_an_Updated_Ebuild

Once I made a renamed copy of the ebuild in my portage overlay (in my case I'm using /usr/local/portage) and copied the files directory there, I named the nvidia patch file nvidia-fix-23.patch and put it in the files directory under my /usr/local/portage/x11-drivers/nvidia-drivers, and added a line to my ebuilt to apply the patch in src_unpack() after the existing patches, as shown by this diff:

Code:
diff -u /usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild nvidia-drivers-100.14.11-r90.ebuild
--- /usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.11.ebuild     2007-10-07 12:06:33.000000000 -0400
+++ nvidia-drivers-100.14.11-r90.ebuild 2007-12-05 16:14:28.000000000 -0500
@@ -184,6 +184,8 @@
        epatch "${FILESDIR}"/NVIDIA_glx-glheader.patch
        # allow on board sensors to work with lm_sensors
        epatch "${FILESDIR}"/NVIDIA_i2c-hwmon.patch
+       # Patch for 2.6.23 compatibility
+       epatch "${FILESDIR}"/nvidia-fix-23.patch
 
        if ! use x86-fbsd; then
                # Quiet down warnings the user does not need to see
It looks like the change for the 100.14.19 ebuild would be the same, though I have no idea if the patch itself works. Hope this helps.

Tom
tld is offline   Reply With Quote