summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2015-12-17 18:40:50 -0800
committerOtavio Salvador <otavio@ossystems.com.br>2016-01-04 09:21:06 -0200
commitdfb21b449dd652b99bc4725796d143e8c9779cd6 (patch)
tree9c52cced2468169891b11703978eb3f26418f8b6 /README
parentec7b984fbd0662b7aa1707f229ab09c555bb2cf6 (diff)
downloadmeta-java-dfb21b449dd652b99bc4725796d143e8c9779cd6.tar.gz
openjdk-8-native: fix improper do_install and PROVIDES
We had: virtual/jar-native provided by fastjar-native virtual/java-native provided by cacao-native and jamvm-native virtual/javac-native provided by ecj-bootstrap-native Then openjdk-8-native added and also provides: virtual/java-native and virtual/javac-native (it also installs ${STAGING_BINDIR_NATIVE}/jar but doesn't add virtual/jar-native in the PROVIDES) which introduces circular dependencies, java-bootstrap-components.bbclass is to avoid the circular dependencies but it's not a correct way since it make two conflicted packages build into the same sysroot: DEPENDS_prepend_class-native = " ecj-bootstrap-native " DEPENDS_prepend_class-target = " virtual/javac-native " virtual/javac-native is provided by openjdk-8-native, and it assumed that ecj-bootstrap-native, fastjar-native and cacao-native/jamvm-native are always built before openjdk-8-native, then in the do_install of penjdk-8-native, it removes them from staging dirs first, then install (create symlinks for) these files in staging dirs directly, which results with empty sstate and builds from sstate cache or builds not in this assumption will fail. The fixes here includes: - Revert "meta-java: rely on well known bootstrap-path" in previous commit to remove the improper java-bootstrap-components.bbclass - Do not let openjdk-8-native provides jar, java and javac, just like what we do in icedtea7-native, which can provides but not to avoid circular dependencies and conflicts. - make cacao-native back to provide virtual/java-native, and ecj-bootstrap-native back to provide virtual/javac-native - Add back provider settings in README. - Remove the update-alternatives in openjdk-8-native, it doesn't work for native package. Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Diffstat (limited to 'README')
-rw-r--r--README12
1 files changed, 10 insertions, 2 deletions
diff --git a/README b/README
index 7658c23..259fa75 100644
--- a/README
+++ b/README
@@ -52,8 +52,16 @@ Main layer maintainers:
52Usage instructions 52Usage instructions
53------------------ 53------------------
54 54
55Since there is a clear bootstrap of the individual java-recipes, there is 55You should define at least the following variables in a distro include file or local.conf
56nothing to configure in conf/local.conf nor your individual distro/$name.conf. 56
57# Possible provider: cacao-initial-native and jamvm-initial-native
58PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
59
60# Possible provider: cacao-native and jamvm-native
61PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
62
63# Optional since there is only one provider for now
64PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
57 65
58Simply rely on openjdk-7-jre, openjdk-7, openjdk-8 or openjre-8. 66Simply rely on openjdk-7-jre, openjdk-7, openjdk-8 or openjre-8.
59 67