commit faa6d6939106ed7ef69377ce7ab335e3f84597b7
Author: Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com>
Date: Fri Mar 29 20:49:41 2024 +0100
Fix build on kernel-6.8.2
kernel-6.6.8.patch | 11 +++++++++++
nvidia-340xx-kmod.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/kernel-6.6.8.patch b/kernel-6.6.8.patch
new file mode 100644
index 0000000..05d1fce
--- /dev/null
+++ b/kernel-6.6.8.patch
@@ -0,0 +1,11 @@
+diff -Naur a/kernel/conftest.sh b/kernel/conftest.sh
+--- a/kernel/conftest.sh 2023-11-09 18:36:25.485758000 +0100
++++ b/kernel/conftest.sh 2024-03-29 19:41:07.558997000 +0100
+@@ -1846,6 +1846,7 @@
+ ;;
+
+ drm_available)
++ return
+ #
+ # Determine if the DRM subsystem is usable
+ #
diff --git a/nvidia-340xx-kmod.spec b/nvidia-340xx-kmod.spec
index 1b169ec..84d9421 100644
--- a/nvidia-340xx-kmod.spec
+++ b/nvidia-340xx-kmod.spec
@@ -12,7 +12,7 @@ Name: nvidia-340xx-kmod
Epoch: 1
Version: 340.108
# Taken over by kmodtool
-Release: 30%{?dist}
+Release: 31%{?dist}
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -24,6 +24,7 @@ Patch1: fix-build-issues.patch
Patch2: kernel-6.3.1.patch
Patch3: kernel-6.5.2.patch
Patch4: kernel-6.6.1.patch
+Patch5: kernel-6.6.8.patch
BuildRequires: elfutils-libelf-devel
BuildRequires: gcc
@@ -55,6 +56,7 @@ tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{versi
%patch 2 -p1
%patch 3 -p1
%patch 4 -p1
+%patch 5 -p1
for kernel_version in %{?kernel_versions} ; do
cp -a kernel _kmod_build_${kernel_version%%___*}
@@ -83,6 +85,9 @@ done
%{?akmod_install}
%changelog
+* Fri Mar 29 2024 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-31
+- Fix build on kernel-6.8.2
+
* Thu Nov 09 2023 Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com> - 1:340.108-30
- Fix build on kernel-6.6.1
Show replies by date