]> code.ossystems Code Review - openembedded-core.git/commitdiff
gtk-icon-cache.bbclass: add features_check
authorChangqing Li <changqing.li@windriver.com>
Wed, 8 Jul 2020 07:13:31 +0000 (15:13 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jul 2020 11:41:07 +0000 (12:41 +0100)
'bitbake world -k' when DISTRO_FEATURES don't have x11 and wayland,
report errors:
Nothing PROVIDES 'gtk+3'
Nothing RPROVIDES 'blueman'

gtk+3 set ANY_OF_DISTRO_FEATURES, so add it here too
since we DEPENDS on it

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/gtk-icon-cache.bbclass

index dd394af27ca8d6a9f260588adc30981604859075..340a283851f7262fd15bd5ee71a217745fa27fe8 100644 (file)
@@ -1,5 +1,10 @@
 FILES_${PN} += "${datadir}/icons/hicolor"
 
+#gtk+3 reqiure GTK3DISTROFEATURES, DEPENDS on it make all the
+#recipes inherit this class require GTK3DISTROFEATURES
+inherit features_check
+ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
+
 DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' == 'hicolor-icon-theme']} \
             ${@['gdk-pixbuf', '']['${BPN}' == 'gdk-pixbuf']} \
             ${@['gtk+3', '']['${BPN}' == 'gtk+3']} \