[arch-commits] Commit in nvidia-340xx-lts/repos/extra-x86_64 (4 files)
Andreas Radke
andyrtr at archlinux.org
Tue May 7 10:47:45 UTC 2019
Date: Tuesday, May 7, 2019 @ 10:47:45
Author: andyrtr
Revision: 352662
archrelease: copy trunk to extra-x86_64
Added:
nvidia-340xx-lts/repos/extra-x86_64/PKGBUILD
(from rev 352661, nvidia-340xx-lts/trunk/PKGBUILD)
nvidia-340xx-lts/repos/extra-x86_64/kernel-4.11.patch
(from rev 352661, nvidia-340xx-lts/trunk/kernel-4.11.patch)
Deleted:
nvidia-340xx-lts/repos/extra-x86_64/PKGBUILD
nvidia-340xx-lts/repos/extra-x86_64/kernel-4.11.patch
-------------------+
PKGBUILD | 102 ++++++++++++++++++++++++++--------------------------
kernel-4.11.patch | 76 +++++++++++++++++++-------------------
2 files changed, 89 insertions(+), 89 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-05-07 10:47:38 UTC (rev 352661)
+++ PKGBUILD 2019-05-07 10:47:45 UTC (rev 352662)
@@ -1,51 +0,0 @@
-# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.org>
-# Contributor: Eric Bélanger <eric at archlinux.org>
-
-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/extra-x86_64/PKGBUILD (from rev 352661, nvidia-340xx-lts/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-05-07 10:47:45 UTC (rev 352662)
@@ -0,0 +1,51 @@
+# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
+
+pkgname=nvidia-340xx-lts
+pkgver=340.107
+_extramodules=extramodules-4.19-lts
+pkgrel=21
+pkgdesc="NVIDIA drivers for linux-lts"
+arch=('x86_64')
+url="http://www.nvidia.com/"
+makedepends=('linux-lts>=4.19.40' 'linux-lts-headers>=4.19.40' "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.40' "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"
+}
Deleted: kernel-4.11.patch
===================================================================
--- kernel-4.11.patch 2019-05-07 10:47:38 UTC (rev 352661)
+++ kernel-4.11.patch 2019-05-07 10:47:45 UTC (rev 352662)
@@ -1,38 +0,0 @@
---- 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;
Copied: nvidia-340xx-lts/repos/extra-x86_64/kernel-4.11.patch (from rev 352661, nvidia-340xx-lts/trunk/kernel-4.11.patch)
===================================================================
--- kernel-4.11.patch (rev 0)
+++ kernel-4.11.patch 2019-05-07 10:47:45 UTC (rev 352662)
@@ -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;
More information about the arch-commits
mailing list