Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Undefine SDL2 DirectFB video driver #278

Merged
merged 1 commit into from Jan 18, 2024
Merged

Conversation

okias
Copy link
Contributor

@okias okias commented Jan 16, 2024

  1. we don't need it
  2. it's dropped in SDL 3
  3. it breaks compilation on Alpine and postmarketOS with SDL2 enabled (and the bug never going to get fixed on SDL2 side)

@okias okias changed the title Undefine SDL DirectFB Undefine SDL2 DirectFB video driver Jan 16, 2024
@sfan5
Copy link
Member

sfan5 commented Jan 17, 2024

This seems like a strange place to apply that fix.

As far as I understand SDL defines its features at compile time and saves them in SDL_config.h. This configuration is controlled by the SDL package maintainer (Alpine and/or postmarketOS in this case).
So if it is known that DirectFB is broken why not disable it in that place?

@okias
Copy link
Contributor Author

okias commented Jan 17, 2024

It's a bit weird place, thou:

I got inspired by the second link. This removed the support for the Irrlicht, while keeping software really using DirectFB in Alpine having SDL2 support available.

In general it could be patched in Alpine or DirectFB disabled in SDL2 https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/59109

@sfan5
Copy link
Member

sfan5 commented Jan 18, 2024

Personally I would prefer if the the distribution would patch this when needed but also this single line change doesn't hurt and has no downsides.
I'll ask someone else to decide.

@SmallJoker
Copy link
Member

My two cents: this line is OK for me but there should be a comment explaining why this is needed and when it can be removed in the future (e.g. forcing SDL3 dependency).

1. we don't need it
2. it's dropped in SDL 3
3. it breaks compilation on Alpine and postmarketOS with SDL2 enabled
   (and the bug never going to get fixed on SDL2 side)

Signed-off-by: David Heidelberg <david@ixit.cz>
@sfan5 sfan5 merged commit 9df2f0b into minetest:master Jan 18, 2024
15 checks passed
@okias okias deleted the undef-sdl-directfb branch January 18, 2024 23:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants