Re: SDL3 needs an upstream patch to build

Zeckma ([email protected] via blfs-dev Mailing List) <[email protected]> Sun, 2 Aug 2026 07:53:20 -0600
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1785678810-4082961-7337
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 8/2/26 07:35, Zeckma wrote:
 > The problem is limited to src/core/unix/SDL_gtk.c, instead of what the
 > patch tries to apply to: src/video/wayland/SDL_waylandvideo.c.
 >
 > In SDL3-3.4.12, SDL_waylandvideo.c doesn't have any getresuid stuff
 > going on, but SDL_gtk.c does. However, upstream removed SDL_gtk.c
 > and put in extra logic in SDL_waylandvideo.c. This logic does involve
 > getresuid, in which the patch is then necessary as is. The SDL_gtk.c
 > file was deleted before the getresuid issue was resolved.
 >
 > Thus, there are two options:
 > 1). Fix SDL_gtk.c ourselves
 > 2). Do what 
https://github.com/libsdl-org/SDL/commit/e4f75bac451230d31695158ed35f459e7a04585c
 >     and
 > 
https://github.com/libsdl-org/SDL/commit/c15b6a14578bf6544cad834473d35bf2e38ff3fd
 >     do and remove SDL_gtk.c and fix up SDL_waylandvideo.c at the same 
time.
 >
 > I'm leaning into option 2 but we can try option 1.

I went with option 1 since it was less work doing it that way. Fixed at
98dc3c83a7d09539bf6b4049145e054314f7c5af. Thanks for letting us know!

- Zeckma

------------=_1785678810-4082961-7337
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page
------------=_1785678810-4082961-7337--