[arch-commits] Commit in nvidia/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Jan 28 09:08:55 UTC 2020


    Date: Tuesday, January 28, 2020 @ 09:08:55
  Author: felixonmars
Revision: 374190

upgpkg: nvidia 440.44-16

- add patch to fix build for linux 5.5 (https://devtalk.nvidia.com/default/topic/1068332/linux/nvidia-driver-does-not-build-on-linux-v5-5-release-candidate-kernel/)
- add patch to fix prime for linux 5.4 (https://devtalk.nvidia.com/default/topic/1068045/5-4-kernel-breaks-prime-synchronization-/)

Modified:
  nvidia/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-28 09:06:39 UTC (rev 374189)
+++ PKGBUILD	2020-01-28 09:08:55 UTC (rev 374190)
@@ -5,7 +5,7 @@
 pkgbase=nvidia
 pkgname=(nvidia nvidia-dkms)
 pkgver=440.44
-pkgrel=15
+pkgrel=16
 pkgdesc="NVIDIA drivers for linux"
 arch=('x86_64')
 url="https://www.nvidia.com/"
@@ -13,13 +13,20 @@
 license=('custom')
 options=('!strip')
 _pkg="NVIDIA-Linux-x86_64-${pkgver}"
-source=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run")
-sha512sums=('c0c0e19cdb82d47575adbcf46e23580977cf7a5097edfb9d76464c2e678a44f556d8c2d0d49515a86b6765f57176460193c6951927e24c278e6a7f411f89f26b')
+source=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run"
+        'nvidia-kernel-5.5.patch::https://gitlab.com/snippets/1923197/raw'
+        'nvidia-prime-kernel-5.4.patch::https://gitlab.com/snippets/1929174/raw')
+sha512sums=('c0c0e19cdb82d47575adbcf46e23580977cf7a5097edfb9d76464c2e678a44f556d8c2d0d49515a86b6765f57176460193c6951927e24c278e6a7f411f89f26b'
+            '55452108bb63ef19b4c64c4e1f58da60a10ac9bd95d077a4472e3557be7e2d87182274e430260c88e36f915be467a97eb63d145fbdea293525e96db503953d33'
+            '01abed11589dc632a4d91a0d7a826658f34b0c2c4d82ac2e695cf787dde9d9b56a1737885e74073daccbdb470701864ceb865ebcb099c60622725deebe2d486f')
 
 prepare() {
     sh "${_pkg}.run" --extract-only
     cd "${_pkg}"
 
+    patch -p1 -i '../nvidia-kernel-5.5.patch'
+    patch -p1 --no-backup-if-mismatch -i '../nvidia-prime-kernel-5.4.patch'
+
     cp -a kernel kernel-dkms
     cd kernel-dkms
     sed -i "s/__VERSION_STRING/${pkgver}/" dkms.conf



More information about the arch-commits mailing list