From a88718b6a6ec2a9429cbfd364d590ae69eb661e4 Mon Sep 17 00:00:00 2001 From: Jens Rehsack Date: Wed, 28 Oct 2015 18:58:24 +0100 Subject: Avoid parse time errors due to dependency on x11, for distros without x11 BitBake raises some errors when processing recipes that depend on x11 for distros that don't have x11 in DISTRO_FEATURES. To work around that issue, REQUIRED_DISTRO_FEATURES = "x11" (from distro_features_check.bbclass) has been set for the following recipes: * cacao (_class-target) * classpath (_class-target) * jamvm (_class-target) * openjdk-7-release That makes BitBake skip those recipes during the cache generation (they'd still be parsed, but ignored). This patch improves the idea from Mario Domenech Goulart Signed-off-by: Jens Rehsack Acked-by: Richard Leitner Signed-off-by: Otavio Salvador --- recipes-core/openjdk/openjdk-common.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'recipes-core/openjdk/openjdk-common.inc') diff --git a/recipes-core/openjdk/openjdk-common.inc b/recipes-core/openjdk/openjdk-common.inc index e3e597a..dc26522 100644 --- a/recipes-core/openjdk/openjdk-common.inc +++ b/recipes-core/openjdk/openjdk-common.inc @@ -17,9 +17,7 @@ DEPENDS_append_libc-uclibc = " virtual/libiconv " # because structure sizes and/or alignment may differ. DEPENDS_append = " qemu-native " -inherit java autotools gettext qemu pkgconfig distro_features_check - -REQUIRED_DISTRO_FEATURES = "x11" +inherit java autotools gettext qemu pkgconfig # OpenJDK uses slightly different names for certain arches. We need to know # this to create some files which are expected by the build. -- cgit v1.2.3-54-g00ecf