[ create a new paste ] login | about

Link: http://codepad.org/xNwTbVKd    [ raw code | fork ]

Plain Text, pasted on Jun 20:
--- nvidia-275xx/PKGBUILD	2012-03-21 08:55:45.000000000 -0300
+++ nvidia-275xx-linux-3.4/PKGBUILD	2012-06-19 20:23:00.624285583 -0300
@@ -5,5 +5,5 @@
 pkgver=275.43
-_extramodules=extramodules-3.3-ARCH
+_extramodules=extramodules-3.4-ARCH
 _kernver="$(cat /lib/modules/${_extramodules}/version)"
-pkgrel=4
+pkgrel=5
 pkgdesc="NVIDIA 275-xx drivers for linux."
@@ -11,4 +11,4 @@
 url="http://www.nvidia.com/"
-depends=('linux<3.4' 'linux>=3.3' "nvidia-utils-275xx=${pkgver}")
-makedepends=('linux-headers<3.4' 'linux-headers>=3.3')
+depends=('linux<3.5' 'linux>=3.4' "nvidia-utils-275xx=${pkgver}")
+makedepends=('linux-headers<3.5' 'linux-headers>=3.4')
 conflicts=('nvidia-96xx' 'nvidia-173xx' 'nvidia')
@@ -34,6 +34,6 @@
     cd "${_pkg}/kernel"
-    # fix for 3.3 kernel
-    sed 's/CFLAGS="$CFLAGS -I$SOURCES\/arch\/x86\/include"/CFLAGS="$CFLAGS \
-                   -I$SOURCES\/arch\/x86\/include \
-                   -I$SOURCES\/arch\/x86\/include\/generated"/' -i conftest.sh
+    # fix for 3.4 kernel
+    sed -i 's/CFLAGS="$CFLAGS -I$SOURCES\/arch\/x86\/include"/CFLAGS="$CFLAGS -I$SOURCES\/arch\/x86\/include -I$SOURCES\/arch\/x86\/include\/generated"/' conftest.sh
+    sed -i 's/#include <asm\/system.h>/#include <linux\/version.h>\n#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)\n#include <asm\/system.h>\n#endif/' conftest.sh
+    sed -i 's/#include <asm\/system.h>/#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)\n#include <asm\/system>\n#endif/' nv-linux.h
     make SYSSRC=/lib/modules/"${_kernver}/build" module


Create a new paste based on this one


Comments: