summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Rehsack <rehsack@gmail.com>2015-10-28 18:58:24 +0100
committerOtavio Salvador <otavio@ossystems.com.br>2015-10-29 09:02:28 -0200
commita88718b6a6ec2a9429cbfd364d590ae69eb661e4 (patch)
tree7b55fc01182e0c5802f35d0414053503b27c6dce
parentdf20f2d68ba63e0acfb54c1947bd24a01a74f444 (diff)
downloadmeta-java-a88718b6a6ec2a9429cbfd364d590ae69eb661e4.tar.gz
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 <mario@ossystems.com.br> Signed-off-by: Jens Rehsack <sno@netbsd.org> Acked-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--recipes-core/cacao/cacao_1.6.1.bb1
-rw-r--r--recipes-core/classpath/classpath.inc4
-rw-r--r--recipes-core/classpath/classpath_0.99.bb4
-rw-r--r--recipes-core/jamvm/jamvm.inc4
-rw-r--r--recipes-core/jamvm/jamvm_git.bb4
-rw-r--r--recipes-core/openjdk/openjdk-7_91b01-2.6.2.bb4
-rw-r--r--recipes-core/openjdk/openjdk-common.inc4
7 files changed, 16 insertions, 9 deletions
diff --git a/recipes-core/cacao/cacao_1.6.1.bb b/recipes-core/cacao/cacao_1.6.1.bb
index 564dd1e..f88293b 100644
--- a/recipes-core/cacao/cacao_1.6.1.bb
+++ b/recipes-core/cacao/cacao_1.6.1.bb
@@ -18,6 +18,7 @@ SRC_URI[sha256sum] = "eecc8bd1b528a028f43d9d1d0c06b97855bbf1d40e03826d911ebbc0b6
18inherit java autotools-brokensep update-alternatives pkgconfig distro_features_check 18inherit java autotools-brokensep update-alternatives pkgconfig distro_features_check
19 19
20REQUIRED_DISTRO_FEATURES = "x11" 20REQUIRED_DISTRO_FEATURES = "x11"
21REQUIRED_DISTRO_FEATURES_class-native := ""
21 22
22EXTRA_OECONF_class-native = "\ 23EXTRA_OECONF_class-native = "\
23 --enable-debug \ 24 --enable-debug \
diff --git a/recipes-core/classpath/classpath.inc b/recipes-core/classpath/classpath.inc
index 0f760fe..1bdfd78 100644
--- a/recipes-core/classpath/classpath.inc
+++ b/recipes-core/classpath/classpath.inc
@@ -7,9 +7,7 @@ LICENSE = "Classpath"
7 7
8PBN = "classpath" 8PBN = "classpath"
9 9
10inherit autotools java gettext distro_features_check 10inherit autotools java gettext
11
12REQUIRED_DISTRO_FEATURES = "x11"
13 11
14DEPENDS = "virtual/javac-native fastjar-native zip-native gmp antlr-native gtk+ gconf libxtst file" 12DEPENDS = "virtual/javac-native fastjar-native zip-native gmp antlr-native gtk+ gconf libxtst file"
15 13
diff --git a/recipes-core/classpath/classpath_0.99.bb b/recipes-core/classpath/classpath_0.99.bb
index 8b3a6e3..6aa3baa 100644
--- a/recipes-core/classpath/classpath_0.99.bb
+++ b/recipes-core/classpath/classpath_0.99.bb
@@ -1,5 +1,9 @@
1require classpath.inc 1require classpath.inc
2 2
3inherit distro_features_check
4
5REQUIRED_DISTRO_FEATURES = "x11"
6
3LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a" 7LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a"
4 8
5SRC_URI += " \ 9SRC_URI += " \
diff --git a/recipes-core/jamvm/jamvm.inc b/recipes-core/jamvm/jamvm.inc
index e00813e..5893cbc 100644
--- a/recipes-core/jamvm/jamvm.inc
+++ b/recipes-core/jamvm/jamvm.inc
@@ -21,9 +21,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \
21 " 21 "
22 22
23 23
24inherit java autotools update-alternatives pkgconfig distro_features_check 24inherit java autotools update-alternatives pkgconfig
25
26REQUIRED_DISTRO_FEATURES = "x11"
27 25
28# This uses 32 bit arm, so force the instruction set to arm, not thumb 26# This uses 32 bit arm, so force the instruction set to arm, not thumb
29ARM_INSTRUCTION_SET = "arm" 27ARM_INSTRUCTION_SET = "arm"
diff --git a/recipes-core/jamvm/jamvm_git.bb b/recipes-core/jamvm/jamvm_git.bb
index 07eed6a..63364aa 100644
--- a/recipes-core/jamvm/jamvm_git.bb
+++ b/recipes-core/jamvm/jamvm_git.bb
@@ -3,6 +3,10 @@
3 3
4require jamvm.inc 4require jamvm.inc
5 5
6inherit distro_features_check
7
8REQUIRED_DISTRO_FEATURES = "x11"
9
6SRCREV = "ebd11bde0a97b57f0d18938c6b65468d3c932719" 10SRCREV = "ebd11bde0a97b57f0d18938c6b65468d3c932719"
7PV = "1.5.5+1.6.0-devel+git${SRCPV}" 11PV = "1.5.5+1.6.0-devel+git${SRCPV}"
8 12
diff --git a/recipes-core/openjdk/openjdk-7_91b01-2.6.2.bb b/recipes-core/openjdk/openjdk-7_91b01-2.6.2.bb
index 2cc79d1..df91e4d 100644
--- a/recipes-core/openjdk/openjdk-7_91b01-2.6.2.bb
+++ b/recipes-core/openjdk/openjdk-7_91b01-2.6.2.bb
@@ -1,5 +1,9 @@
1require openjdk-7-release-91b01.inc 1require openjdk-7-release-91b01.inc
2 2
3inherit distro_features_check
4
5REQUIRED_DISTRO_FEATURES = "x11"
6
3PR = "${INC_PR}.1" 7PR = "${INC_PR}.1"
4 8
5SRC_URI[iced.md5sum] = "a16b3e800030db9d9b35f80dfd11883a" 9SRC_URI[iced.md5sum] = "a16b3e800030db9d9b35f80dfd11883a"
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 "
17# because structure sizes and/or alignment may differ. 17# because structure sizes and/or alignment may differ.
18DEPENDS_append = " qemu-native " 18DEPENDS_append = " qemu-native "
19 19
20inherit java autotools gettext qemu pkgconfig distro_features_check 20inherit java autotools gettext qemu pkgconfig
21
22REQUIRED_DISTRO_FEATURES = "x11"
23 21
24# OpenJDK uses slightly different names for certain arches. We need to know 22# OpenJDK uses slightly different names for certain arches. We need to know
25# this to create some files which are expected by the build. 23# this to create some files which are expected by the build.