diff mbox series

[meta-oe,8/9] libsdl2-compat: make mutually exclusive with libsdl2

Message ID 20250421094832.67450-8-f_l_k@t-online.de
State New
Headers show
Series [meta-oe,1/9] libxmp: add recipe | expand

Commit Message

Markus Volk April 21, 2025, 9:48 a.m. UTC
libsdl2 and libsdl2-compat share the same headers.
Therefore, using one or the other is an either-or decision

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb b/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb
index de47f174b1..80334e9ad8 100644
--- a/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb
+++ b/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb
@@ -16,8 +16,13 @@  S = "${WORKDIR}/sdl2-compat-${PV}"
 
 DEPENDS += "libsdl3"
 
+PROVIDES = "libsdl2"
+
 inherit cmake pkgconfig upstream-version-is-even features_check
 
 REQUIRED_DISTRO_FEATURES = "opengl x11"
 
 FILES:${PN} += "${datadir}/licenses"
+
+RCONFLICTS:${PN} = "libsdl2"
+RPROVIDES:${PN} = "libsdl2"