[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2019-05-11 Thread Andreas Radke via arch-commits
Date: Sunday, May 12, 2019 @ 06:44:02
  Author: andyrtr
Revision: 352902

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 352901, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 352901, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 352901, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-05-12 06:44:02 UTC (rev 352902)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=22
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="https://www.nvidia.com/";
+makedepends=('linux-lts>=4.19.42' 'linux-lts-headers>=4.19.42' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.19.42' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
352901, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2019-05-12 06:44:02 UTC (rev 352902)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2019-04-06 Thread Andreas Radke via arch-commits
Date: Saturday, April 6, 2019 @ 18:36:18
  Author: andyrtr
Revision: 350245

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 350244, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 350244, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 350244, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-04-06 18:36:18 UTC (rev 350245)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=20
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.19.34' 'linux-lts-headers>=4.19.34' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.19.34' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
350244, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2019-04-06 18:36:18 UTC (rev 350245)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2019-03-14 Thread Andreas Radke via arch-commits
Date: Thursday, March 14, 2019 @ 16:56:45
  Author: andyrtr
Revision: 348051

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 348050, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 348050, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 348050, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-03-14 16:56:45 UTC (rev 348051)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=19
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.19.29' 'linux-lts-headers>=4.19.29' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.19.29' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
348050, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2019-03-14 16:56:45 UTC (rev 348051)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2019-03-05 Thread Andreas Radke via arch-commits
Date: Tuesday, March 5, 2019 @ 22:18:22
  Author: andyrtr
Revision: 347125

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 347124, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 347124, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 347124, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-03-05 22:18:22 UTC (rev 347125)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=18
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.19.27' 'linux-lts-headers>=4.19.27' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.19.27' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
347124, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2019-03-05 22:18:22 UTC (rev 347125)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2019-02-20 Thread Andreas Radke via arch-commits
Date: Wednesday, February 20, 2019 @ 21:02:09
  Author: andyrtr
Revision: 346586

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 346585, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 346585, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 346585, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-02-20 21:02:09 UTC (rev 346586)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=17
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.19.24' 'linux-lts-headers>=4.19.24' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.19.24' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
346585, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2019-02-20 21:02:09 UTC (rev 346586)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2019-01-26 Thread Andreas Radke via arch-commits
Date: Saturday, January 26, 2019 @ 14:04:52
  Author: andyrtr
Revision: 344808

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 344807, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 344807, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 344807, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-01-26 14:04:52 UTC (rev 344808)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=16
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.19.18' 'linux-lts-headers>=4.19.18' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.19.18' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
344807, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2019-01-26 14:04:52 UTC (rev 344808)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2019-01-13 Thread Andreas Radke via arch-commits
Date: Sunday, January 13, 2019 @ 14:55:55
  Author: andyrtr
Revision: 343958

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 343957, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 343957, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 343957, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-01-13 14:55:55 UTC (rev 343958)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=15
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.19.15' 'linux-lts-headers>=4.19.15' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.19.15' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
343957, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2019-01-13 14:55:55 UTC (rev 343958)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-12-25 Thread Andreas Radke via arch-commits
Date: Tuesday, December 25, 2018 @ 13:17:56
  Author: andyrtr
Revision: 342731

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 342730, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 342730, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 342730, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-12-25 13:17:56 UTC (rev 342731)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=14
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.19.12' 'linux-lts-headers>=4.19.12' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.19.12' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
342730, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-12-25 13:17:56 UTC (rev 342731)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-12-21 Thread Andreas Radke via arch-commits
Date: Friday, December 21, 2018 @ 15:50:44
  Author: andyrtr
Revision: 342643

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 342642, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 342642, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 342642, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-12-21 15:50:44 UTC (rev 342643)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=13
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.90' 'linux-lts-headers>=4.14.90' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.90' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
342642, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-12-21 15:50:44 UTC (rev 342643)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-11-25 Thread Christian Hesse via arch-commits
Date: Sunday, November 25, 2018 @ 21:13:04
  Author: eworm
Revision: 340397

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 340396, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 340396, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 340396, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-11-25 21:13:04 UTC (rev 340397)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=12
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.81' 'linux-lts-headers>=4.14.81' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.81' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
340396, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-11-25 21:13:04 UTC (rev 340397)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-11-14 Thread Andreas Radke via arch-commits
Date: Thursday, November 15, 2018 @ 07:47:22
  Author: andyrtr
Revision: 339707

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 339706, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 339706, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 339706, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-11-15 07:47:22 UTC (rev 339707)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=11
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.81' 'linux-lts-headers>=4.14.81' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.81' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
339706, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-11-15 07:47:22 UTC (rev 339707)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-10-18 Thread Andreas Radke via arch-commits
Date: Thursday, October 18, 2018 @ 15:52:17
  Author: andyrtr
Revision: 336834

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 336833, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 336833, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 336833, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-10-18 15:52:17 UTC (rev 336834)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=10
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.77' 'linux-lts-headers>=4.14.77' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.77' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
336833, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-10-18 15:52:17 UTC (rev 336834)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-10-05 Thread Andreas Radke via arch-commits
Date: Friday, October 5, 2018 @ 20:05:03
  Author: andyrtr
Revision: 335853

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 335852, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 335852, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 335852, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-10-05 20:05:03 UTC (rev 335853)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=9
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.74' 'linux-lts-headers>=4.14.74' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.74' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
335852, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-10-05 20:05:03 UTC (rev 335853)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-09-20 Thread Andreas Radke via arch-commits
Date: Thursday, September 20, 2018 @ 19:03:34
  Author: andyrtr
Revision: 335139

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 335138, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 335138, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 335138, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-09-20 19:03:34 UTC (rev 335139)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=8
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.69' 'linux-lts-headers>=4.14.71' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.71' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
335138, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-09-20 19:03:34 UTC (rev 335139)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-09-10 Thread Andreas Radke via arch-commits
Date: Monday, September 10, 2018 @ 15:18:15
  Author: andyrtr
Revision: 334316

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 334315, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 334315, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   52 
 kernel-4.11.patch |   38 ++
 2 files changed, 90 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 334315, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-09-10 15:18:15 UTC (rev 334316)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=7
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.69' 'linux-lts-headers>=4.14.69' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.69' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
334315, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-09-10 15:18:15 UTC (rev 334316)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-08-24 Thread Andreas Radke via arch-commits
Date: Friday, August 24, 2018 @ 15:31:06
  Author: andyrtr
Revision: 332970

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 332969, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 332969, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   52 
 kernel-4.11.patch |   38 ++
 2 files changed, 90 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 332969, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-08-24 15:31:06 UTC (rev 332970)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=6
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.67' 'linux-lts-headers>=4.14.67' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.67' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
332969, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-08-24 15:31:06 UTC (rev 332970)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-08-15 Thread Andreas Radke via arch-commits
Date: Wednesday, August 15, 2018 @ 18:22:57
  Author: andyrtr
Revision: 331554

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 331553, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 331553, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   52 
 kernel-4.11.patch |   38 ++
 2 files changed, 90 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 331553, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-08-15 18:22:57 UTC (rev 331554)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=5
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.63' 'linux-lts-headers>=4.14.63' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.63' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
331553, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-08-15 18:22:57 UTC (rev 331554)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-08-04 Thread Andreas Radke via arch-commits
Date: Saturday, August 4, 2018 @ 19:59:43
  Author: andyrtr
Revision: 330603

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 330602, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 330602, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   52 
 kernel-4.11.patch |   38 ++
 2 files changed, 90 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 330602, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-08-04 19:59:43 UTC (rev 330603)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=4
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.60' 'linux-lts-headers>=4.14.60' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.60' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
330602, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-08-04 19:59:43 UTC (rev 330603)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-06-06 Thread Giancarlo Razzolini via arch-commits
Date: Wednesday, June 6, 2018 @ 20:30:50
  Author: grazzolini
Revision: 326076

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 326075, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch
(from rev 326075, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   52 
 kernel-4.11.patch |   38 ++
 2 files changed, 90 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 326075, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-06-06 20:30:50 UTC (rev 326076)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Giancarlo Razzolini 
+# Contributor: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.14-lts
+pkgrel=1
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.48' 'linux-lts-headers>=4.14.48' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('0de6f182d67bd322df7ae04e74c0cde6973c55bfea47a8f2503a29f8a899cd1b801ae4b52d066628df4a4f9c84e5e7547465bdc37d1b87df47af43fdab23466f'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.48' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/kernel-4.11.patch (from rev 
326075, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- testing-x86_64/kernel-4.11.patch(rev 0)
+++ testing-x86_64/kernel-4.11.patch2018-06-06 20:30:50 UTC (rev 326076)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-05-30 Thread Christian Hesse via arch-commits
Date: Wednesday, May 30, 2018 @ 21:52:45
  Author: eworm
Revision: 325235

archrelease: copy trunk to staging-x86_64

Added:
  nvidia-340xx-lts/repos/staging-x86_64/
  nvidia-340xx-lts/repos/staging-x86_64/PKGBUILD
(from rev 325234, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/staging-x86_64/kernel-4.11.patch
(from rev 325234, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/staging-x86_64/PKGBUILD (from rev 325234, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-05-30 21:52:45 UTC (rev 325235)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.106
+_extramodules=extramodules-4.14-lts
+pkgrel=12
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.39' 'linux-lts-headers>=4.14.36' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('ea61d463148435b6c0d16203c06372e5dc93443607ece0709f789c5c08909a3ec51c1994df97b835bba58008cdc7fe588e403006eb00631482a2a9854a81ec0a'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.39' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/staging-x86_64/kernel-4.11.patch (from rev 
325234, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- staging-x86_64/kernel-4.11.patch(rev 0)
+++ staging-x86_64/kernel-4.11.patch2018-05-30 21:52:45 UTC (rev 325235)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-05-28 Thread Christian Hesse via arch-commits
Date: Monday, May 28, 2018 @ 11:06:11
  Author: eworm
Revision: 325074

archrelease: copy trunk to staging-x86_64

Added:
  nvidia-340xx-lts/repos/staging-x86_64/
  nvidia-340xx-lts/repos/staging-x86_64/PKGBUILD
(from rev 325073, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/staging-x86_64/kernel-4.11.patch
(from rev 325073, nvidia-340xx-lts/trunk/kernel-4.11.patch)

---+
 PKGBUILD  |   51 +++
 kernel-4.11.patch |   38 ++
 2 files changed, 89 insertions(+)

Copied: nvidia-340xx-lts/repos/staging-x86_64/PKGBUILD (from rev 325073, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-05-28 11:06:11 UTC (rev 325074)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.106
+_extramodules=extramodules-4.14-lts
+pkgrel=11
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.14.39' 'linux-lts-headers>=4.14.36' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+options=(!strip)
+source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";
+'kernel-4.11.patch')
+sha512sums=('ea61d463148435b6c0d16203c06372e5dc93443607ece0709f789c5c08909a3ec51c1994df97b835bba58008cdc7fe588e403006eb00631482a2a9854a81ec0a'
+
'c25d90499e1deb26129a67dd7e953be8c1e31c5770e2b8b64d03af54cf1afec1a52636e74900f8ac468692207ab8a3765a12edd581142c4d2cfd2d6e66ac7ac2')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+patch -Np0 < "${srcdir}/kernel-4.11.patch"
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.14.39' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/staging-x86_64/kernel-4.11.patch (from rev 
325073, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===
--- staging-x86_64/kernel-4.11.patch(rev 0)
+++ staging-x86_64/kernel-4.11.patch2018-05-28 11:06:11 UTC (rev 325074)
@@ -0,0 +1,38 @@
+--- kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:50:46.334075042 +0200
 kernel/uvm/nvidia_uvm_lite.c   2017-09-27 13:56:06.358041280 +0200
+@@ -818,7 +818,11 @@
+ }
+ 
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else 
++int _fault(struct vm_fault *vmf)  
++#endif
+ {
+ #if defined(NV_VM_FAULT_HAS_ADDRESS)
+ unsigned long vaddr = vmf->address;
+@@ -828,7 +832,11 @@
+ struct page *page = NULL;
+ int retval;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ retval = _fault_common(vma, vaddr, &page, vmf->flags);
++#else
++retval = _fault_common(NULL, vaddr, &page, vmf->flags);
++#endif
+ 
+ vmf->page = page;
+ 
+@@ -866,7 +874,11 @@
+ // it's dealing with anonymous mapping (see handle_pte_fault).
+ //
+ #if defined(NV_VM_OPERATIONS_STRUCT_HAS_FAULT)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ int _sigbus_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
++#else
++int _sigbus_fault(struct vm_fault *vmf)
++#endif
+ {
+ vmf->page = NULL;
+ return VM_FAULT_SIGBUS;


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-01-23 Thread Andreas Radke via arch-commits
Date: Tuesday, January 23, 2018 @ 20:57:09
  Author: andyrtr
Revision: 315332

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 315331, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install
(from rev 315331, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)

--+
 PKGBUILD |   49 +
 nvidia-340xx-lts.install |   15 +
 2 files changed, 64 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 315331, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-01-23 20:57:09 UTC (rev 315332)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.106
+_extramodules=extramodules-4.9-lts
+pkgrel=3
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.9.78' 'linux-lts-headers>=4.9.78' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+install=${pkgname}.install
+options=(!strip)
+source_x86_64+=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";)
+md5sums_x86_64=('37c84428b64696be2b104edbc9855f57')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.9.78' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install (from 
rev 315331, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
===
--- testing-x86_64/nvidia-340xx-lts.install (rev 0)
+++ testing-x86_64/nvidia-340xx-lts.install 2018-01-23 20:57:09 UTC (rev 
315332)
@@ -0,0 +1,15 @@
+post_install() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-01-17 Thread Andreas Radke via arch-commits
Date: Wednesday, January 17, 2018 @ 12:48:50
  Author: andyrtr
Revision: 315000

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 314999, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install
(from rev 314999, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)

--+
 PKGBUILD |   49 +
 nvidia-340xx-lts.install |   15 +
 2 files changed, 64 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 314999, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-01-17 12:48:50 UTC (rev 315000)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.106
+_extramodules=extramodules-4.9-lts
+pkgrel=2
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.9.77' 'linux-lts-headers>=4.9.77' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+install=${pkgname}.install
+options=(!strip)
+source_x86_64+=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";)
+md5sums_x86_64=('37c84428b64696be2b104edbc9855f57')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.9.77' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install (from 
rev 314999, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
===
--- testing-x86_64/nvidia-340xx-lts.install (rev 0)
+++ testing-x86_64/nvidia-340xx-lts.install 2018-01-17 12:48:50 UTC (rev 
315000)
@@ -0,0 +1,15 @@
+post_install() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2018-01-05 Thread Andreas Radke via arch-commits
Date: Friday, January 5, 2018 @ 20:54:08
  Author: andyrtr
Revision: 314106

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 314105, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install
(from rev 314105, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)

--+
 PKGBUILD |   49 +
 nvidia-340xx-lts.install |   15 +
 2 files changed, 64 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 314105, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2018-01-05 20:54:08 UTC (rev 314106)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.104
+_extramodules=extramodules-4.9-lts
+pkgrel=7
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.9.75' 'linux-lts-headers>=4.9.75' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+install=${pkgname}.install
+options=(!strip)
+source_x86_64+=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";)
+md5sums_x86_64=('efbd37cde63d50f657d55a6f2b321142')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.9.69' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install (from 
rev 314105, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
===
--- testing-x86_64/nvidia-340xx-lts.install (rev 0)
+++ testing-x86_64/nvidia-340xx-lts.install 2018-01-05 20:54:08 UTC (rev 
314106)
@@ -0,0 +1,15 @@
+post_install() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2017-12-14 Thread Andreas Radke via arch-commits
Date: Thursday, December 14, 2017 @ 19:29:07
  Author: andyrtr
Revision: 312670

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 312669, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install
(from rev 312669, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)

--+
 PKGBUILD |   49 +
 nvidia-340xx-lts.install |   15 +
 2 files changed, 64 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 312669, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2017-12-14 19:29:07 UTC (rev 312670)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.104
+_extramodules=extramodules-4.9-lts
+pkgrel=6
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.9.69' 'linux-lts-headers>=4.9.69' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+install=${pkgname}.install
+options=(!strip)
+source_x86_64+=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";)
+md5sums_x86_64=('efbd37cde63d50f657d55a6f2b321142')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.9.69' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install (from 
rev 312669, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
===
--- testing-x86_64/nvidia-340xx-lts.install (rev 0)
+++ testing-x86_64/nvidia-340xx-lts.install 2017-12-14 19:29:07 UTC (rev 
312670)
@@ -0,0 +1,15 @@
+post_install() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2017-12-05 Thread Andreas Radke via arch-commits
Date: Tuesday, December 5, 2017 @ 16:42:31
  Author: andyrtr
Revision: 311641

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 311640, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install
(from rev 311640, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)

--+
 PKGBUILD |   49 +
 nvidia-340xx-lts.install |   15 +
 2 files changed, 64 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 311640, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2017-12-05 16:42:31 UTC (rev 311641)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.104
+_extramodules=extramodules-4.9-lts
+pkgrel=5
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.9.67' 'linux-lts-headers>=4.9.67' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+install=${pkgname}.install
+options=(!strip)
+source_x86_64+=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";)
+md5sums_x86_64=('efbd37cde63d50f657d55a6f2b321142')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.9.67' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install (from 
rev 311640, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
===
--- testing-x86_64/nvidia-340xx-lts.install (rev 0)
+++ testing-x86_64/nvidia-340xx-lts.install 2017-12-05 16:42:31 UTC (rev 
311641)
@@ -0,0 +1,15 @@
+post_install() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}


[arch-commits] Commit in nvidia-340xx-lts/repos (3 files)

2017-11-15 Thread Andreas Radke
Date: Wednesday, November 15, 2017 @ 17:14:40
  Author: andyrtr
Revision: 310019

archrelease: copy trunk to testing-x86_64

Added:
  nvidia-340xx-lts/repos/testing-x86_64/
  nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD
(from rev 310018, nvidia-340xx-lts/trunk/PKGBUILD)
  nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install
(from rev 310018, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)

--+
 PKGBUILD |   49 +
 nvidia-340xx-lts.install |   15 +
 2 files changed, 64 insertions(+)

Copied: nvidia-340xx-lts/repos/testing-x86_64/PKGBUILD (from rev 310018, 
nvidia-340xx-lts/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2017-11-15 17:14:40 UTC (rev 310019)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Eric Bélanger 
+
+pkgname=nvidia-340xx-lts
+pkgver=340.104
+_extramodules=extramodules-4.9-lts
+pkgrel=4
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/";
+makedepends=('linux-lts>=4.9.62' 'linux-lts-headers>=4.9.62' 
"nvidia-340xx-utils=$pkgver")
+provides=('nvidia-340xx')
+conflicts=('nvidia-lts')
+license=('custom')
+install=${pkgname}.install
+options=(!strip)
+source_x86_64+=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run";)
+md5sums_x86_64=('efbd37cde63d50f657d55a6f2b321142')
+
+[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
+
+prepare() {
+sh ${_pkg}.run --extract-only
+cd "${_pkg}"
+# patches here
+}
+
+build() {
+  _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+  cd "${_pkg}/kernel"
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
+}
+
+package() {
+  depends=('linux-lts>=4.9.59' "nvidia-340xx-utils=$pkgver" 'libgl')
+
+  install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
+"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+
"${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
+  install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
+  echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
+  install -D -m644 "${srcdir}/${_pkg}/LICENSE" 
"${pkgdir}/usr/share/licenses/nvidia-lts/LICENSE"
+}

Copied: nvidia-340xx-lts/repos/testing-x86_64/nvidia-340xx-lts.install (from 
rev 310018, nvidia-340xx-lts/trunk/nvidia-340xx-lts.install)
===
--- testing-x86_64/nvidia-340xx-lts.install (rev 0)
+++ testing-x86_64/nvidia-340xx-lts.install 2017-11-15 17:14:40 UTC (rev 
310019)
@@ -0,0 +1,15 @@
+post_install() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+echo 'In order to use nvidia module, reboot the system.'
+}
+
+post_upgrade() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+EXTRAMODULES='extramodules-4.9-lts'
+depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}