Bug 1488585

Summary: rebuild sdl with Wayland support
Product: Red Hat Enterprise Linux 8 Reporter: Matthias Clasen <mclasen>
Component: SDL2Assignee: Wim Taymans <wtaymans>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: cschalle, csoriano, hdegoede, jkoten, lmiksik, mclasen, tpelka, wtaymans
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: SDL2-2.0.10-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 15:41:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1481401    

Description Matthias Clasen 2017-09-05 18:36:38 UTC
This is needed for Wayland support in 7.5

Comment 2 Wim Taymans 2017-10-09 09:19:40 UTC
RHEL has SDL 1.2.15, which was released in 2012 and has no wayland support.

It was the latest release of the 1.2 branch. The branch has seen some minor updates and fixes but no wayland support was ever added.

Is there anything in particular that depends on SDL 1.2.15 that needs wayland support?

Comment 4 Christian Fredrik Kalager Schaller 2019-07-24 17:29:39 UTC
We should probably update/add SDL2 to RHEL here as SDL1.x is only for legacy software at this point. Hans is looking at how to resolve Wayland and SDL1.x so I am adding him to the CC for this bug.

Comment 5 Hans de Goede 2019-07-29 15:04:22 UTC
As mentioned the SDL package in RHEL is SDL version 1.2 which does not support Wayland.

SDL2 does support Wayland, but with a number of caveats, for one by default it still uses X11 instead of Wayland under Wayland. Also only fullscreen apps which do not allow switching to windowed mode work because of: https://gitlab.gnome.org/GNOME/mutter/issues/217

SDL2 and SDL(1.2) are parallel installable and I believe SDL(1.2) is part of our ABI promise (not 100% sure), but even if it is not, too many apps depend on it that we can simply replace SDL-1.2 with SDL2.

We do already have SDL2 in RHEL8 and AFAIK it is build with Wayland support, but by default SDL2 uses X11/Xwayland, to use it with Wayland you can run an app like this:

SDL_VIDEODRIVER=wayland app

Note that we cannot really make SDL2 use Wayland by default until: https://gitlab.gnome.org/GNOME/mutter/issues/217 is resolved one way or another; and if we want to make it default we should probably reach out to upstream to ask them if there are other reasons why it is not the default yet.

I'm going to change the component for this bug to SDL2, since SDL-1.2 simply does not, and likely will never, support Wayland.

Comment 9 errata-xmlrpc 2020-04-28 15:41:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1631