[OE-core] [PATCH] libsdl: Only enable X11 support when the DISTRO supports it

Otavio Salvador otavio at ossystems.com.br
Mon Mar 14 18:46:50 UTC 2016


To allow the use of Framebuffer-only distributions we cannot force the
existence of X11. This fixes:

,----
| ERROR: Nothing PROVIDES 'virtual/libx11-native' (but
|     virtual:native:.../meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
|     DEPENDS on or otherwise requires it)
`----

Error catch by O.S. Systems' autobuilder.

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---

 meta/recipes-graphics/libsdl/libsdl_1.2.15.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb b/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
index 9c0ec54..775abb9 100644
--- a/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
+++ b/meta/recipes-graphics/libsdl/libsdl_1.2.15.bb
@@ -46,7 +46,7 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d
                    ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \
                    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
-PACKAGECONFIG_class-native = "x11"
+PACKAGECONFIG_class-native = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
 PACKAGECONFIG_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
 
 PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib"
-- 
2.7.3




More information about the Openembedded-core mailing list