[arch-commits] Commit in nvidia/trunk (PKGBUILD nvidia-4.3-build.patch)

Tobias Powalowski tpowa at archlinux.org
Wed Nov 4 14:42:30 UTC 2015


    Date: Wednesday, November 4, 2015 @ 15:42:30
  Author: tpowa
Revision: 250098

upgpkg: nvidia 355.11-5

rebuild against 4.3 series

Added:
  nvidia/trunk/nvidia-4.3-build.patch
Modified:
  nvidia/trunk/PKGBUILD

------------------------+
 PKGBUILD               |   11 +++++++----
 nvidia-4.3-build.patch |   20 ++++++++++++++++++++
 2 files changed, 27 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-11-04 14:39:55 UTC (rev 250097)
+++ PKGBUILD	2015-11-04 14:42:30 UTC (rev 250098)
@@ -6,16 +6,18 @@
 pkgbase=nvidia
 pkgname=(nvidia nvidia-dkms)
 pkgver=355.11
-_extramodules=extramodules-4.2-ARCH
-pkgrel=4
+_extramodules=extramodules-4.3-ARCH
+pkgrel=5
 pkgdesc="NVIDIA drivers for linux"
 arch=('i686' 'x86_64')
 url="http://www.nvidia.com/"
-makedepends=('nvidia-libgl' "nvidia-utils=${pkgver}" 'linux' 'linux-headers>=4.2' 'linux-headers<4.3')
+makedepends=('nvidia-libgl' "nvidia-utils=${pkgver}" 'linux' 'linux-headers>=4.3' 'linux-headers<4.4')
 license=('custom')
 options=(!strip)
+source=('nvidia-4.3-build.patch')
 source_i686="ftp://download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run"
 source_x86_64="ftp://download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run"
+md5sums=('1e5f60cf8e77af482345549b9436887a')
 md5sums_i686='16d143ccafe99328a2ca8e5a396fd4bc'
 md5sums_x86_64='30133d89690f4683c4e289ec6c0247dc'
 
@@ -26,6 +28,7 @@
     sh "${_pkg}.run" --extract-only
     cd "${_pkg}"
     # patches here
+    patch -Np1 -i ${srcdir}/nvidia-4.3-build.patch
 
     cp -a kernel kernel-dkms
     cd kernel-dkms
@@ -46,7 +49,7 @@
 
 package_nvidia() {
     pkgdesc="NVIDIA drivers for linux"
-    depends=('linux>=4.2' 'linux<4.3' "nvidia-utils=${pkgver}" 'libgl')
+    depends=('linux>=4.3' 'linux<4.4' "nvidia-utils=${pkgver}" 'libgl')
     install=nvidia.install
 
     install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \

Added: nvidia-4.3-build.patch
===================================================================
--- nvidia-4.3-build.patch	                        (rev 0)
+++ nvidia-4.3-build.patch	2015-11-04 14:42:30 UTC (rev 250098)
@@ -0,0 +1,20 @@
+--- a/kernel/nvidia/nv-procfs.c
++++ b/kernel/nvidia/nv-procfs.c
+@@ -360,7 +360,8 @@ nv_procfs_read_registry(
+     registry_keys = ((nvl != NULL) ?
+             nvl->registry_keys : nv_registry_keys);
+ 
+-    return seq_printf(s, "Binary: \"%s\"\n", registry_keys);
++    seq_printf(s, "Binary: \"%s\"\n", registry_keys);
++    return 0;
+ }
+ 
+ static ssize_t
+@@ -560,7 +561,8 @@ nv_procfs_read_text_file(
+     void *v
+ )
+ {
+-    return seq_puts(s, s->private);
++    seq_puts(s, s->private);
++    return 0;
+ }



More information about the arch-commits mailing list