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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2768B13835A for ; Tue, 6 Apr 2021 20:00:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 772B6E09A8; Tue, 6 Apr 2021 20:00:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4DFB9E09A8 for ; Tue, 6 Apr 2021 20:00:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0476335CE9 for ; Tue, 6 Apr 2021 20:00:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 27E8C640 for ; Tue, 6 Apr 2021 20:00:44 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1617739219.a552a2f91d8e69aead632fe512d520c25b987f4d.soap@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.141-r1.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-450.102.04-r1.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-465.19.01.ebuild X-VCS-Directories: x11-drivers/nvidia-drivers/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: a552a2f91d8e69aead632fe512d520c25b987f4d X-VCS-Branch: master Date: Tue, 6 Apr 2021 20:00:44 +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: 09e7704a-390f-4ca5-adaa-fd75850788d0 X-Archives-Hash: 3399d11a20dc469a943f750cf3ac5b86 commit: a552a2f91d8e69aead632fe512d520c25b987f4d Author: Ionen Wolkens gmail com> AuthorDate: Tue Apr 6 20:00:19 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Tue Apr 6 20:00:19 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a552a2f9 x11-drivers/nvidia-drivers: add README.gentoo, minor message changes Like nvidia-driver.eclass used to it's primarily to leave something behind about the video group should users have missed the message (but no revbumps over installing this). Signed-off-by: Ionen Wolkens gmail.com> Signed-off-by: David Seifert gentoo.org> .../nvidia-drivers-390.141-r1.ebuild | 37 +++++++++++----------- .../nvidia-drivers-450.102.04-r1.ebuild | 28 ++++++++-------- .../nvidia-drivers/nvidia-drivers-460.67.ebuild | 28 ++++++++-------- .../nvidia-drivers/nvidia-drivers-465.19.01.ebuild | 29 ++++++++--------- 4 files changed, 58 insertions(+), 64 deletions(-) diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.141-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.141-r1.ebuild index ba2b3e55347..baff134c695 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.141-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.141-r1.ebuild @@ -4,8 +4,8 @@ EAPI=7 MODULES_OPTIONAL_USE="driver" -inherit desktop linux-info linux-mod multilib-build \ - optfeature systemd toolchain-funcs unpacker +inherit desktop linux-info linux-mod multilib-build optfeature \ + readme.gentoo-r1 systemd toolchain-funcs unpacker NV_KERNEL_MAX="5.10" NV_BIN_URI="https://download.nvidia.com/XFree86/Linux-" @@ -82,6 +82,13 @@ DOCS=( ) HTML_DOCS=( html/. ) +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="Users should be in the 'video' group to use NVIDIA devices. +You can add yourself by using: gpasswd -a my-user video + +For general information on using nvidia-drivers, please see: +https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" + pkg_setup() { use driver || return @@ -334,6 +341,7 @@ src_install() { multilib_foreach_abi nvidia-drivers_libs_install einstalldocs + readme.gentoo_create_doc } pkg_preinst() { @@ -350,30 +358,21 @@ pkg_preinst() { pkg_postinst() { use driver && linux-mod_pkg_postinst + readme.gentoo_print_elog + optfeature "wayland EGLStream with nvidia-drm.modeset=1" gui-libs/egl-wayland if [[ -r /proc/driver/nvidia/version && $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then ewarn "Currently loaded NVIDIA modules do not match the newly installed" ewarn "libraries and will lead to GPU-using application issues." - use driver && ewarn "The easiest way to fix this is to reboot." + use driver && ewarn "The easiest way to fix this is usually to reboot." fi - if ! [[ ${REPLACING_VERSIONS} && $(getent group video | cut -d: -f4) ]]; then - elog "***** WARNING *****" - elog "Users should be in the 'video' group to use NVIDIA devices." - elog "You can add yourself by using: gpasswd -a myuser video" - fi - - if [[ ! ${REPLACING_VERSIONS} ]]; then - if use x86; then - elog "Note that NVIDIA is no longer offering support for the unified memory" - elog "module (nvidia-uvm) on x86 (32bit), as such the module was not built." - elog "This means OpenCL/CUDA (and related, like nvenc) cannot be used." - elog "Other functions, like OpenGL, will continue to work." - elog - fi - elog "For general information with using NVIDIA on Gentoo, please see:" - elog "https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" + if use x86 && [[ ! ${REPLACING_VERSIONS} ]]; then + elog "Note that NVIDIA is no longer offering support for the unified memory" + elog "module (nvidia-uvm) on x86 (32bit), as such the module was not built." + elog "This means OpenCL/CUDA (and related, like nvenc) cannot be used." + elog "Other functions, like OpenGL, will continue to work." fi } diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-450.102.04-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-450.102.04-r1.ebuild index 65298315925..4b35ed9fa95 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-450.102.04-r1.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-450.102.04-r1.ebuild @@ -4,8 +4,8 @@ EAPI=7 MODULES_OPTIONAL_USE="driver" -inherit desktop linux-info linux-mod multilib-build \ - optfeature systemd toolchain-funcs unpacker +inherit desktop linux-info linux-mod multilib-build optfeature \ + readme.gentoo-r1 systemd toolchain-funcs unpacker NV_KERNEL_MAX="5.10" NV_BIN_URI="https://download.nvidia.com/XFree86/Linux-" @@ -81,6 +81,13 @@ DOCS=( ) HTML_DOCS=( html/. ) +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="Users should be in the 'video' group to use NVIDIA devices. +You can add yourself by using: gpasswd -a my-user video + +For general information on using nvidia-drivers, please see: +https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" + pkg_setup() { use driver || return @@ -341,6 +348,7 @@ src_install() { systemd_dounit nvidia-{hibernate,resume,suspend}.service einstalldocs + readme.gentoo_create_doc } pkg_preinst() { @@ -371,17 +379,18 @@ pkg_preinst() { pkg_postinst() { use driver && linux-mod_pkg_postinst + readme.gentoo_print_elog + optfeature "wayland EGLStream with nvidia-drm.modeset=1" gui-libs/egl-wayland if [[ -r /proc/driver/nvidia/version && $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then ewarn "Currently loaded NVIDIA modules do not match the newly installed" ewarn "libraries and will lead to GPU-using application issues." - use driver && ewarn "The easiest way to fix this is to reboot." + use driver && ewarn "The easiest way to fix this is usually to reboot." fi if [[ ${NV_LEGACY_MASK} ]]; then - ewarn "***** WARNING *****" ewarn "You are installing a version of nvidia-drivers known not to work" ewarn "with a GPU of the current system. If unwanted, add the mask:" if [[ -d ${EROOT}/etc/portage/package.mask ]]; then @@ -392,15 +401,4 @@ pkg_postinst() { ewarn "...then downgrade to a legacy branch if possible. For details, see:" ewarn "https://www.nvidia.com/object/IO_32667.html" fi - - if ! [[ ${REPLACING_VERSIONS} && $(getent group video | cut -d: -f4) ]]; then - elog "***** WARNING *****" - elog "Users should be in the 'video' group to use NVIDIA devices." - elog "You can add yourself by using: gpasswd -a myuser video" - fi - - if [[ ! ${REPLACING_VERSIONS} ]]; then - elog "For general information with using NVIDIA on Gentoo, please see:" - elog "https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" - fi } diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild index d7602b8fcfa..18cbd4cb2f0 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-460.67.ebuild @@ -4,8 +4,8 @@ EAPI=7 MODULES_OPTIONAL_USE="driver" -inherit desktop linux-info linux-mod multilib-build \ - optfeature systemd toolchain-funcs unpacker +inherit desktop linux-info linux-mod multilib-build optfeature \ + readme.gentoo-r1 systemd toolchain-funcs unpacker NV_KERNEL_MAX="5.11" NV_BIN_URI="https://download.nvidia.com/XFree86/Linux-" @@ -81,6 +81,13 @@ DOCS=( ) HTML_DOCS=( html/. ) +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="Users should be in the 'video' group to use NVIDIA devices. +You can add yourself by using: gpasswd -a my-user video + +For general information on using nvidia-drivers, please see: +https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" + pkg_setup() { use driver || return @@ -345,6 +352,7 @@ src_install() { systemd_dounit nvidia-{hibernate,resume,suspend}.service einstalldocs + readme.gentoo_create_doc } pkg_preinst() { @@ -375,17 +383,18 @@ pkg_preinst() { pkg_postinst() { use driver && linux-mod_pkg_postinst + readme.gentoo_print_elog + optfeature "wayland EGLStream with nvidia-drm.modeset=1" gui-libs/egl-wayland if [[ -r /proc/driver/nvidia/version && $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then ewarn "Currently loaded NVIDIA modules do not match the newly installed" ewarn "libraries and will lead to GPU-using application issues." - use driver && ewarn "The easiest way to fix this is to reboot." + use driver && ewarn "The easiest way to fix this is usually to reboot." fi if [[ ${NV_LEGACY_MASK} ]]; then - ewarn "***** WARNING *****" ewarn "You are installing a version of nvidia-drivers known not to work" ewarn "with a GPU of the current system. If unwanted, add the mask:" if [[ -d ${EROOT}/etc/portage/package.mask ]]; then @@ -396,15 +405,4 @@ pkg_postinst() { ewarn "...then downgrade to a legacy branch if possible. For details, see:" ewarn "https://www.nvidia.com/object/IO_32667.html" fi - - if ! [[ ${REPLACING_VERSIONS} && $(getent group video | cut -d: -f4) ]]; then - elog "***** WARNING *****" - elog "Users should be in the 'video' group to use NVIDIA devices." - elog "You can add yourself by using: gpasswd -a myuser video" - fi - - if [[ ! ${REPLACING_VERSIONS} ]]; then - elog "For general information with using NVIDIA on Gentoo, please see:" - elog "https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" - fi } diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-465.19.01.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-465.19.01.ebuild index dd0174cd027..33c06261278 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-465.19.01.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-465.19.01.ebuild @@ -4,8 +4,8 @@ EAPI=7 MODULES_OPTIONAL_USE="driver" -inherit desktop linux-info linux-mod multilib-build \ - optfeature systemd toolchain-funcs unpacker +inherit desktop linux-info linux-mod multilib-build optfeature \ + readme.gentoo-r1 systemd toolchain-funcs unpacker NV_KERNEL_MAX="5.11" NV_BIN_URI="https://download.nvidia.com/XFree86/Linux-" @@ -81,6 +81,13 @@ DOCS=( ) HTML_DOCS=( html/. ) +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="Users should be in the 'video' group to use NVIDIA devices. +You can add yourself by using: gpasswd -a my-user video + +For general information on using nvidia-drivers, please see: +https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" + pkg_setup() { use driver || return @@ -107,6 +114,7 @@ pkg_setup() { nvidia-drm(video:kernel) nvidia-modeset(video:kernel) nvidia-uvm(video:kernel)" + # nvidia-peermem(video:kernel) - skipping unless there is a demand for it linux-mod_pkg_setup @@ -345,6 +353,7 @@ src_install() { systemd_dounit systemd/system/nvidia-{hibernate,resume,suspend}.service einstalldocs + readme.gentoo_create_doc } pkg_preinst() { @@ -375,17 +384,18 @@ pkg_preinst() { pkg_postinst() { use driver && linux-mod_pkg_postinst + readme.gentoo_print_elog + optfeature "wayland EGLStream with nvidia-drm.modeset=1" gui-libs/egl-wayland if [[ -r /proc/driver/nvidia/version && $(grep -o ' [0-9.]* ' /proc/driver/nvidia/version) != " ${PV} " ]]; then ewarn "Currently loaded NVIDIA modules do not match the newly installed" ewarn "libraries and will lead to GPU-using application issues." - use driver && ewarn "The easiest way to fix this is to reboot." + use driver && ewarn "The easiest way to fix this is usually to reboot." fi if [[ ${NV_LEGACY_MASK} ]]; then - ewarn "***** WARNING *****" ewarn "You are installing a version of nvidia-drivers known not to work" ewarn "with a GPU of the current system. If unwanted, add the mask:" if [[ -d ${EROOT}/etc/portage/package.mask ]]; then @@ -396,15 +406,4 @@ pkg_postinst() { ewarn "...then downgrade to a legacy branch if possible. For details, see:" ewarn "https://www.nvidia.com/object/IO_32667.html" fi - - if ! [[ ${REPLACING_VERSIONS} && $(getent group video | cut -d: -f4) ]]; then - elog "***** WARNING *****" - elog "Users should be in the 'video' group to use NVIDIA devices." - elog "You can add yourself by using: gpasswd -a myuser video" - fi - - if [[ ! ${REPLACING_VERSIONS} ]]; then - elog "For general information with using NVIDIA on Gentoo, please see:" - elog "https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers" - fi }