commit:     cc304cc97db031a866c899634b40055f4116307b
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 16 10:23:30 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Feb 16 10:50:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc304cc9

app-emulation/wine-vanilla: optfeature on game-device-udev-rules

In 9.1+, wine defaults to using /dev/hidraw* for some extra gamepads,
most notably Sony DualShock4 which may come as unexpected. /dev/hidraw*
access is restricted to root by default leaving users with a situation
that seem like a wine regression.

Only a optfeature since most gamepads do not need this (xbox one,
about any 3rd party gamepads, etc...). Hopefully the optfeature is
noticed by affected users.

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

 app-emulation/wine-vanilla/wine-vanilla-9.1.ebuild  | 5 ++++-
 app-emulation/wine-vanilla/wine-vanilla-9.2.ebuild  | 5 ++++-
 app-emulation/wine-vanilla/wine-vanilla-9999.ebuild | 5 ++++-
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/app-emulation/wine-vanilla/wine-vanilla-9.1.ebuild 
b/app-emulation/wine-vanilla/wine-vanilla-9.1.ebuild
index c6109d4d3d6f..2b35c7b1d3f9 100644
--- a/app-emulation/wine-vanilla/wine-vanilla-9.1.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-9.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 MULTILIB_COMPAT=( abi_x86_{32,64} )
-inherit autotools flag-o-matic multilib multilib-build
+inherit autotools flag-o-matic optfeature multilib multilib-build
 inherit prefix toolchain-funcs wrapper
 
 WINE_GECKO=2.47.4
@@ -415,6 +415,9 @@ pkg_postinst() {
                ewarn "applications under ${PN} will likely not be usable."
        fi
 
+       optfeature "/dev/hidraw* access used for *some* controllers (e.g. 
DualShock4)" \
+               games-util/game-device-udev-rules
+
        eselect wine update --if-unset || die
 }
 

diff --git a/app-emulation/wine-vanilla/wine-vanilla-9.2.ebuild 
b/app-emulation/wine-vanilla/wine-vanilla-9.2.ebuild
index cf08e9f83489..f9fd23e3c79a 100644
--- a/app-emulation/wine-vanilla/wine-vanilla-9.2.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-9.2.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 MULTILIB_COMPAT=( abi_x86_{32,64} )
-inherit autotools flag-o-matic multilib multilib-build
+inherit autotools flag-o-matic optfeature multilib multilib-build
 inherit prefix toolchain-funcs wrapper
 
 WINE_GECKO=2.47.4
@@ -415,6 +415,9 @@ pkg_postinst() {
                ewarn "applications under ${PN} will likely not be usable."
        fi
 
+       optfeature "/dev/hidraw* access used for *some* controllers (e.g. 
DualShock4)" \
+               games-util/game-device-udev-rules
+
        eselect wine update --if-unset || die
 }
 

diff --git a/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild 
b/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
index cf08e9f83489..f9fd23e3c79a 100644
--- a/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
+++ b/app-emulation/wine-vanilla/wine-vanilla-9999.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 MULTILIB_COMPAT=( abi_x86_{32,64} )
-inherit autotools flag-o-matic multilib multilib-build
+inherit autotools flag-o-matic optfeature multilib multilib-build
 inherit prefix toolchain-funcs wrapper
 
 WINE_GECKO=2.47.4
@@ -415,6 +415,9 @@ pkg_postinst() {
                ewarn "applications under ${PN} will likely not be usable."
        fi
 
+       optfeature "/dev/hidraw* access used for *some* controllers (e.g. 
DualShock4)" \
+               games-util/game-device-udev-rules
+
        eselect wine update --if-unset || die
 }
 

Reply via email to