diff --git a/meta-oe/recipes-graphics/xorg-lib/libx11.inc b/meta-oe/recipes-graphics/xorg-lib/libx11.inc index 2aa9700f2c..9f7e990ef7 100644 --- a/meta-oe/recipes-graphics/xorg-lib/libx11.inc +++ b/meta-oe/recipes-graphics/xorg-lib/libx11.inc @@ -45,3 +45,8 @@ do_compile_prepend() { cd ../../ ) || exit 1 } + +python () { + if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d): + raise bb.parse.SkipPackage("X11 not enabled for this DISTRO") +}