commit:     a6fc6d87eb829a9c6cfb837cc2f05b817987f127
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 28 11:59:38 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Aug 28 12:13:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6fc6d87

app-emulation/wine-proton: warn if nvidia[abi_x86_32] is missing

Hard to know for sure if it's really used or not, but do not
want to introduce a kinda no-op VIDEO_CARDS on wine to actually
depend on it over a warning.

Less of an issue with mesa given other dependencies end up
requiring it (technically the dep is wrong given e.g. nvidia
would not need mesa[abi_x86_32], but well).

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 app-emulation/wine-proton/wine-proton-7.0.6.ebuild    | 7 +++++++
 app-emulation/wine-proton/wine-proton-8.0.3c.ebuild   | 7 +++++++
 app-emulation/wine-proton/wine-proton-8.0.9999.ebuild | 7 +++++++
 3 files changed, 21 insertions(+)

diff --git a/app-emulation/wine-proton/wine-proton-7.0.6.ebuild 
b/app-emulation/wine-proton/wine-proton-7.0.6.ebuild
index 2d64d08da94f..b0d8137fd450 100644
--- a/app-emulation/wine-proton/wine-proton-7.0.6.ebuild
+++ b/app-emulation/wine-proton/wine-proton-7.0.6.ebuild
@@ -336,6 +336,13 @@ pkg_preinst() {
 pkg_postinst() {
        [[ -v WINE_HAD_ANY_SLOT ]] || readme.gentoo_print_elog
 
+       if use abi_x86_32 && has_version 
'x11-drivers/nvidia-drivers[-abi_x86_32]'
+       then
+               ewarn "x11-drivers/nvidia-drivers is installed but is built 
without"
+               ewarn "USE=abi_x86_32 (ABI_X86=32), hardware acceleration with 
32bit"
+               ewarn "applications under ${PN} will likely not be usable."
+       fi
+
        eselect wine update --if-unset || die
 }
 

diff --git a/app-emulation/wine-proton/wine-proton-8.0.3c.ebuild 
b/app-emulation/wine-proton/wine-proton-8.0.3c.ebuild
index 28c682e79696..0a109f5bc674 100644
--- a/app-emulation/wine-proton/wine-proton-8.0.3c.ebuild
+++ b/app-emulation/wine-proton/wine-proton-8.0.3c.ebuild
@@ -348,6 +348,13 @@ pkg_preinst() {
 pkg_postinst() {
        [[ -v WINE_HAD_ANY_SLOT ]] || readme.gentoo_print_elog
 
+       if use abi_x86_32 && has_version 
'x11-drivers/nvidia-drivers[-abi_x86_32]'
+       then
+               ewarn "x11-drivers/nvidia-drivers is installed but is built 
without"
+               ewarn "USE=abi_x86_32 (ABI_X86=32), hardware acceleration with 
32bit"
+               ewarn "applications under ${PN} will likely not be usable."
+       fi
+
        eselect wine update --if-unset || die
 }
 

diff --git a/app-emulation/wine-proton/wine-proton-8.0.9999.ebuild 
b/app-emulation/wine-proton/wine-proton-8.0.9999.ebuild
index 53ac9ce2e64b..16f19e3a308d 100644
--- a/app-emulation/wine-proton/wine-proton-8.0.9999.ebuild
+++ b/app-emulation/wine-proton/wine-proton-8.0.9999.ebuild
@@ -352,6 +352,13 @@ pkg_preinst() {
 pkg_postinst() {
        [[ -v WINE_HAD_ANY_SLOT ]] || readme.gentoo_print_elog
 
+       if use abi_x86_32 && has_version 
'x11-drivers/nvidia-drivers[-abi_x86_32]'
+       then
+               ewarn "x11-drivers/nvidia-drivers is installed but is built 
without"
+               ewarn "USE=abi_x86_32 (ABI_X86=32), hardware acceleration with 
32bit"
+               ewarn "applications under ${PN} will likely not be usable."
+       fi
+
        eselect wine update --if-unset || die
 }
 

Reply via email to