Re: SDL3 needs an upstream patch to build

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

------------=_1785677759-1024790-7305
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 8/2/26 04:01, Zhang Wen ([email protected] via blfs-dev Mailing
List) wrote:
 > The upstream patch attached is needed for the SDL3 package, otherwide
 > it will produce the following error when building with the development
 > version book:
 >
 > ...

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.

- Zeckma

------------=_1785677759-1024790-7305
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
------------=_1785677759-1024790-7305--