openjdk-8: add recipes for openjdk-8 and openjre-8
PATCH v7 2/2 openjdk-8: add recipes for openjdk-8 and openjre-8
This adds openjdk-8 for native and target builds and allows a stripped openjre-8 being built as well instead of trying to cherry-pick jre components from jdk-image.
The recipes allow building openjdk-8 with or without:
* x11
* cups
* alsa/pulseaudio
and let packager enable unlimited-crypto, if desired.
To support certificate based java libraries, cacerts is created based on ca-certificates from OE-core.
Since there can be only one PROVIDES for virtual/java-native and virtual/javac-native, move the provides to openjdk-8-native (I think everyone agrees it's a better choice than ecj-bootstrap-native).
Plus: Applying a fix from openjdk-9 repository which fixes build issues using gcc5
--- README | 13 +- recipes-core/cacao/cacao_1.6.1.bb | 2 +- recipes-core/ecj/ecj-bootstrap-native.bb | 2 - recipes-core/openjdk/openjdk-8-common.inc | 231 ++ recipes-core/openjdk/openjdk-8-cross.inc | 200 ++ recipes-core/openjdk/openjdk-8-native.inc | 82 + recipes-core/openjdk/openjdk-8-native_72b05.bb | 28 + recipes-core/openjdk/openjdk-8-release-72b05.inc | 87 + recipes-core/openjdk/openjdk-8_72b05.bb | 36 + recipes-core/openjdk/openjre-8_72b05.bb | 30 + recipes-core/openjdk/patches-openjdk-8/LICENSE | 347 +++ .../dont-expect-fqpn-for-make.patch | 18 + .../filter-aclocal-copy-too.patch | 11 + recipes-core/openjdk/patches-openjdk-8/jvm.cfg | 41 + .../openjdk8-find-compiler-fix-env-respect.patch | 140 + .../openjdk8-fix-shark-build.patch | 453 ++++ .../openjdk8-fix-shark-stdc++11.patch | 2730 ++++++++++++++++++++ .../openjdk8-no-genx11-in-headless.patch | 17 + .../openjdk8-no-unused-deps.patch | 94 + ...o-in-favour-of-openembedded-package-split.patch | 120 + .../openjdk8-restrict-to-staging-dir.patch | 11 + ..._than_returning_address_of_local_variable.patch | 23 + .../remove-shell-variables-from-autoheader.patch | 31 + 23 files changed, 4735 insertions(+), 12 deletions(-) create mode 100644 recipes-core/openjdk/openjdk-8-common.inc create mode 100644 recipes-core/openjdk/openjdk-8-cross.inc create mode 100644 recipes-core/openjdk/openjdk-8-native.inc create mode 100644 recipes-core/openjdk/openjdk-8-native_72b05.bb create mode 100644 recipes-core/openjdk/openjdk-8-release-72b05.inc create mode 100644 recipes-core/openjdk/openjdk-8_72b05.bb create mode 100644 recipes-core/openjdk/openjre-8_72b05.bb create mode 100644 recipes-core/openjdk/patches-openjdk-8/LICENSE create mode 100644 recipes-core/openjdk/patches-openjdk-8/dont-expect-fqpn-for-make.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/filter-aclocal-copy-too.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/jvm.cfg create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-find-compiler-fix-env-respect.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-stdc++11.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-no-genx11-in-headless.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-no-unused-deps.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-prevent-debuginfo-in-favour-of-openembedded-package-split.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-restrict-to-staging-dir.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch create mode 100644 recipes-core/openjdk/patches-openjdk-8/remove-shell-variables-from-autoheader.patch
README +4 -9
@@ -52,15 +52,10 @@ Main layer maintainers: Usage instructions ------------------ -You should define at least the following variables in a distro include file or local.conf +Since there is a clear bootstrap of the individual java-recipes, there is +nothing to configure in conf/local.conf nor your individual distro/$name.conf. -PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native" - -PREFERRED_PROVIDER_virtual/java-native = "jamvm-native" -PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native" - -#Sometimes the following is needed: -PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre" +Simply rely on openjdk-7-jre, openjdk-7, openjdk-8 or openjre-8. For conf/bblayers.conf you have to add
@@ -70,7 +65,7 @@ BBLAYERS ?= " \ path_to_source/sources/meta-java \ " -Please note that libstdc++ static is needed on your host to compile icedtea6/7-native +Please note that libstdc++ static is needed on your host to compile icedtea7-native (install libstdc++-static on a Fedora). For debian-based distributions you need the libstdc++6-$compilerversion-dev package.
recipes-core/cacao/cacao_1.6.1.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" SECTION = "interpreters" DEPENDS_class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-native bdwgc-native" -PROVIDES_class-native = "virtual/java-native" +#PROVIDES_class-native = "virtual/java-native" DEPENDS_class-target = " virtual/javac-native "
recipes-core/ecj/ecj-bootstrap-native.bb +0 -2
@@ -14,8 +14,6 @@ PR = "r1" DEPENDS = "libecj-bootstrap-native cacao-native" -PROVIDES = "virtual/javac-native" - SRC_URI = "file://ecj.in" S = "${WORKDIR}"
recipes-core/openjdk/openjdk-8-common.inc new file +231 -0
231 lines not on this page · raw message
recipes-core/openjdk/openjdk-8-cross.inc new file +200 -0
200 lines not on this page · raw message
recipes-core/openjdk/openjdk-8-native.inc new file +82 -0
82 lines not on this page · raw message
recipes-core/openjdk/openjdk-8-native_72b05.bb new file +28 -0
@@ -0,0 +1,28 @@ +require openjdk-8-release-72b05.inc +require openjdk-8-native.inc + +PROVIDES = "virtual/java-native virtual/javac-native" + +inherit update-alternatives + +ALTERNATIVE_${PN} = "java javac jar pack200 unpack200 keytool" +ALTERNATIVE_LINK[java] = "${bindir}/java" +ALTERNATIVE_TARGET[java] = "${JDK_HOME}/bin/java" +ALTERNATIVE_PRIORITY[java] = "100" +ALTERNATIVE_LINK[javac] = "${bindir}/javac" +ALTERNATIVE_TARGET[javac] = "${JDK_HOME}/bin/javac" +ALTERNATIVE_PRIORITY[javac] = "100" +ALTERNATIVE_LINK[jar] = "${bindir}/jar" +ALTERNATIVE_TARGET[jar] = "${JDK_HOME}/bin/jar" +ALTERNATIVE_PRIORITY[jar] = "100" +ALTERNATIVE_LINK[pack200] = "${bindir}/pack200" +ALTERNATIVE_TARGET[pack200] = "${JDK_HOME}/bin/pack200" +ALTERNATIVE_PRIORITY[pack200] = "100" +ALTERNATIVE_LINK[unpack200] = "${bindir}/unpack200" +ALTERNATIVE_TARGET[unpack200] = "${JDK_HOME}/bin/unpack200" +ALTERNATIVE_PRIORITY[unpack200] = "100" +ALTERNATIVE_LINK[keytool] = "${bindir}/keytool" +ALTERNATIVE_TARGET[keytool] = "${JDK_HOME}/bin/keytool" +ALTERNATIVE_PRIORITY[keytool] = "100" + +# PR = "${INC_PR}.1"
recipes-core/openjdk/openjdk-8-release-72b05.inc new file +87 -0
87 lines not on this page · raw message
recipes-core/openjdk/openjdk-8_72b05.bb new file +36 -0
@@ -0,0 +1,36 @@ +require openjdk-8-release-72b05.inc +require openjdk-8-cross.inc + +# some patches extracted from http://cr.openjdk.java.net/~rkennke/shark-build-hotspot/webrev.01/hotspot.patch +# reported via http://mail.openjdk.java.net/pipermail/build-dev/2015-January/013972.html +# by Roman Kennke (rkennke at redhat.com) +PATCHES_URI_append = "\ + file://openjdk8-restrict-to-staging-dir.patch;apply=no \ + file://openjdk8-fix-shark-build.patch;apply=no \ + file://openjdk8-fix-shark-stdc++11.patch;apply=no \ + file://openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch;apply=no \ +" + +do_install() { + do_install_jdk +} + +PACKAGES_append = " \ + ${JDKPN}-demo-dbg \ + ${JDKPN}-demo \ + ${JDKPN}-source \ +" + +RPROVIDES_${JDKPN} = "java2-vm" +PROVIDES_${JDKPN} = "java2-vm" +RPROVIDES_${JDKPN} = "java2-runtime" +PROVIDES_${JDKPN} = "java2-runtime" + +inherit update-alternatives + +ALTERNATIVE_${PN} = "java" +ALTERNATIVE_LINK = "${bindir}/java" +ALTERNATIVE_TARGET = "${JDK_HOME}/bin/java" +ALTERNATIVE_PRIORITY = "100" + +# PR = "${INC_PR}.1"
recipes-core/openjdk/openjre-8_72b05.bb new file +30 -0
@@ -0,0 +1,30 @@ +require openjdk-8-release-72b05.inc +require openjdk-8-cross.inc + +# some patches extracted from http://cr.openjdk.java.net/~rkennke/shark-build-hotspot/webrev.01/hotspot.patch +# reported via http://mail.openjdk.java.net/pipermail/build-dev/2015-January/013972.html +# by Roman Kennke (rkennke at redhat.com) +PATCHES_URI_append = "\ + file://openjdk8-restrict-to-staging-dir.patch;apply=no \ + file://openjdk8-fix-shark-build.patch;apply=no \ + file://openjdk8-fix-shark-stdc++11.patch;apply=no \ + file://openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch;apply=no \ +" + +do_install() { + do_install_jre +} + +RPROVIDES_${JREPN} = "java2-vm" +PROVIDES_${JREPN} = "java2-vm" +RPROVIDES_${JREPN} = "java2-runtime" +PROVIDES_${JREPN} = "java2-runtime" + +inherit update-alternatives + +ALTERNATIVE_${PN} = "java" +ALTERNATIVE_LINK = "${bindir}/java" +ALTERNATIVE_TARGET = "${JRE_HOME}/bin/java" +ALTERNATIVE_PRIORITY = "100" + +# PR = "${INC_PR}.1"
recipes-core/openjdk/patches-openjdk-8/LICENSE new file +347 -0
347 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/dont-expect-fqpn-for-make.patch new file +18 -0
@@ -0,0 +1,18 @@ +--- common/autoconf/basics.m4.orig 2015-08-17 19:05:13.122672019 +0200 ++++ common/autoconf/basics.m4 2015-08-17 19:13:01.482673782 +0200 +@@ -549,10 +549,12 @@ + # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. + if test "x$MAKE" != x; then + # User has supplied a make, test it. +- if test ! -f "$MAKE"; then +- AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not found.]) ++ if test -a `dirname "$MAKE"` = "." -a ! -f "$MAKE"; then ++ AC_PATH_PROGS(CHECK_MAKE, $MAKE) ++ else ++ CHECK_MAKE="${MAKE}" + fi +- BASIC_CHECK_MAKE_VERSION("$MAKE", [user supplied MAKE=$MAKE]) ++ BASIC_CHECK_MAKE_VERSION("$CHECK_MAKE", [user supplied MAKE=$MAKE]) + if test "x$FOUND_MAKE" = x; then + AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer.]) + fi
recipes-core/openjdk/patches-openjdk-8/filter-aclocal-copy-too.patch new file +11 -0
@@ -0,0 +1,11 @@ +--- common/autoconf/basics.m4.orig 2015-08-17 18:31:50.598664481 +0200 ++++ common/autoconf/basics.m4 2015-08-17 18:31:57.554664507 +0200 +@@ -442,7 +442,7 @@ + files_present=`$LS $OUTPUT_ROOT` + # Configure has already touched config.log and confdefs.h in the current dir when this check + # is performed. +- filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ ++ filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's,aclocal-copy,,g' -e 's/ //g' \ + | $TR -d '\n'` + if test "x$filtered_files" != x; then + AC_MSG_NOTICE([Current directory is $CURDIR.])
recipes-core/openjdk/patches-openjdk-8/jvm.cfg new file +41 -0
41 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-find-compiler-fix-env-respect.patch new file +140 -0
140 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build.patch new file +453 -0
453 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-stdc++11.patch new file +2730 -0
1,254 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-no-genx11-in-headless.patch new file +17 -0
Lines of this file are not shown. View the raw message.
recipes-core/openjdk/patches-openjdk-8/openjdk8-no-unused-deps.patch new file +94 -0
94 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-prevent-debuginfo-in-favour-of-openembedded-package-split.patch new file +120 -0
120 lines not on this page · raw message
recipes-core/openjdk/patches-openjdk-8/openjdk8-restrict-to-staging-dir.patch new file +11 -0
Lines of this file are not shown. View the raw message.
recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch new file +23 -0
Lines of this file are not shown. View the raw message.
recipes-core/openjdk/patches-openjdk-8/remove-shell-variables-from-autoheader.patch new file +31 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
--
1.9.1
--
Jens Rehsack - [email protected]
Part of the diff is not shown here. View the raw message.
Hi Jens,
Quoted 14 lines · Jens Rehsack
This adds openjdk-8 for native and target builds and allows a stripped openjre-8 being built as well instead of trying to cherry-pick jre components from jdk-image.
The recipes allow building openjdk-8 with or without:
* x11
* cups
* alsa/pulseaudio
and let packager enable unlimited-crypto, if desired.To support certificate based java libraries, cacerts is created based on ca-certificates from OE-core.
Quoted 7 lines
Since there can be only one PROVIDES for virtual/java-native and virtual/javac-native, move the provides to openjdk-8-native (I think everyone agrees it's a better choice than ecj-bootstrap-native).
Plus: Applying a fix from openjdk-9 repository which fixes build issues using gcc5
Signed-off-by Jens Rehsack <[email protected]>
<snip>
I have pushed these two patches to the master branch. Thanks a lot for this work.
Best Regards,
Maxin