mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
libx11: skip self if x11 not in DISTRO_FEATURES
This stops (most) x11 packages leaking into a non-x11 distro by mistake. (From OE-Core rev: 2f94ff4fdb66755ba2448794baea19315ff96273) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
254b09ede7
commit
0a5fe1cdd1
@@ -42,3 +42,8 @@ do_compile() {
|
||||
# Multiple libx11 derivatives from from this file and are selected by virtual/libx11
|
||||
# A world build should only build the correct version, not all of them.
|
||||
EXCLUDE_FROM_WORLD = "1"
|
||||
|
||||
python () {
|
||||
if not oe.utils.contains ('DISTRO_FEATURES', 'x11', True, False, d):
|
||||
raise bb.parse.SkipPackage("X11 not enabled for this DISTRO")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user