commit: 3228548f74cc3faa12e0415733eadebace926fc2
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 5 14:35:39 2023 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jun 5 14:36:20 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3228548f
x11-drivers/nvidia-drivers: extend postinst mismatch warning
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild | 7 ++++++-
x11-drivers/nvidia-drivers/nvidia-drivers-470.182.03-r1.ebuild | 7 ++++++-
x11-drivers/nvidia-drivers/nvidia-drivers-515.105.01-r1.ebuild | 7 ++++++-
x11-drivers/nvidia-drivers/nvidia-drivers-525.116.04-r1.ebuild | 7 ++++++-
x11-drivers/nvidia-drivers/nvidia-drivers-525.47.26-r1.ebuild | 7 ++++++-
x11-drivers/nvidia-drivers/nvidia-drivers-530.41.03-r1.ebuild | 7 ++++++-
x11-drivers/nvidia-drivers/nvidia-drivers-535.43.02-r1.ebuild | 7 ++++++-
7 files changed, 42 insertions(+), 7 deletions(-)
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild
b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild
index 1b767ce1a0dd..4395ca7609bb 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild
@@ -457,7 +457,12 @@ pkg_postinst() {
$(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
ewarn "Currently loaded NVIDIA modules do not match the newly
installed"
ewarn "libraries and may prevent launching GPU-accelerated
applications."
- use modules && ewarn "The easiest way to fix this is usually to
reboot."
+ if use modules; then
+ ewarn "Easiest way to fix this is normally to reboot.
If still run into issues"
+ ewarn "(e.g. API mismatch messages in the \`dmesg\`
output), please verify"
+ ewarn "that the running kernel is ${KV_FULL} and that
(if used) the"
+ ewarn "initramfs does not include NVIDIA modules (or at
least, not old ones)."
+ fi
fi
ewarn
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.182.03-r1.ebuild
b/x11-drivers/nvidia-drivers/nvidia-drivers-470.182.03-r1.ebuild
index d6dc7317d635..f92cf1cc0973 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.182.03-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.182.03-r1.ebuild
@@ -454,7 +454,12 @@ pkg_postinst() {
$(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
ewarn "Currently loaded NVIDIA modules do not match the newly
installed"
ewarn "libraries and may prevent launching GPU-accelerated
applications."
- use modules && ewarn "The easiest way to fix this is usually to
reboot."
+ if use modules; then
+ ewarn "Easiest way to fix this is normally to reboot.
If still run into issues"
+ ewarn "(e.g. API mismatch messages in the \`dmesg\`
output), please verify"
+ ewarn "that the running kernel is ${KV_FULL} and that
(if used) the"
+ ewarn "initramfs does not include NVIDIA modules (or at
least, not old ones)."
+ fi
fi
if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-515.105.01-r1.ebuild
b/x11-drivers/nvidia-drivers/nvidia-drivers-515.105.01-r1.ebuild
index b8586f19f973..69acddc4ff35 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-515.105.01-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-515.105.01-r1.ebuild
@@ -508,7 +508,12 @@ pkg_postinst() {
$(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
ewarn "Currently loaded NVIDIA modules do not match the newly
installed"
ewarn "libraries and may prevent launching GPU-accelerated
applications."
- use modules && ewarn "The easiest way to fix this is usually to
reboot."
+ if use modules; then
+ ewarn "Easiest way to fix this is normally to reboot.
If still run into issues"
+ ewarn "(e.g. API mismatch messages in the \`dmesg\`
output), please verify"
+ ewarn "that the running kernel is ${KV_FULL} and that
(if used) the"
+ ewarn "initramfs does not include NVIDIA modules (or at
least, not old ones)."
+ fi
fi
if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.116.04-r1.ebuild
b/x11-drivers/nvidia-drivers/nvidia-drivers-525.116.04-r1.ebuild
index 783ecf862bca..b821ca109c90 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.116.04-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.116.04-r1.ebuild
@@ -506,7 +506,12 @@ pkg_postinst() {
$(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
ewarn "Currently loaded NVIDIA modules do not match the newly
installed"
ewarn "libraries and may prevent launching GPU-accelerated
applications."
- use modules && ewarn "The easiest way to fix this is usually to
reboot."
+ if use modules; then
+ ewarn "Easiest way to fix this is normally to reboot.
If still run into issues"
+ ewarn "(e.g. API mismatch messages in the \`dmesg\`
output), please verify"
+ ewarn "that the running kernel is ${KV_FULL} and that
(if used) the"
+ ewarn "initramfs does not include NVIDIA modules (or at
least, not old ones)."
+ fi
fi
if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.47.26-r1.ebuild
b/x11-drivers/nvidia-drivers/nvidia-drivers-525.47.26-r1.ebuild
index 1035ce287cd4..43bc207ec36d 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.47.26-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.47.26-r1.ebuild
@@ -507,7 +507,12 @@ pkg_postinst() {
$(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
ewarn "Currently loaded NVIDIA modules do not match the newly
installed"
ewarn "libraries and may prevent launching GPU-accelerated
applications."
- use modules && ewarn "The easiest way to fix this is usually to
reboot."
+ if use modules; then
+ ewarn "Easiest way to fix this is normally to reboot.
If still run into issues"
+ ewarn "(e.g. API mismatch messages in the \`dmesg\`
output), please verify"
+ ewarn "that the running kernel is ${KV_FULL} and that
(if used) the"
+ ewarn "initramfs does not include NVIDIA modules (or at
least, not old ones)."
+ fi
fi
if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-530.41.03-r1.ebuild
b/x11-drivers/nvidia-drivers/nvidia-drivers-530.41.03-r1.ebuild
index b9a10a17cc75..377300e2f9df 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-530.41.03-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-530.41.03-r1.ebuild
@@ -506,7 +506,12 @@ pkg_postinst() {
$(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
ewarn "Currently loaded NVIDIA modules do not match the newly
installed"
ewarn "libraries and may prevent launching GPU-accelerated
applications."
- use modules && ewarn "The easiest way to fix this is usually to
reboot."
+ if use modules; then
+ ewarn "Easiest way to fix this is normally to reboot.
If still run into issues"
+ ewarn "(e.g. API mismatch messages in the \`dmesg\`
output), please verify"
+ ewarn "that the running kernel is ${KV_FULL} and that
(if used) the"
+ ewarn "initramfs does not include NVIDIA modules (or at
least, not old ones)."
+ fi
fi
if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.02-r1.ebuild
b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.02-r1.ebuild
index 1f3fc2044bc9..908c41c31895 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.02-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-535.43.02-r1.ebuild
@@ -516,7 +516,12 @@ pkg_postinst() {
$(</proc/driver/nvidia/version) != *" ${PV} "* ]]; then
ewarn "Currently loaded NVIDIA modules do not match the newly
installed"
ewarn "libraries and may prevent launching GPU-accelerated
applications."
- use modules && ewarn "The easiest way to fix this is usually to
reboot."
+ if use modules; then
+ ewarn "Easiest way to fix this is normally to reboot.
If still run into issues"
+ ewarn "(e.g. API mismatch messages in the \`dmesg\`
output), please verify"
+ ewarn "that the running kernel is ${KV_FULL} and that
(if used) the"
+ ewarn "initramfs does not include NVIDIA modules (or at
least, not old ones)."
+ fi
fi
if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then