From 0cb6966bc9c75c16bf3a1fb7e36e28ce1e1a453a Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Mon, 8 Jan 2024 15:50:15 -0500 Subject: x11-drivers/nvidia-drivers: fix with linux-6.7 and some configs Looked fine for me but turns out the issue is conditional to kernel configs and it was not enabling USE_LKCA with mines. Also needed USE=kernel-open to run into this. An NVIDIA representative has offered a fix, so may as well use it this time around. 525 and older branches did not use this function. Should be harmless for older kernels, but have not really tested so only applying if >6.7 as a precaution, esp. for stable 535. Signed-off-by: Ionen Wolkens --- x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild | 3 +++ 1 file changed, 3 insertions(+) (limited to 'x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild') diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild index 4e12ff078da1..8bc1465f4494 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.146.02.ebuild @@ -137,6 +137,9 @@ src_prepare() { default + kernel_is -ge 6 7 && + eapply "${FILESDIR}"/nvidia-drivers-535.43.22-kernel-6.7.patch + # prevent detection of incomplete kernel DRM support (bug #603818) sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \ -i kernel{,-module-source/kernel-open}/conftest.sh || die -- cgit v1.2.3-65-gdbad