commit e941473c0e7b1cafa5c54acf4a108677510ae0db
Author: Łukasz Wojniłowicz <lukasz.wojnilowicz(a)gmail.com>
Date: Fri Mar 29 21:01:05 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 124fcf4..80eb899 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: 29%{?dist}
+Release: 30%{?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-30
+- Fix build on kernel-6.8.2
+
* Sun Feb 04 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1:340.108-29
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild