From 7a70d6baa47ffc8e424ef157699002e53be68f70 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Sat, 28 Jun 2025 23:24:48 -0400 Subject: [PATCH] app-emulation/wine-proton: require USE=sdl when udev is set USE=-sdl seems fine when udev is disabled, and issue is specific to Valve's changes (doesn't apply to wine-vanilla, nor older wine-proton). No major reason to try fixing this in wine-proton (Valve likely does not test/support this configuration and has a lot of custom code around sdl/udev for gamepad and other input support), so just add the REQ USE. Closes: https://bugs.gentoo.org/959263 Signed-off-by: Ionen Wolkens --- app-emulation/wine-proton/wine-proton-10.0.1f.ebuild | 8 ++++++-- app-emulation/wine-proton/wine-proton-9999.ebuild | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app-emulation/wine-proton/wine-proton-10.0.1f.ebuild b/app-emulation/wine-proton/wine-proton-10.0.1f.ebuild index 36f7f4c8045d7..1d58eebd659cd 100644 --- a/app-emulation/wine-proton/wine-proton-10.0.1f.ebuild +++ b/app-emulation/wine-proton/wine-proton-10.0.1f.ebuild @@ -30,8 +30,12 @@ IUSE=" llvm-libunwind +mono nls perl pulseaudio +sdl selinux +ssl udev +unwind usb v4l wayland video_cards_amdgpu +xcomposite xinerama " -# headless is not really supported with wine-proton, use normal Wine -REQUIRED_USE="|| ( X wayland )" +# headless is not really supported here, and udev needs sdl due to Valve's +# changes (bug #959263), use normal wine instead if need to avoid these +REQUIRED_USE=" + || ( X wayland ) + udev? ( sdl ) +" # tests are non-trivial to run, can hang easily, don't play well with # sandbox, and several need real opengl/vulkan or network access diff --git a/app-emulation/wine-proton/wine-proton-9999.ebuild b/app-emulation/wine-proton/wine-proton-9999.ebuild index 064a3387d86a1..626d02aae0bb2 100644 --- a/app-emulation/wine-proton/wine-proton-9999.ebuild +++ b/app-emulation/wine-proton/wine-proton-9999.ebuild @@ -33,8 +33,12 @@ IUSE=" llvm-libunwind +mono nls perl pulseaudio +sdl selinux +ssl udev +unwind usb v4l wayland video_cards_amdgpu +xcomposite xinerama " -# headless is not really supported with wine-proton, use normal Wine -REQUIRED_USE="|| ( X wayland )" +# headless is not really supported here, and udev needs sdl due to Valve's +# changes (bug #959263), use normal wine instead if need to avoid these +REQUIRED_USE=" + || ( X wayland ) + udev? ( sdl ) +" # tests are non-trivial to run, can hang easily, don't play well with # sandbox, and several need real opengl/vulkan or network access