Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gnometesting.git;a=commitdiff;h=20f58092c824f5bde9f7448fee5cf1276ac2bb55

commit 20f58092c824f5bde9f7448fee5cf1276ac2bb55
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sun Mar 14 12:48:02 2010 +0100

nvidia-190.53-3-i686

- add kernel-2.6.33.patch

diff --git a/source/x11-extra/nvidia/FrugalBuild 
b/source/x11-extra/nvidia/FrugalBuild
index 26ee03f..51e4aed 100644
--- a/source/x11-extra/nvidia/FrugalBuild
+++ b/source/x11-extra/nvidia/FrugalBuild
@@ -3,10 +3,12 @@

pkgname=nvidia
pkgver=190.53
-pkgrel=2
+pkgrel=3
archs=('i686' 'x86_64' '!ppc')
Finclude nvidia
case "$_F_nvidia_arch" in
x86)    sha1sums=('ca0e88c2e0b0bb83cf53d859d1d2abcf9e402920');;
x86_64) sha1sums=('a80402aaaccae2d9ea5a974d837885e0d717ef11');;
esac
+source=($source kernel-2.6.33.patch)
+sha1sums=("${sha1su...@]}" '431f890c94a4ff03bc839c1e8d4c30e78313f0ba')
diff --git a/source/x11-extra/nvidia/kernel-2.6.33.patch 
b/source/x11-extra/nvidia/kernel-2.6.33.patch
new file mode 100644
index 0000000..7952e2e
--- /dev/null
+++ b/source/x11-extra/nvidia/kernel-2.6.33.patch
@@ -0,0 +1,33 @@
+Index: usr/src/nv/conftest.sh
+===================================================================
+--- usr/src/nv/conftest.sh
++++ usr/src/nv/conftest.sh     2009-12-20 04:15:47.194130196 +0200
+@@ -111,7 +111,12 @@
+     fi
+ }
+
+-CONFTEST_PREAMBLE="#include <linux/autoconf.h>
++CONFTEST_PREAMBLE="#include <linux/version.h>
++    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
++    #include <generated/autoconf.h>
++    #else
++    #include <linux/autoconf.h>
++    #endif
+     #if defined(CONFIG_XEN) && \
+         defined(CONFIG_XEN_INTERFACE_VERSION) &&  
!defined(__XEN_INTERFACE_VERSION__)
+     #define __XEN_INTERFACE_VERSION__ CONFIG_XEN_INTERFACE_VERSION
+Index: usr/src/nv/nvacpi.c
+===================================================================
+--- usr/src/nv/nvacpi.c
++++ usr/src/nv/nvacpi.c        2009-12-20 03:48:28.497758783 +0200
+@@ -49,6 +49,10 @@
+ };
+ #endif
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33)
++#define acpi_walk_namespace(a,b,c,d,e,f) acpi_walk_namespace(a,b,c,d,e,f,NULL)
++#endif
++
+ static struct acpi_driver *nv_acpi_driver;
+ static acpi_handle nvif_handle = NULL;
+ static acpi_handle dsm_handle  = NULL;
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to