summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild')
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild
index d1398cc45309..08e975e6beb8 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-495.44-r2.ebuild
@@ -410,6 +410,9 @@ https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers"
}
pkg_preinst() {
+ has_version "${CATEGORY}/${PN}[abi_x86_32]" && NV_HAD_ABI32=1
+ has_version "${CATEGORY}/${PN}[wayland]" && NV_HAD_WAYLAND=1
+
use driver || return
linux-mod_pkg_preinst
@@ -431,8 +434,6 @@ pkg_preinst() {
fi
done
rm "${ED}"/usr/share/nvidia/supported-gpus.json || die
-
- has_version "x11-drivers/nvidia-drivers[wayland]" && NV_HAD_WAYLAND=1
}
pkg_postinst() {
@@ -468,6 +469,13 @@ pkg_postinst() {
ewarn "https://www.nvidia.com/object/IO_32667.html"
fi
+ if use !abi_x86_32 && [[ ${NV_HAD_ABI32} ]]; then
+ elog
+ elog "USE=abi_x86_32 is disabled, 32bit applications will not be able to"
+ elog "use nvidia-drivers for acceleration without it (e.g. commonly used"
+ elog "with app-emulation/wine-*). Re-enable if needed."
+ fi
+
if use wayland && use driver && [[ ! ${NV_HAD_WAYLAND} ]]; then
elog
elog "With USE=wayland, this version of ${PN} sets nvidia-drm.modeset=1"