From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2BA5E158086 for ; Fri, 19 Nov 2021 07:04:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71994E0822; Fri, 19 Nov 2021 07:04:09 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0703DE0822 for ; Fri, 19 Nov 2021 07:04:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C7C893409EB for ; Fri, 19 Nov 2021 07:04:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 31A8B1C0 for ; Fri, 19 Nov 2021 07:04:06 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1637305393.14a3189a2e07e59d2c2a28a7348aff842343e4c2.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-drivers/nvidia-drivers/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-470.86.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r1.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild X-VCS-Directories: x11-drivers/nvidia-drivers/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 14a3189a2e07e59d2c2a28a7348aff842343e4c2 X-VCS-Branch: master Date: Fri, 19 Nov 2021 07:04:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6960c274-849b-4b09-936c-ae2e890cef43 X-Archives-Hash: 3f7e0119b880685d8b917ea4299e7c1e commit: 14a3189a2e07e59d2c2a28a7348aff842343e4c2 Author: Ionen Wolkens gentoo org> AuthorDate: Fri Nov 19 06:07:59 2021 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Fri Nov 19 07:03:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14a3189a x11-drivers/nvidia-drivers: update KMS_HELPER error message and sed Error message updated to help users enable it on kernel 5.15.3+ which no longer selects KMS_HELPER with CONFIG_DRM_FBDEV_EMULATION. This may unfortunately cause a poor surprise (failing Xorg) to users that did not notice this newly appearing message with minimal kernels and didn't have a custom xorg.conf forcing nvidia. Also modified sed to ensure nvidia-drm is properly built with support if KMS_HELPER is a module and DRM is not (revbump latest arch/~arch for this). Bug: https://bugs.gentoo.org/824594 Signed-off-by: Ionen Wolkens gentoo.org> x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild | 10 ++++++---- x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild | 8 +++++--- x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild | 8 +++++--- x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild | 8 +++++--- ...a-drivers-470.86.ebuild => nvidia-drivers-470.86-r1.ebuild} | 8 +++++--- ...rivers-495.44-r1.ebuild => nvidia-drivers-495.44-r2.ebuild} | 8 +++++--- x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild | 8 +++++--- 7 files changed, 36 insertions(+), 22 deletions(-) diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild index 3ed81570f991..64ade35d122d 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.144-r1.ebuild @@ -97,9 +97,11 @@ pkg_setup() { !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and optional nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead. - 390.xx branch: also used by a GLX workaround needed for OpenGL." + With 390.xx drivers, also used by a GLX workaround needed for OpenGL. + Cannot be directly selected in the kernel's menuconfig, and may need + selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or + DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in. + Note: DRM_SIMPLEDRM may cause issues and is better disabled for now." use amd64 || use x86 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 @@ -143,7 +145,7 @@ src_prepare() { fi # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \ -i kernel/conftest.sh || die sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild index 6627bca8a59c..965d65172955 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03-r1.ebuild @@ -95,8 +95,10 @@ pkg_setup() { !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead." + Cannot be directly selected in the kernel's menuconfig, and may need + selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or + DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in. + Note: DRM_SIMPLEDRM may cause issues and is better disabled for now." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 @@ -133,7 +135,7 @@ src_prepare() { default # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \ -i kernel/conftest.sh || die sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild index e0de37e6d8c2..b3b8df4650d8 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.12.ebuild @@ -100,8 +100,10 @@ pkg_setup() { !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead." + Cannot be directly selected in the kernel's menuconfig, and may need + selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or + DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in. + Note: DRM_SIMPLEDRM may cause issues and is better disabled for now." kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 @@ -155,7 +157,7 @@ src_prepare() { default # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \ -i kernel/conftest.sh || die sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild index 3d1a96254bf1..9be8a4d57429 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.82.00.ebuild @@ -94,8 +94,10 @@ pkg_setup() { !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead." + Cannot be directly selected in the kernel's menuconfig, and may need + selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or + DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in. + Note: DRM_SIMPLEDRM may cause issues and is better disabled for now." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 @@ -149,7 +151,7 @@ src_prepare() { default # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \ -i kernel/conftest.sh || die sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.86.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild similarity index 97% rename from x11-drivers/nvidia-drivers/nvidia-drivers-470.86.ebuild rename to x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild index 3d1a96254bf1..9be8a4d57429 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.86.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.86-r1.ebuild @@ -94,8 +94,10 @@ pkg_setup() { !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead." + Cannot be directly selected in the kernel's menuconfig, and may need + selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or + DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in. + Note: DRM_SIMPLEDRM may cause issues and is better disabled for now." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 @@ -149,7 +151,7 @@ src_prepare() { default # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \ -i kernel/conftest.sh || die sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild similarity index 97% rename from x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r1.ebuild rename to x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild index 17ddd558fc79..d1398cc45309 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild @@ -97,8 +97,10 @@ pkg_setup() { !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead." + Cannot be directly selected in the kernel's menuconfig, and may need + selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or + DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in. + Note: DRM_SIMPLEDRM may cause issues and is better disabled for now." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 @@ -152,7 +154,7 @@ src_prepare() { default # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \ -i kernel/conftest.sh || die sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \ diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild index bc8689cc2750..9e444bda2a40 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44.ebuild @@ -96,8 +96,10 @@ pkg_setup() { !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. - Cannot be directly selected in the kernel's menuconfig, so enable - options such as CONFIG_DRM_FBDEV_EMULATION instead." + Cannot be directly selected in the kernel's menuconfig, and may need + selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or + DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in. + Note: DRM_SIMPLEDRM may cause issues and is better disabled for now." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 @@ -151,7 +153,7 @@ src_prepare() { default # prevent detection of incomplete kernel DRM support (bug #603818) - sed 's/defined(CONFIG_DRM)/defined(CONFIG_DRM_KMS_HELPER)/' \ + sed 's/defined(CONFIG_DRM/defined(CONFIG_DRM_KMS_HELPER/g' \ -i kernel/conftest.sh || die sed -e '/Exec=\|Icon=/s/_.*/nvidia-settings/' \