summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md50
-rw-r--r--README42
-rw-r--r--classes/java-library.bbclass10
-rw-r--r--classes/openjdk-build-helper.bbclass8
-rw-r--r--classes/openjdk-test-image.bbclass2
-rw-r--r--classes/openjre-test-image.bbclass2
-rw-r--r--conf/layer.conf4
-rwxr-xr-xdocs/update8checksums.sh2
-rw-r--r--lib/oeqa/runtime/cases/java.py1
-rw-r--r--lib/oeqa/runtime/cases/javac.py4
-rw-r--r--recipes-core/ant/ant-native_1.8.1.bb6
-rw-r--r--recipes-core/antlr/antlr_2.7.7.bb6
-rw-r--r--recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb13
-rw-r--r--recipes-core/cacao/cacao-initial-native_0.98.bb4
-rw-r--r--recipes-core/cacao/cacao/0001-java.in-Do-not-use-hardcode-paths.patch (renamed from recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch)33
-rw-r--r--recipes-core/cacao/cacao/0002-cacao-use-system-s-boehm-garbage-collector.patch (renamed from recipes-core/cacao/cacao-2d6f6c14daf9/system-boehm-gc.patch)21
-rw-r--r--recipes-core/cacao/cacao_git.bb (renamed from recipes-core/cacao/cacao_2d6f6c14daf9.bb)36
-rw-r--r--recipes-core/classpath/classpath-features-check.inc6
-rw-r--r--recipes-core/classpath/classpath-initial-native_0.93.bb2
-rw-r--r--recipes-core/classpath/classpath-native.inc2
-rw-r--r--recipes-core/classpath/classpath-native_0.99.bb2
-rw-r--r--recipes-core/classpath/classpath.inc40
-rw-r--r--recipes-core/classpath/classpath_0.99.bb4
-rw-r--r--recipes-core/cup/cup_0.10k.bb8
-rw-r--r--recipes-core/ecj/libecj-bootstrap.inc3
-rw-r--r--recipes-core/fastjar/fastjar.inc6
-rw-r--r--recipes-core/icedtea/icedtea7-native.inc72
-rw-r--r--recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-replace-sys-sysctl.patch22
-rw-r--r--recipes-core/icedtea/openjdk-7-release-03b147.inc46
-rw-r--r--recipes-core/jakarta-commons/commons-beanutils_1.8.0.bb2
-rw-r--r--recipes-core/jakarta-commons/commons-configuration_1.5.bb28
-rw-r--r--recipes-core/jakarta-commons/commons-digester_1.8.bb2
-rw-r--r--recipes-core/jakarta-commons/commons-discovery_0.4.bb2
-rw-r--r--recipes-core/jakarta-commons/commons-el_1.0.bb2
-rw-r--r--recipes-core/jakarta-commons/commons-fileupload_1.2.1.bb2
-rw-r--r--recipes-core/jakarta-commons/commons-httpclient_3.1.bb4
-rw-r--r--recipes-core/jakarta-commons/commons-jxpath_1.3.bb17
-rw-r--r--recipes-core/jakarta-commons/commons-net_1.4.1.bb4
-rw-r--r--recipes-core/jakarta-libs/bsf_2.4.0.bb2
-rw-r--r--recipes-core/jamvm/jamvm-initial-native_1.4.5.bb6
-rw-r--r--recipes-core/jamvm/jamvm.inc28
-rw-r--r--recipes-core/jamvm/jamvm_git.bb4
-rw-r--r--recipes-core/javasqlite/javasqlite_20150419.bb14
-rw-r--r--recipes-core/jcraft/jsch_0.1.40.bb8
-rw-r--r--recipes-core/jcraft/jzlib_1.0.7.bb2
-rw-r--r--recipes-core/jdepend/jdepend_2.9.1.bb4
-rw-r--r--recipes-core/jikes/jikes_1.22.bb10
-rw-r--r--recipes-core/jlex/jlex_1.2.6.bb15
-rw-r--r--recipes-core/junit/junit_3.8.2.bb4
-rw-r--r--recipes-core/libmatthew/libmatthew.inc25
-rw-r--r--recipes-core/openjdk/openjdk-7-common.inc81
-rw-r--r--recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb2
-rw-r--r--recipes-core/openjdk/openjdk-8-common.inc40
-rw-r--r--recipes-core/openjdk/openjdk-8-cross.inc19
-rw-r--r--recipes-core/openjdk/openjdk-8-native.inc27
-rw-r--r--recipes-core/openjdk/openjdk-8-native_272.bb (renamed from recipes-core/openjdk/openjdk-8-native_252.bb)0
-rw-r--r--recipes-core/openjdk/openjdk-8-release-aarch32.inc48
-rw-r--r--recipes-core/openjdk/openjdk-8-release-aarch64.inc34
-rw-r--r--recipes-core/openjdk/openjdk-8-release-common.inc91
-rw-r--r--recipes-core/openjdk/openjdk-8-release.inc20
-rw-r--r--recipes-core/openjdk/openjdk-8_272.bb (renamed from recipes-core/openjdk/openjdk-8_252.bb)27
-rw-r--r--recipes-core/openjdk/openjre-8_272.bb (renamed from recipes-core/openjdk/openjre-8_252.bb)22
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch11
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch20
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch17
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch219
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch10
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch24
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch12
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch172
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1004-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1005-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch)19
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1005-hotspot-Zero-build-requires-disabled-warnings.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Zero-build-requires-disabled-warnings.patch)26
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Missing-return-statement-in-__sync_val_compa.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch)16
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Turn-on-the-Wreturn-type-warning.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1008-hotspot-Turn-on-the-Wreturn-type-warning.patch)74
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1009-hotspot-handle-format-error-for-GCC-7.patch)14
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1009-hotspot-fix-adlc-flags.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch)6
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-shark-build-common.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1011-hotspot-fix-shark-build-common.patch)18
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1011-hotspot-restrict-to-staging-dir.patch (renamed from recipes-core/openjdk/patches-openjdk-8/1012-hotspot-restrict-to-staging-dir.patch)6
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1012-hotspot-enable-Wno-error.patch31
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1013-hotspot-add-missing-includes-for-shark-build-pt2.patch32
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1201-hotspot-aarch32-fix-missing-return-values.patch (renamed from recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-missing-return-values.patch)16
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1202-hotspot-aarch32-remaining-musl-fixes.patch (renamed from recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-remaining-musl-fixes.patch)11
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1401-hotspot-aarch64-Add-missing-return-value-to-LIR_Asse.patch (renamed from recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-Fix-further-functions-with-a-missing.patch)18
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/1402-hotspot-aarch64-remaining-musl-fixes.patch (renamed from recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-remaining-musl-fixes.patch)18
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch20
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch28
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch20
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch54
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch24
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch14
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch12
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch28
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch26
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch13
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-shark-build-pt2.patch11
-rw-r--r--recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build-pt2.patch11
-rw-r--r--recipes-core/rhino/rhino_1.7r4.bb18
-rw-r--r--recipes-core/servlet-api/jsp2.0_5.5.26.bb2
-rw-r--r--recipes-core/xalan-j/xalan-j_2.7.1.bb6
-rw-r--r--recipes-core/xerces-j/xerces-j_2.11.0.bb12
-rw-r--r--recipes-core/xml-commons/dom4j_1.6.1.bb2
-rw-r--r--recipes-core/xml-commons/jaxen_1.1.6.bb4
-rw-r--r--recipes-core/xml-commons/jaxme_0.5.2.bb77
-rw-r--r--recipes-core/xml-commons/jdom_1.1.3.bb2
-rw-r--r--recipes-core/xml-commons/xom_1.2.10.bb4
-rw-r--r--recipes-core/xml-commons/xpp2_2.1.10.bb2
-rw-r--r--recipes-core/xml-commons/xpp3_1.1.3.4.O.bb6
-rw-r--r--recipes-extended/dbus/dbus-java_2.7.bb16
-rw-r--r--recipes-extended/rxtx/rxtx_2.2.0.bb18
-rw-r--r--recipes-images/images/openjdk-7-test-image.bb2
-rw-r--r--recipes-images/images/openjdk-8-test-image.bb2
-rw-r--r--recipes-images/images/openjre-7-test-image.bb2
-rw-r--r--recipes-images/images/openjre-8-test-image.bb2
122 files changed, 1221 insertions, 1150 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..5420797
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,50 @@
1meta-java contribution guidelines
2=================================
3
4Contributing via GitLab.com
5---------------------------
6
7To contribute to this layer you may fork the repository and create a merge
8request at https://gitlab.com/meta-java/meta-java.
9
10Please refer to: https://docs.gitlab.com/ee/user/project/merge_requests/
11for more information on merge requests in GitLab.
12
13Contributing via E-Mail
14-----------------------
15
16To contribute to this layer you may submit the patches for review to the
17mailing list (openembedded-devel@lists.openembedded.org).
18
19Please refer to:
20https://wiki.yoctoproject.org/wiki/Contribution_Guidelines#General_Information
21
22for some useful guidelines to be followed when submitting patches.
23
24Mailing list:
25
26 http://lists.openembedded.org/mailman/listinfo/openembedded-devel
27
28Source code:
29
30 git://git.yoctoproject.org/meta-java
31 http://git.yoctoproject.org/git/meta-java
32
33When creating single patches, please use something like:
34
35 git format-patch -M -s --subject-prefix='meta-java][PATCH' -1
36
37When creating a patch series, please add a cover letter describing it shortly.
38Therefore use something like:
39
40 git format-patch -M -s --cover-letter --subject-prefix='meta-java][PATCH' origin
41
42When sending patches, please use something like:
43
44 git send-email --to openembedded-devel@lists.openembedded.org <generated patch(es)>
45
46Please add the main layer maintainers to CC:
47
48 Henning Heinold <henning@itconsulting-heinold.de>
49 Otavio Salvador <otavio@ossystems.com.br>
50 Richard Leitner <richard.leitner@skidata.com>
diff --git a/README b/README
index f97378d..9c987fb 100644
--- a/README
+++ b/README
@@ -25,45 +25,7 @@ revision: HEAD
25For use with a specific Yocto Project release please refer to the corresponding 25For use with a specific Yocto Project release please refer to the corresponding
26git branches. 26git branches.
27 27
28Contributing 28Guides on how to contribute to meta-java are described in CONTRIBUTING.md.
29------------
30
31To contribute to this layer you should submit the patches for review to the
32mailing list (openembedded-devel@lists.openembedded.org).
33
34Please refer to:
35https://wiki.yoctoproject.org/wiki/Contribution_Guidelines#General_Information
36
37for some useful guidelines to be followed when submitting patches.
38
39Mailing list:
40
41 http://lists.openembedded.org/mailman/listinfo/openembedded-devel
42
43Source code:
44
45 git://git.yoctoproject.org/meta-java
46 http://git.yoctoproject.org/git/meta-java
47
48When creating single patches, please use something like:
49
50 git format-patch -M -s --subject-prefix='meta-java][PATCH' -1
51
52When creating a patch series, please add a cover letter describing it shortly.
53Therefore use something like:
54
55 git format-patch -M -s --cover-letter --subject-prefix='meta-java][PATCH' origin
56
57When sending patches, please use something like:
58
59 git send-email --to openembedded-devel@lists.openembedded.org <generated patch(es)>
60
61Main layer maintainers:
62
63 Henning Heinold <henning@itconsulting-heinold.de>
64 Maxin John <maxin.john@intel.com>
65 Otavio Salvador <otavio@ossystems.com.br>
66 Richard Leitner <richard.leitner@skidata.com>
67 29
68Testing 30Testing
69------- 31-------
@@ -105,7 +67,7 @@ Known Limitations/Bugs
105 +--------+-----------------+-----------------+-----------------+ 67 +--------+-----------------+-----------------+-----------------+
106 68
107If you encounter any other problems or bugs please report them to our mailing 69If you encounter any other problems or bugs please report them to our mailing
108list at openembedded-devel@lists.openembedded.org. 70list at yocto-patches@lists.yoctoproject.org.
109 71
110Usage instructions 72Usage instructions
111------------------ 73------------------
diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass
index 2ce96ab..67541d2 100644
--- a/classes/java-library.bbclass
+++ b/classes/java-library.bbclass
@@ -40,11 +40,11 @@ def java_package_name(d):
40 40
41JPN ?= "${@java_package_name(d)}" 41JPN ?= "${@java_package_name(d)}"
42 42
43DEPENDS_prepend = "virtual/javac-native fastjar-native " 43DEPENDS:prepend = "virtual/javac-native fastjar-native "
44 44
45PACKAGES += "${JPN}" 45PACKAGES += "${JPN}"
46 46
47FILES_${JPN} = "${datadir_java}" 47FILES:${JPN} = "${datadir_java}"
48 48
49# File name of the libraries' main Jar file 49# File name of the libraries' main Jar file
50JARFILENAME = "${BP}.jar" 50JARFILENAME = "${BP}.jar"
@@ -54,15 +54,15 @@ ALTJARFILENAMES = "${BPN}.jar"
54 54
55# Java "source" distributions often contain precompiled things 55# Java "source" distributions often contain precompiled things
56# we want to delete first. 56# we want to delete first.
57do_removebinaries() { 57do_deletebinaries() {
58 find ${WORKDIR} ! -path "${RECIPE_SYSROOT}/*" ! -path "${RECIPE_SYSROOT_NATIVE}/*" \ 58 find ${WORKDIR} ! -path "${RECIPE_SYSROOT}/*" ! -path "${RECIPE_SYSROOT_NATIVE}/*" \
59 -name "*.jar" -exec rm {} \; 59 -name "*.jar" -exec rm {} \;
60 find ${WORKDIR} ! -path "${RECIPE_SYSROOT}/*" ! -path "${RECIPE_SYSROOT_NATIVE}/*" \ 60 find ${WORKDIR} ! -path "${RECIPE_SYSROOT}/*" ! -path "${RECIPE_SYSROOT_NATIVE}/*" \
61 -name "*.class" -exec rm {} \; 61 -name "*.class" -exec rm {} \;
62} 62}
63 63
64addtask removebinaries after do_unpack before do_patch 64addtask deletebinaries after do_unpack before do_patch
65 65
66do_install_append() { 66do_install:append() {
67 oe_jarinstall ${JARFILENAME} ${ALTJARFILENAMES} 67 oe_jarinstall ${JARFILENAME} ${ALTJARFILENAMES}
68} 68}
diff --git a/classes/openjdk-build-helper.bbclass b/classes/openjdk-build-helper.bbclass
index 4e334c2..1aeca8d 100644
--- a/classes/openjdk-build-helper.bbclass
+++ b/classes/openjdk-build-helper.bbclass
@@ -2,8 +2,8 @@
2# passing a valid ${PARALLEL_MAKE} to it. OTOH OpenJDK's makefiles are 2# passing a valid ${PARALLEL_MAKE} to it. OTOH OpenJDK's makefiles are
3# parallelizable and we need ${PARALLEL_MAKE} to derive the proper value. 3# parallelizable and we need ${PARALLEL_MAKE} to derive the proper value.
4# The base for this quirk is that GNU Make only considers the last "-j" option. 4# The base for this quirk is that GNU Make only considers the last "-j" option.
5EXTRA_OEMAKE_remove_task-compile = "${PARALLEL_MAKE}" 5EXTRA_OEMAKE:remove:task-compile = "${PARALLEL_MAKE}"
6EXTRA_OEMAKE_remove_task-install = "${PARALLEL_MAKEINST}" 6EXTRA_OEMAKE:remove:task-install = "${PARALLEL_MAKEINST}"
7 7
8# OpenJDK supports parallel compilation but uses a plain number for this. 8# OpenJDK supports parallel compilation but uses a plain number for this.
9# In OE we have PARALLEL_MAKE which is the actual option passed to make, 9# In OE we have PARALLEL_MAKE which is the actual option passed to make,
@@ -45,7 +45,7 @@ def openjdk_build_helper_get_target_cflags(d):
45 # doesn't work anyway. 45 # doesn't work anyway.
46 version = d.getVar('GCCVERSION')[0] 46 version = d.getVar('GCCVERSION')[0]
47 # skip non digit characters at the beginning, e.g. from "linaro-6.2%" 47 # skip non digit characters at the beginning, e.g. from "linaro-6.2%"
48 match = re.search("\d", version) 48 match = re.search(r"\d", version)
49 if match: 49 if match:
50 version = version[match.start():] 50 version = version[match.start():]
51 return openjdk_build_helper_get_cflags_by_cc_version(d, version) 51 return openjdk_build_helper_get_cflags_by_cc_version(d, version)
@@ -83,7 +83,7 @@ def openjdk_build_helper_get_llvm_configure_arch(d):
83 elif arch == "arm": 83 elif arch == "arm":
84 arch = "arm" 84 arch = "arm"
85 else: 85 else:
86 if 'shark' in d.getVar('PACKAGECONFIG').split(): 86 if bb.utils.contains('PACKAGECONFIG', 'shark', True, False, d):
87 bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN'), arch) ); 87 bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN'), arch) );
88 88
89 return arch 89 return arch
diff --git a/classes/openjdk-test-image.bbclass b/classes/openjdk-test-image.bbclass
index f6e4fca..47ad4bb 100644
--- a/classes/openjdk-test-image.bbclass
+++ b/classes/openjdk-test-image.bbclass
@@ -1,5 +1,5 @@
1DESCRIPTION = "An image for OpenJDK testing purposes" 1DESCRIPTION = "An image for OpenJDK testing purposes"
2 2
3TEST_SUITES_append = " javac" 3TEST_SUITES:append = " javac"
4 4
5inherit openjre-test-image 5inherit openjre-test-image
diff --git a/classes/openjre-test-image.bbclass b/classes/openjre-test-image.bbclass
index 77dbd74..9562be4 100644
--- a/classes/openjre-test-image.bbclass
+++ b/classes/openjre-test-image.bbclass
@@ -4,6 +4,6 @@ IMAGE_FEATURES += "ssh-server-openssh package-management"
4 4
5IMAGE_INSTALL = "${CORE_IMAGE_BASE_INSTALL}" 5IMAGE_INSTALL = "${CORE_IMAGE_BASE_INSTALL}"
6 6
7DEFAULT_TEST_SUITES_pn-${PN} = "ping ssh java" 7DEFAULT_TEST_SUITES:pn-${PN} = "ping ssh java"
8 8
9inherit core-image 9inherit core-image
diff --git a/conf/layer.conf b/conf/layer.conf
index 294c319..71d6a10 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -7,11 +7,13 @@ BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend"
7BBFILE_COLLECTIONS += "meta-java" 7BBFILE_COLLECTIONS += "meta-java"
8BBFILE_PATTERN_meta-java := "^${LAYERDIR}/" 8BBFILE_PATTERN_meta-java := "^${LAYERDIR}/"
9BBFILE_PRIORITY_meta-java = "10" 9BBFILE_PRIORITY_meta-java = "10"
10LAYERSERIES_COMPAT_meta-java = "dunfell" 10LAYERSERIES_COMPAT_meta-java = "scarthgap"
11LAYERDEPENDS_meta-java += "openembedded-layer" 11LAYERDEPENDS_meta-java += "openembedded-layer"
12 12
13LICENSE_PATH += "${LAYERDIR}/licenses" 13LICENSE_PATH += "${LAYERDIR}/licenses"
14 14
15HOSTTOOLS_NONFATAL += "free"
16
15SIGGEN_EXCLUDERECIPES_ABISAFE += "\ 17SIGGEN_EXCLUDERECIPES_ABISAFE += "\
16 ca-certificates-java \ 18 ca-certificates-java \
17" 19"
diff --git a/docs/update8checksums.sh b/docs/update8checksums.sh
index 476841b..ccf68d1 100755
--- a/docs/update8checksums.sh
+++ b/docs/update8checksums.sh
@@ -31,7 +31,7 @@ COMMON_TAG="jdk8u${OPENJDK_UPDATE}-ga"
31 31
32AARCH32_BASEURL="https://hg.openjdk.java.net/aarch32-port/jdk8u" 32AARCH32_BASEURL="https://hg.openjdk.java.net/aarch32-port/jdk8u"
33AARCH32_CHANGESET_ID="$(grep "^CHANGESET_ID" recipes-core/openjdk/openjdk-8-release-aarch32.inc | cut -d= -f2 | tr -d \")" 33AARCH32_CHANGESET_ID="$(grep "^CHANGESET_ID" recipes-core/openjdk/openjdk-8-release-aarch32.inc | cut -d= -f2 | tr -d \")"
34AARCH32_TAG="jdk8u${OPENJDK_UPDATE}-ga-aarch32-${AARCH32_CHANGESET_ID}" 34AARCH32_TAG="jdk8u${OPENJDK_UPDATE}-${AARCH32_CHANGESET_ID}"
35 35
36AARCH64_BASEURL="https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah" 36AARCH64_BASEURL="https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah"
37AARCH64_CHANGESET_ID="$(grep "^CHANGESET_ID" recipes-core/openjdk/openjdk-8-release-aarch64.inc | cut -d= -f2 | tr -d \")" 37AARCH64_CHANGESET_ID="$(grep "^CHANGESET_ID" recipes-core/openjdk/openjdk-8-release-aarch64.inc | cut -d= -f2 | tr -d \")"
diff --git a/lib/oeqa/runtime/cases/java.py b/lib/oeqa/runtime/cases/java.py
index c1e1498..d366d61 100644
--- a/lib/oeqa/runtime/cases/java.py
+++ b/lib/oeqa/runtime/cases/java.py
@@ -20,6 +20,7 @@ class JavaTest(OERuntimeTestCase):
20 cls.tc.target.run('rm %s' % dst) 20 cls.tc.target.run('rm %s' % dst)
21 21
22 @OETestDepends(['ssh.SSHTest.test_ssh']) 22 @OETestDepends(['ssh.SSHTest.test_ssh'])
23 @OEHasPackage(["openjdk-7-jre", "openjdk-7", "openjre-8", "openjdk-8"])
23 def test_java_exists(self): 24 def test_java_exists(self):
24 status, output = self.target.run('which java') 25 status, output = self.target.run('which java')
25 msg = 'java binary not in PATH or not on target.' 26 msg = 'java binary not in PATH or not on target.'
diff --git a/lib/oeqa/runtime/cases/javac.py b/lib/oeqa/runtime/cases/javac.py
index 39ae298..3f11511 100644
--- a/lib/oeqa/runtime/cases/javac.py
+++ b/lib/oeqa/runtime/cases/javac.py
@@ -18,12 +18,16 @@ class JavacTest(OERuntimeTestCase):
18 dst = '/tmp/test.java /tmp/test.class' 18 dst = '/tmp/test.java /tmp/test.class'
19 cls.tc.target.run('rm %s' % dst) 19 cls.tc.target.run('rm %s' % dst)
20 20
21 @OETestDepends(['ssh.SSHTest.test_ssh'])
22 @OEHasPackage(["openjdk-7", "openjdk-8"])
21 @OETestDepends(['java.JavaTest.test_java_exists']) 23 @OETestDepends(['java.JavaTest.test_java_exists'])
22 def test_javac_exists(self): 24 def test_javac_exists(self):
23 status, output = self.target.run('which javac') 25 status, output = self.target.run('which javac')
24 msg = 'javac binary not in PATH or not on target.' 26 msg = 'javac binary not in PATH or not on target.'
25 self.assertEqual(status, 0, msg=msg) 27 self.assertEqual(status, 0, msg=msg)
26 28
29 @OETestDepends(['ssh.SSHTest.test_ssh'])
30 @OEHasPackage(["openjdk-7", "openjdk-8"])
27 @OETestDepends(['javac.JavacTest.test_javac_exists']) 31 @OETestDepends(['javac.JavacTest.test_javac_exists'])
28 def test_javac_works(self): 32 def test_javac_works(self):
29 status, output = self.target.run('javac /tmp/test.java') 33 status, output = self.target.run('javac /tmp/test.java')
diff --git a/recipes-core/ant/ant-native_1.8.1.bb b/recipes-core/ant/ant-native_1.8.1.bb
index 7839abd..8814039 100644
--- a/recipes-core/ant/ant-native_1.8.1.bb
+++ b/recipes-core/ant/ant-native_1.8.1.bb
@@ -20,7 +20,7 @@ DEPENDS = " \
20 junit-native jdepend-native commons-net-native commons-logging-native \ 20 junit-native jdepend-native commons-net-native commons-logging-native \
21 " 21 "
22 22
23do_removecruft() { 23do_deletecruft() {
24 # Removes thing that need proprietary Jar files or are otherwise problematic 24 # Removes thing that need proprietary Jar files or are otherwise problematic
25 rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/image 25 rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/image
26 rm -rf ${S}/src/main/org/apache/tools/ant/types/optional/image 26 rm -rf ${S}/src/main/org/apache/tools/ant/types/optional/image
@@ -30,7 +30,7 @@ do_removecruft() {
30 rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java 30 rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java
31} 31}
32 32
33addtask removecruft before do_patch after do_removebinaries 33addtask deletecruft before do_patch after do_deletebinaries
34 34
35do_compile() { 35do_compile() {
36 mkdir -p build 36 mkdir -p build
@@ -57,7 +57,7 @@ do_compile() {
57 sed -i -e"s|@JAR_FILE@|$cp|" ${WORKDIR}/ant 57 sed -i -e"s|@JAR_FILE@|$cp|" ${WORKDIR}/ant
58} 58}
59 59
60do_install_append() { 60do_install:append() {
61 install -d ${D}${bindir} 61 install -d ${D}${bindir}
62 install -m 0755 ${WORKDIR}/ant ${D}${bindir} 62 install -m 0755 ${WORKDIR}/ant ${D}${bindir}
63} 63}
diff --git a/recipes-core/antlr/antlr_2.7.7.bb b/recipes-core/antlr/antlr_2.7.7.bb
index d2453a9..d744201 100644
--- a/recipes-core/antlr/antlr_2.7.7.bb
+++ b/recipes-core/antlr/antlr_2.7.7.bb
@@ -5,11 +5,11 @@ LICENSE = "PD"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=361934e706423915b4d9f413ad37fb65" 5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=361934e706423915b4d9f413ad37fb65"
6 6
7SRC_URI = "http://www.antlr2.org/download/${BP}.tar.gz" 7SRC_URI = "http://www.antlr2.org/download/${BP}.tar.gz"
8SRC_URI_append_class-native = " file://runantlr" 8SRC_URI:append:class-native = " file://runantlr"
9 9
10inherit java-library 10inherit java-library
11 11
12do_configure_class-native() { 12do_configure:class-native() {
13 sed -i -e"s|@JAR_FILE@|${STAGING_DATADIR_JAVA_NATIVE}/antlr.jar|" ${WORKDIR}/runantlr 13 sed -i -e"s|@JAR_FILE@|${STAGING_DATADIR_JAVA_NATIVE}/antlr.jar|" ${WORKDIR}/runantlr
14} 14}
15 15
@@ -21,7 +21,7 @@ do_compile() {
21 fastjar cf ${JARFILENAME} -C build . 21 fastjar cf ${JARFILENAME} -C build .
22} 22}
23 23
24do_install_class-native() { 24do_install:class-native() {
25 install -d ${D}${bindir} 25 install -d ${D}${bindir}
26 install -m 0755 ${WORKDIR}/runantlr ${D}${bindir}/ 26 install -m 0755 ${WORKDIR}/runantlr ${D}${bindir}/
27} 27}
diff --git a/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb b/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb
index feaa7dc..2405b30 100644
--- a/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb
+++ b/recipes-core/ca-certificates-java/ca-certificates-java_20180516.bb
@@ -17,7 +17,7 @@ DEPENDS = "virtual/javac-native fastjar-native"
17PACKAGE_WRITE_DEPS += "openjdk-8-native" 17PACKAGE_WRITE_DEPS += "openjdk-8-native"
18 18
19SRC_URI = "\ 19SRC_URI = "\
20 git://salsa.debian.org/java-team/ca-certificates-java.git \ 20 git://salsa.debian.org/java-team/ca-certificates-java.git;branch=master;protocol=https \
21 file://0001-UpdateCertificates-handle-SYSROOT-environment-variab.patch \ 21 file://0001-UpdateCertificates-handle-SYSROOT-environment-variab.patch \
22 file://${BPN}.hook.in \ 22 file://${BPN}.hook.in \
23" 23"
@@ -37,7 +37,7 @@ python () {
37 raise bb.parse.SkipRecipe("PREFERRED_RPROVIDER_java2-runtime '%s' unsupported" % runtime) 37 raise bb.parse.SkipRecipe("PREFERRED_RPROVIDER_java2-runtime '%s' unsupported" % runtime)
38} 38}
39 39
40do_patch_append () { 40do_patch:append () {
41 bb.build.exec_func('do_fix_sysconfdir', d) 41 bb.build.exec_func('do_fix_sysconfdir', d)
42} 42}
43 43
@@ -78,7 +78,7 @@ do_install () {
78 ${D}${sbindir}/create-ca-certificates-java 78 ${D}${sbindir}/create-ca-certificates-java
79} 79}
80 80
81pkg_postinst_${PN} () { 81pkg_postinst:${PN} () {
82 if [ -n "$D" ] ; then 82 if [ -n "$D" ] ; then
83 # In this case we want to use the Java in the image recipe's 83 # In this case we want to use the Java in the image recipe's
84 # native sysroot (native Java, not qemu target Java) to 84 # native sysroot (native Java, not qemu target Java) to
@@ -98,10 +98,9 @@ pkg_postinst_${PN} () {
98 JVM_LIBDIR=$JVM_LIBDIR $D${sbindir}/create-ca-certificates-java 98 JVM_LIBDIR=$JVM_LIBDIR $D${sbindir}/create-ca-certificates-java
99} 99}
100 100
101RDEPENDS_${PN} = "ca-certificates" 101RDEPENDS:${PN} = "ca-certificates"
102RDEPENDS_${PN}_append_class-target = " java2-runtime" 102RDEPENDS:${PN}:append:class-target = " java2-runtime"
103RDEPENDS_${PN}_append_class-native = " virtual/java-native"
104 103
105FILES_${PN} += "${datadir_java}" 104FILES:${PN} += "${datadir_java}"
106 105
107BBCLASSEXTEND = "native" 106BBCLASSEXTEND = "native"
diff --git a/recipes-core/cacao/cacao-initial-native_0.98.bb b/recipes-core/cacao/cacao-initial-native_0.98.bb
index 8125e88..8432456 100644
--- a/recipes-core/cacao/cacao-initial-native_0.98.bb
+++ b/recipes-core/cacao/cacao-initial-native_0.98.bb
@@ -6,7 +6,7 @@ SECTION = "interpreters"
6 6
7PROVIDES = "virtual/java-initial-native" 7PROVIDES = "virtual/java-initial-native"
8 8
9inherit native autotools-brokensep 9inherit autotools-brokensep native
10 10
11DEPENDS = "zlib-native libtool-native fastjar-native classpath-initial-native jikes-initial-native" 11DEPENDS = "zlib-native libtool-native fastjar-native classpath-initial-native jikes-initial-native"
12 12
@@ -35,7 +35,7 @@ export JAVAC="jikes-initial"
35# enforces the usage of fastjar 35# enforces the usage of fastjar
36export JAR="fastjar" 36export JAR="fastjar"
37 37
38do_configure_append() { 38do_configure:append() {
39 # Fix the executable name in the wrapper script. 39 # Fix the executable name in the wrapper script.
40 sed -i -e "s|exec cacao \\$|exec cacao-initial \\$|" src/scripts/java.in 40 sed -i -e "s|exec cacao \\$|exec cacao-initial \\$|" src/scripts/java.in
41} 41}
diff --git a/recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch b/recipes-core/cacao/cacao/0001-java.in-Do-not-use-hardcode-paths.patch
index 665377b..521814e 100644
--- a/recipes-core/cacao/cacao-2d6f6c14daf9/cacao-1.6.1-do-not-rely-on-absolute-paths.patch
+++ b/recipes-core/cacao/cacao/0001-java.in-Do-not-use-hardcode-paths.patch
@@ -1,25 +1,31 @@
1java.in: Do not use hardcode paths 1From 51a63cdac93caf69d1b6ace40f73f6147ba37de5 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com>
3Date: Thu, 20 Aug 2020 13:48:38 +0200
4Subject: [PATCH 1/2] java.in: Do not use hardcode paths
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
2 8
3Cacao uses hardcoded paths to various files, if these paths are not 9Cacao uses hardcoded paths to various files, if these paths are not
4provided. This causes issues when sharing sstate with otherwise 10provided. This causes issues when sharing sstate with otherwise
5identical workers, if build time paths are not identical. 11identical workers, if build time paths are not identical.
6 12
7Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
8
9Upstream-Status: Inappropriate [Yocto-specific fixes] 13Upstream-Status: Inappropriate [Yocto-specific fixes]
10 14
15Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
16Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
11--- 17---
12 cacao-1.6.1/src/scripts/java.in | 16 ++++++++++++++-- 18 src/scripts/java.in | 15 +++++++++++++--
13 1 file changed, 14 insertions(+), 2 deletions(-) 19 1 file changed, 13 insertions(+), 2 deletions(-)
14 20
15diff --git cacao-1.6.1/src/scripts/java.in cacao-1.6.1/src/scripts/java.in 21diff --git a/src/scripts/java.in b/src/scripts/java.in
16index 0790f02..2118de7 100644 22index 0790f0255..a4f16ecdc 100644
17--- cacao-1.6.1/src/scripts/java.in 23--- a/src/scripts/java.in
18+++ cacao-1.6.1/src/scripts/java.in 24+++ b/src/scripts/java.in
19@@ -22,5 +22,17 @@ 25@@ -22,5 +22,16 @@
20 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 26 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ## 02110-1301, USA. 27 ## 02110-1301, USA.
22 28
23-IFS="" 29-IFS=""
24-exec $(dirname ${0})/cacao ${1+"$@"} 30-exec $(dirname ${0})/cacao ${1+"$@"}
25+SH_DIR=`dirname "$0"` 31+SH_DIR=`dirname "$0"`
@@ -35,7 +41,6 @@ index 0790f02..2118de7 100644
35+export BOOTCLASSPATH="${PARENT_DIR}/share/cacao/vm.zip:${PARENT_DIR}/share/classpath/glibj.zip" 41+export BOOTCLASSPATH="${PARENT_DIR}/share/cacao/vm.zip:${PARENT_DIR}/share/classpath/glibj.zip"
36+LIBRARY_PATH="-Djava.library.path=${PARENT_DIR}/lib/classpath" 42+LIBRARY_PATH="-Djava.library.path=${PARENT_DIR}/lib/classpath"
37+exec ${REAL_DIR}/cacao ${LIBRARY_PATH} ${1+"$@"} 43+exec ${REAL_DIR}/cacao ${LIBRARY_PATH} ${1+"$@"}
38+ 44--
39-- 452.28.0
402.7.4
41 46
diff --git a/recipes-core/cacao/cacao-2d6f6c14daf9/system-boehm-gc.patch b/recipes-core/cacao/cacao/0002-cacao-use-system-s-boehm-garbage-collector.patch
index c30f5be..102e9a7 100644
--- a/recipes-core/cacao/cacao-2d6f6c14daf9/system-boehm-gc.patch
+++ b/recipes-core/cacao/cacao/0002-cacao-use-system-s-boehm-garbage-collector.patch
@@ -1,4 +1,7 @@
1cacao: use system's boehm garbage collector 1From 7833101c8c8938d58a32e355b9af1b56e4229a87 Mon Sep 17 00:00:00 2001
2From: Hugo Vasconcelos Saldanha <hugo.saldanha@aker.com.br>
3Date: Thu, 20 Aug 2020 13:50:47 +0200
4Subject: [PATCH 2/2] cacao: use system's boehm garbage collector
2 5
3This is a Gentoo's patch [1] to force the use of system's bdwgc. 6This is a Gentoo's patch [1] to force the use of system's bdwgc.
4 7
@@ -10,11 +13,17 @@ with the system's version.
10Upstream-Status: Inappropriate [not author] 13Upstream-Status: Inappropriate [not author]
11 14
12Signed-off-by: Hugo Vasconcelos Saldanha <hugo.saldanha@aker.com.br> 15Signed-off-by: Hugo Vasconcelos Saldanha <hugo.saldanha@aker.com.br>
16Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
17---
18 configure.ac | 8 ++------
19 src/mm/Makefile.am | 9 ++++-----
20 2 files changed, 6 insertions(+), 11 deletions(-)
13 21
14diff --git a/configure.ac b/configure.ac 22diff --git a/configure.ac b/configure.ac
23index aceb2033b..db8a9770e 100644
15--- a/configure.ac 24--- a/configure.ac
16+++ b/configure.ac 25+++ b/configure.ac
17@@ -691,6 +691,8 @@ 26@@ -738,6 +738,8 @@ AC_CHECK_ENABLE_GCC_PR40134
18 27
19 AC_CHECK_ENABLE_PIC_ASM 28 AC_CHECK_ENABLE_PIC_ASM
20 29
@@ -23,7 +32,7 @@ diff --git a/configure.ac b/configure.ac
23 dnl Define version numbers. 32 dnl Define version numbers.
24 AC_VERSION_DETAIL 33 AC_VERSION_DETAIL
25 AC_VERSION_CONFIG 34 AC_VERSION_CONFIG
26@@ -793,12 +795,6 @@ 35@@ -855,12 +857,6 @@ AC_CONFIG_FILES([Makefile]
27 ) 36 )
28 37
29 38
@@ -37,9 +46,10 @@ diff --git a/configure.ac b/configure.ac
37 46
38 47
39diff --git a/src/mm/Makefile.am b/src/mm/Makefile.am 48diff --git a/src/mm/Makefile.am b/src/mm/Makefile.am
49index 9d0945a29..cbd7dc963 100644
40--- a/src/mm/Makefile.am 50--- a/src/mm/Makefile.am
41+++ b/src/mm/Makefile.am 51+++ b/src/mm/Makefile.am
42@@ -35,14 +35,13 @@ 52@@ -35,14 +35,13 @@ GC_FILE = \
43 endif 53 endif
44 54
45 if ENABLE_GC_BOEHM 55 if ENABLE_GC_BOEHM
@@ -58,3 +68,6 @@ diff --git a/src/mm/Makefile.am b/src/mm/Makefile.am
58 endif 68 endif
59 69
60 if ENABLE_GC_CACAO 70 if ENABLE_GC_CACAO
71--
722.28.0
73
diff --git a/recipes-core/cacao/cacao_2d6f6c14daf9.bb b/recipes-core/cacao/cacao_git.bb
index 0e50b68..fef7f34 100644
--- a/recipes-core/cacao/cacao_2d6f6c14daf9.bb
+++ b/recipes-core/cacao/cacao_git.bb
@@ -4,27 +4,25 @@ LICENSE = "GPL-2.0"
4LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" 4LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
5SECTION = "interpreters" 5SECTION = "interpreters"
6 6
7DEPENDS_class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-initial-native classpath-native bdwgc-native virtual/java-initial-native" 7DEPENDS:class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-initial-native classpath-native bdwgc-native virtual/java-initial-native"
8PROVIDES_class-native = "virtual/java-native" 8PROVIDES:class-native = "virtual/java-native"
9 9
10DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc" 10DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc"
11RPROVIDES_${PN} = "java2-runtime" 11RPROVIDES:${PN} = "java2-runtime"
12 12
13SRC_URI = "https://bitbucket.org/cacaovm/cacao-staging/get/${PV}.zip \ 13SRCREV = "6c4694f9bd175386a8c451531e9a5ad97aa23b6f"
14 file://system-boehm-gc.patch \ 14SRC_URI = "git://bitbucket.org/cacaovm/cacao.git;protocol=https;branch=master \
15 file://cacao-1.6.1-do-not-rely-on-absolute-paths.patch \ 15 file://0001-java.in-Do-not-use-hardcode-paths.patch \
16 file://0002-cacao-use-system-s-boehm-garbage-collector.patch \
16" 17"
17S = "${WORKDIR}/cacaovm-cacao-staging-${PV}" 18S = "${WORKDIR}/git"
18
19SRC_URI[md5sum] = "5157d0bb9eb1332f7a6b6186eaac01aa"
20SRC_URI[sha256sum] = "34b51d660d69c2a83225fd75eab5e1fac002fb5974cb4a74b7478baf923a76cd"
21 19
22inherit java autotools-brokensep update-alternatives pkgconfig features_check 20inherit java autotools-brokensep update-alternatives pkgconfig features_check
23 21
24REQUIRED_DISTRO_FEATURES = "x11" 22REQUIRED_DISTRO_FEATURES = "x11"
25REQUIRED_DISTRO_FEATURES_class-native := "" 23REQUIRED_DISTRO_FEATURES:class-native := ""
26 24
27EXTRA_OECONF_class-native = "\ 25EXTRA_OECONF:class-native = "\
28 --enable-debug \ 26 --enable-debug \
29 --with-vm-zip=${datadir}/cacao/vm.zip \ 27 --with-vm-zip=${datadir}/cacao/vm.zip \
30 --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \ 28 --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
@@ -35,7 +33,7 @@ EXTRA_OECONF_class-native = "\
35 --disable-libjvm \ 33 --disable-libjvm \
36" 34"
37 35
38CACHED_CONFIGUREVARS_class-native += "ac_cv_prog_JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial" 36CACHED_CONFIGUREVARS:class-native += "ac_cv_prog_JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial"
39 37
40EXTRA_OECONF = "\ 38EXTRA_OECONF = "\
41 --with-vm-zip=${datadir}/cacao/vm.zip \ 39 --with-vm-zip=${datadir}/cacao/vm.zip \
@@ -48,21 +46,21 @@ EXTRA_OECONF = "\
48 --disable-test-dependency-checks \ 46 --disable-test-dependency-checks \
49" 47"
50 48
51do_configure_prepend () { 49do_configure:prepend () {
52 # upgrade m4 macros in source tree 50 # upgrade m4 macros in source tree
53 libtoolize --force --copy --install 51 libtoolize --force --copy --install
54 rm -f src/mm/boehm-gc/ltmain.sh 52 rm -f src/mm/boehm-gc/ltmain.sh
55 mkdir -p src/mm/boehm-gc/m4 53 mkdir -p src/mm/boehm-gc/m4
56} 54}
57 55
58do_install_append_class-target() { 56do_install:append:class-target() {
59 rm ${D}/${bindir}/java 57 rm ${D}/${bindir}/java
60} 58}
61 59
62FILES_${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}" 60FILES:${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}"
63FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*" 61FILES:${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*"
64FILES_${PN}-doc += "${datadir}/gc" 62FILES:${PN}-doc += "${datadir}/gc"
65 63
66BBCLASSEXTEND = "native" 64BBCLASSEXTEND = "native"
67 65
68COMPATIBLE_MACHINE_aarch64 = "-" 66COMPATIBLE_MACHINE:aarch64 = "-"
diff --git a/recipes-core/classpath/classpath-features-check.inc b/recipes-core/classpath/classpath-features-check.inc
new file mode 100644
index 0000000..c238fc3
--- /dev/null
+++ b/recipes-core/classpath/classpath-features-check.inc
@@ -0,0 +1,6 @@
1# SPDX-FileCopyrightText: Huawei Inc.
2#
3# SPDX-License-Identifier: Apache-2.0
4
5inherit features_check
6REQUIRED_DISTRO_FEATURES = "x11"
diff --git a/recipes-core/classpath/classpath-initial-native_0.93.bb b/recipes-core/classpath/classpath-initial-native_0.93.bb
index 51229ec..7bb1ca1 100644
--- a/recipes-core/classpath/classpath-initial-native_0.93.bb
+++ b/recipes-core/classpath/classpath-initial-native_0.93.bb
@@ -28,7 +28,7 @@ EXTRA_OECONF += "\
28# Ensure tools.zip is not installed at same path as classpath-native 28# Ensure tools.zip is not installed at same path as classpath-native
29EXTRA_OEMAKE += "pkgdatadir=${STAGING_DATADIR_NATIVE}/classpath-initial" 29EXTRA_OEMAKE += "pkgdatadir=${STAGING_DATADIR_NATIVE}/classpath-initial"
30 30
31do_install_append() { 31do_install:append() {
32 # remove files clashing with classpath-native in sysroot 32 # remove files clashing with classpath-native in sysroot
33 rm \ 33 rm \
34 ${D}${bindir}/gappletviewer \ 34 ${D}${bindir}/gappletviewer \
diff --git a/recipes-core/classpath/classpath-native.inc b/recipes-core/classpath/classpath-native.inc
index b1de458..c81e064 100644
--- a/recipes-core/classpath/classpath-native.inc
+++ b/recipes-core/classpath/classpath-native.inc
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=af0004801732bc4b20d90f351cf80510"
5 5
6DEPENDS = "fastjar-native zip-native" 6DEPENDS = "fastjar-native zip-native"
7 7
8inherit autotools native gettext 8inherit autotools gettext native
9 9
10SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz" 10SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz"
11 11
diff --git a/recipes-core/classpath/classpath-native_0.99.bb b/recipes-core/classpath/classpath-native_0.99.bb
index daf7611..ecf8c0a 100644
--- a/recipes-core/classpath/classpath-native_0.99.bb
+++ b/recipes-core/classpath/classpath-native_0.99.bb
@@ -23,7 +23,7 @@ EXTRA_OECONF += "\
23 --includedir=${STAGING_INCDIR}/classpath \ 23 --includedir=${STAGING_INCDIR}/classpath \
24" 24"
25 25
26do_compile_append () { 26do_compile:append () {
27 # tools using java-initial rather than java sed it out 27 # tools using java-initial rather than java sed it out
28 cd tools 28 cd tools
29 sed -e "s/java-initial/java/g" \ 29 sed -e "s/java-initial/java/g" \
diff --git a/recipes-core/classpath/classpath.inc b/recipes-core/classpath/classpath.inc
index e23b752..35e7db3 100644
--- a/recipes-core/classpath/classpath.inc
+++ b/recipes-core/classpath/classpath.inc
@@ -7,19 +7,19 @@ LICENSE = "GPL-2.0 & SAX-PD"
7 7
8PBN = "classpath" 8PBN = "classpath"
9 9
10inherit autotools java gettext 10inherit autotools pkgconfig java gettext
11 11
12DEPENDS = "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"
13 13
14RPROVIDES_${PN} = "" 14RPROVIDES:${PN} = ""
15 15
16RDEPENDS_${PN} = "${PBN}-common (>= ${PV})" 16RDEPENDS:${PN} = "${PBN}-common (>= ${PV})"
17RDEPENDS_${PN}-examples = "java2-runtime ${PN}-awt" 17RDEPENDS:${PN}-examples = "java2-runtime ${PN}-awt"
18RDEPENDS_${PN}-tools = "java2-runtime" 18RDEPENDS:${PN}-tools = "java2-runtime"
19 19
20RPROVIDES_${PN} = "${PBN}" 20RPROVIDES:${PN} = "${PBN}"
21RPROVIDES_${PN}-common = "${PBN}-common" 21RPROVIDES:${PN}-common = "${PBN}-common"
22RPROVIDES_${PN}-gtk = "${PBN}-awt" 22RPROVIDES:${PN}-gtk = "${PBN}-awt"
23 23
24PR = "r3" 24PR = "r3"
25 25
@@ -49,7 +49,7 @@ EXTRA_OECONF = "\
49EXTRA_OECONF += "\ 49EXTRA_OECONF += "\
50 " 50 "
51 51
52do_configure_prepend () { 52do_configure:prepend () {
53 cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S} 53 cp ${STAGING_DATADIR_NATIVE}/gettext/config.rpath ${S}
54} 54}
55 55
@@ -60,7 +60,7 @@ do_install() {
60} 60}
61 61
62# We really have valid non-symlink .so files 62# We really have valid non-symlink .so files
63INSANE_SKIP_${PN} = "dev-so" 63INSANE_SKIP:${PN} = "dev-so"
64 64
65# Defines the packages that this classpath recipe creates. 65# Defines the packages that this classpath recipe creates.
66# This allows the classpath-minimal variants to override this 66# This allows the classpath-minimal variants to override this
@@ -71,20 +71,20 @@ CPPACKAGES = "${PBN}-common ${PN}-examples \
71 71
72PACKAGES =+ "${CPPACKAGES}" 72PACKAGES =+ "${CPPACKAGES}"
73 73
74FILES_${PN}-dev += "${libdir}/${PBN}/*.la ${incdir}/${PBN}" 74FILES:${PN}-dev += "${libdir}/${PBN}/*.la ${incdir}/${PBN}"
75 75
76FILES_${PBN}-common = "${datadir}/${PBN}/glibj.zip ${libdir}/logging.properties ${libdir}/${PBN}/security" 76FILES:${PBN}-common = "${datadir}/${PBN}/glibj.zip ${libdir}/logging.properties ${libdir}/${PBN}/security"
77FILES_${PN}-examples = "${datadir}/${PBN}/examples" 77FILES:${PN}-examples = "${datadir}/${PBN}/examples"
78 78
79FILES_${PN}-tools = "${datadir}/${PBN}/tools.zip ${bindir}" 79FILES:${PN}-tools = "${datadir}/${PBN}/tools.zip ${bindir}"
80FILES_${PN}-tools-doc = "${mandir}" 80FILES:${PN}-tools-doc = "${mandir}"
81 81
82FILES_${PN}-dbg += "${libdir}/${PBN}/.debug" 82FILES:${PN}-dbg += "${libdir}/${PBN}/.debug"
83FILES_${PN}-doc = "${infodir}" 83FILES:${PN}-doc = "${infodir}"
84 84
85# gcjwebplugin - not built yet 85# gcjwebplugin - not built yet
86#FILES_${PN}-gcjwebplugin = "${libdir}/${PBN}/libgcjwebplugin.so" 86#FILES_${PN}-gcjwebplugin = "${libdir}/${PBN}/libgcjwebplugin.so"
87FILES_${PN}-gtk = "${libdir}/${PBN}/libgtkpeer.so ${libdir}/${PBN}/libjawt.so" 87FILES:${PN}-gtk = "${libdir}/${PBN}/libgtkpeer.so ${libdir}/${PBN}/libjawt.so"
88FILES_${PN}-gconf = "${libdir}/${PBN}/libgconfpeer.so" 88FILES:${PN}-gconf = "${libdir}/${PBN}/libgconfpeer.so"
89FILES_${PN} = "${libdir}/${PBN}/lib*so*" 89FILES:${PN} = "${libdir}/${PBN}/lib*so*"
90 90
diff --git a/recipes-core/classpath/classpath_0.99.bb b/recipes-core/classpath/classpath_0.99.bb
index 5b9d904..f18ad1d 100644
--- a/recipes-core/classpath/classpath_0.99.bb
+++ b/recipes-core/classpath/classpath_0.99.bb
@@ -1,8 +1,6 @@
1require classpath.inc 1require classpath.inc
2 2
3inherit features_check 3include classpath-features-check.inc
4
5REQUIRED_DISTRO_FEATURES = "x11"
6 4
7LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=92acc79f1f429143f4624d07b253702a"
8 6
diff --git a/recipes-core/cup/cup_0.10k.bb b/recipes-core/cup/cup_0.10k.bb
index 3ce5a21..ce81453 100644
--- a/recipes-core/cup/cup_0.10k.bb
+++ b/recipes-core/cup/cup_0.10k.bb
@@ -4,8 +4,8 @@ LICENSE = "CUP"
4LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=2c9db91c00f38e52cfc8e67bafaa7c33" 4LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=2c9db91c00f38e52cfc8e67bafaa7c33"
5 5
6 6
7RDEPENDS_${PN} = "java2-runtime" 7RDEPENDS:${PN} = "java2-runtime"
8RDEPENDS_${PN}_class-native = "" 8RDEPENDS:${PN}:class-native = ""
9PACKAGE_ARCH = "${TUNE_PKGARCH}" 9PACKAGE_ARCH = "${TUNE_PKGARCH}"
10 10
11inherit java-library 11inherit java-library
@@ -32,14 +32,14 @@ do_compile() {
32 fastjar cf ${BP}.jar -C build . 32 fastjar cf ${BP}.jar -C build .
33} 33}
34 34
35do_install_append() { 35do_install:append() {
36 install -d ${D}${bindir} 36 install -d ${D}${bindir}
37 install -m 0755 ${WORKDIR}/cup ${D}${bindir} 37 install -m 0755 ${WORKDIR}/cup ${D}${bindir}
38} 38}
39 39
40PACKAGES = "${PN}" 40PACKAGES = "${PN}"
41 41
42FILES_${PN} += "${datadir_java}" 42FILES:${PN} += "${datadir_java}"
43 43
44SRC_URI[md5sum] = "8b11edfec13c590ea443d0f0ae0da479" 44SRC_URI[md5sum] = "8b11edfec13c590ea443d0f0ae0da479"
45SRC_URI[sha256sum] = "7e6dc5be74ae56c7e86e69ad0ad88dae3b2847afa9e73a76635918a6b1eb75cd" 45SRC_URI[sha256sum] = "7e6dc5be74ae56c7e86e69ad0ad88dae3b2847afa9e73a76635918a6b1eb75cd"
diff --git a/recipes-core/ecj/libecj-bootstrap.inc b/recipes-core/ecj/libecj-bootstrap.inc
index 04425f4..2f3cc97 100644
--- a/recipes-core/ecj/libecj-bootstrap.inc
+++ b/recipes-core/ecj/libecj-bootstrap.inc
@@ -9,7 +9,7 @@ DEPENDS = "classpath-initial-native fastjar-native jikes-initial-native virtual/
9 9
10INC_PR = "r5" 10INC_PR = "r5"
11 11
12inherit native java 12inherit java native
13 13
14S = "${WORKDIR}" 14S = "${WORKDIR}"
15 15
@@ -54,6 +54,7 @@ do_compile() {
54 54
55 fastjar -c -C build . -f ${JAR} 55 fastjar -c -C build . -f ${JAR}
56} 56}
57do_compile[vardepsexclude] += "BB_NUMBER_THREADS"
57 58
58do_install() { 59do_install() {
59 oe_jarinstall ${JAR} ecj-bootstrap.jar 60 oe_jarinstall ${JAR} ecj-bootstrap.jar
diff --git a/recipes-core/fastjar/fastjar.inc b/recipes-core/fastjar/fastjar.inc
index 2a40e3c..8412236 100644
--- a/recipes-core/fastjar/fastjar.inc
+++ b/recipes-core/fastjar/fastjar.inc
@@ -12,15 +12,15 @@ SRC_URI = "http://download.savannah.nongnu.org/releases/fastjar/fastjar-${PV}.ta
12inherit autotools update-alternatives 12inherit autotools update-alternatives
13 13
14PACKAGES = "${PN}-grepjar ${PN} ${PN}-dbg ${PN}-doc" 14PACKAGES = "${PN}-grepjar ${PN} ${PN}-dbg ${PN}-doc"
15FILES_${PN}-grepjar = "${bindir}/grepjar" 15FILES:${PN}-grepjar = "${bindir}/grepjar"
16 16
17PROVIDES = "virtual/jar" 17PROVIDES = "virtual/jar"
18ALTERNATIVE_${PN} = "jar" 18ALTERNATIVE:${PN} = "jar"
19ALTERNATIVE_LINK = "${bindir}/jar" 19ALTERNATIVE_LINK = "${bindir}/jar"
20ALTERNATIVE_TARGET = "${bindir}/fastjar" 20ALTERNATIVE_TARGET = "${bindir}/fastjar"
21 21
22# update-aternatives does not work for native class 22# update-aternatives does not work for native class
23do_install_append_class-native () { 23do_install:append:class-native () {
24 ln -s fastjar ${D}${bindir}/jar 24 ln -s fastjar ${D}${bindir}/jar
25} 25}
26 26
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index b0b9419..d6f8fd7 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -16,24 +16,28 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}
16PACKAGECONFIG[x11] = ",--disable-headful,libx11-native xorgproto-native libxt-native libxext-native libxrender-native" 16PACKAGECONFIG[x11] = ",--disable-headful,libx11-native xorgproto-native libxt-native libxext-native libxrender-native"
17 17
18OEMAKE_BUILD_HEADLESS_ONLY = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'BUILD_HEADLESS_ONLY=1', d)}" 18OEMAKE_BUILD_HEADLESS_ONLY = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'BUILD_HEADLESS_ONLY=1', d)}"
19CFLAGS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', ' -DHEADLESS=true', d)}" 19CFLAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', ' -DHEADLESS=true', d)}"
20 20
21# Disable dead store elimination and set C++ standard to C++98. 21# Disable dead store elimination and set C++ standard to C++98.
22# There are dead stores in the JVM that would be pretty hard to 22# There are dead stores in the JVM that would be pretty hard to
23# remove, so disable the optimisation in the compiler. 23# remove, so disable the optimisation in the compiler.
24CFLAGS_append = " -fno-tree-dse" 24CFLAGS:append = " -std=gnu++98 -fno-tree-dse -fno-tree-vectorize"
25CXXFLAGS_append = " -fno-tree-dse" 25CXXFLAGS:append = " -std=gnu++98 -fno-tree-dse"
26CXX_append = " -std=gnu++98"
27 26
28# WORKAROUND: ignore errors from new compilers 27# WORKAROUND: ignore errors from new compilers
29CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type" 28CFLAGS:append = " -Wno-error=stringop-overflow -Wno-error=return-type"
29
30# oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9"
31HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}"
32CFLAGS:append = " ${@oe.utils.less_or_equal('HOST_COMPILER_MAJOR', '8', '', ' -Wno-error=format-overflow', d)}"
30 33
31# Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources 34# Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources
32CFLAGS_append = " -fcommon" 35CFLAGS:append = " -fcommon"
33 36
34inherit native java autotools pkgconfig 37inherit java autotools pkgconfig
35inherit openjdk-build-helper 38inherit openjdk-build-helper
36inherit python3native 39inherit python3native
40inherit native
37 41
38JAVA_HOME[unexport] = "1" 42JAVA_HOME[unexport] = "1"
39 43
@@ -61,43 +65,41 @@ B = "${S}/build"
61# openjdk looks in /usr/include and /usr/lib for freetype by default. 65# openjdk looks in /usr/include and /usr/lib for freetype by default.
62export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2" 66export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2"
63export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}" 67export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}"
68export ALT_CUPS_HEADERS_PATH = "${STAGING_INCDIR}"
64 69
65# libfreetype.so.6 is copied from STAGING_LIBDIR 70# libfreetype.so.6 is copied from STAGING_LIBDIR
66# which is already stripped. 71# which is already stripped.
67INSANE_SKIP_${PN} = "already-stripped" 72INSANE_SKIP:${PN} = "already-stripped"
68 73
69EXTRA_OECONF = "\ 74EXTRA_OECONF = "\
70 --with-parallel-jobs=${@openjdk_build_helper_get_parallel_make(d)} \ 75 --with-parallel-jobs=${@openjdk_build_helper_get_parallel_make(d)} \
71 \ 76 --disable-tests \
72 --disable-tests \ 77 --disable-hotspot-tests \
73 --disable-hotspot-tests \ 78 --disable-langtools-tests \
74 --disable-langtools-tests \ 79 --disable-jdk-tests \
75 --disable-jdk-tests \ 80 --disable-pulse-java \
76 --disable-pulse-java \ 81 --disable-docs \
77 --disable-docs \ 82 --disable-nss \
78 --disable-nss \ 83 --disable-system-lcms \
79 --disable-system-lcms \ 84 --disable-system-gtk \
80 --disable-system-gtk \ 85 --with-jdk-home=${WORKDIR}/fake-jdk \
81 \ 86 --with-javac=${STAGING_BINDIR_NATIVE}/javac \
82 --with-jdk-home=${WORKDIR}/fake-jdk \ 87 --with-rhino=${STAGING_DATADIR_NATIVE}/java/rhino.jar \
83 --with-javac=${STAGING_BINDIR_NATIVE}/javac \ 88 --with-openjdk-src-zip=${DL_DIR}/${OPENJDK_FILE_DOWNLOAD} \
84 --with-rhino=${STAGING_DATADIR_NATIVE}/java/rhino.jar \ 89 --with-hotspot-src-zip=${DL_DIR}/${HOTSPOT_FILE_DOWNLOAD} \
85 \ 90 --with-corba-src-zip=${DL_DIR}/${CORBA_FILE_DOWNLOAD} \
86 --with-openjdk-src-zip=${DL_DIR}/${OPENJDK_FILE} \ 91 --with-jaxp-src-zip=${DL_DIR}/${JAXP_FILE_DOWNLOAD} \
87 --with-hotspot-src-zip=${DL_DIR}/${HOTSPOT_FILE} \ 92 --with-jaxws-src-zip=${DL_DIR}/${JAXWS_FILE_DOWNLOAD} \
88 --with-corba-src-zip=${DL_DIR}/${CORBA_FILE} \ 93 --with-jdk-src-zip=${DL_DIR}/${JDK_FILE_DOWNLOAD} \
89 --with-jaxp-src-zip=${DL_DIR}/${JAXP_FILE} \ 94 --with-langtools-src-zip=${DL_DIR}/${LANGTOOLS_FILE_DOWNLOAD} \
90 --with-jaxws-src-zip=${DL_DIR}/${JAXWS_FILE} \ 95 ac_cv_path_UNZIP_BIN="${STAGING_BINDIR_NATIVE}/unzip" \
91 --with-jdk-src-zip=${DL_DIR}/${JDK_FILE} \ 96"
92 --with-langtools-src-zip=${DL_DIR}/${LANGTOOLS_FILE} \
93 ac_cv_path_UNZIP_BIN="${STAGING_BINDIR_NATIVE}/unzip" \
94 "
95 97
96JDK_DIR = "icedtea7-native" 98JDK_DIR = "icedtea7-native"
97 99
98JDK_INSTALL_DIR = "${D}/${libdir_jvm}/${JDK_DIR}" 100JDK_INSTALL_DIR = "${D}/${libdir_jvm}/${JDK_DIR}"
99 101
100do_configure_prepend() { 102do_configure:prepend() {
101 arch="${@openjdk_build_helper_get_icedtea_arch(d)}" 103 arch="${@openjdk_build_helper_get_icedtea_arch(d)}"
102 libarch="${@openjdk_build_helper_get_icedtea_arch(d)}" 104 libarch="${@openjdk_build_helper_get_icedtea_arch(d)}"
103 105
@@ -128,7 +130,7 @@ do_configure_prepend() {
128 130
129POST_CONFIGURE_CLEAN_X11 = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'rm openjdk*/jdk/src/solaris/classes/sun/awt/X11/*.java', d)}" 131POST_CONFIGURE_CLEAN_X11 = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'rm openjdk*/jdk/src/solaris/classes/sun/awt/X11/*.java', d)}"
130 132
131do_configure_append() { 133do_configure:append() {
132 oe_runmake patch-fsg 134 oe_runmake patch-fsg
133 135
134 for F in openjdk/jdk/make/common/shared/Compiler-gcc.gmk ; 136 for F in openjdk/jdk/make/common/shared/Compiler-gcc.gmk ;
diff --git a/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-replace-sys-sysctl.patch b/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-replace-sys-sysctl.patch
new file mode 100644
index 0000000..1c7a585
--- /dev/null
+++ b/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-replace-sys-sysctl.patch
@@ -0,0 +1,22 @@
1--- openjdk/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c
2+++ openjdk/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c
3@@ -35,7 +35,7 @@
4 #endif
5 #ifdef __linux__
6 #include <unistd.h>
7-#include <sys/sysctl.h>
8+#include <linux/sysctl.h>
9 #include <sys/utsname.h>
10 #include <netinet/ip.h>
11
12--- openjdk/jdk/src/solaris/native/java/net/PlainSocketImpl.c
13+++ openjdk/jdk/src/solaris/native/java/net/PlainSocketImpl.c
14@@ -43,7 +43,7 @@
15 #endif
16 #ifdef __linux__
17 #include <unistd.h>
18-#include <sys/sysctl.h>
19+#include <linux/sysctl.h>
20 #endif
21
22 #include "jvm.h"
diff --git a/recipes-core/icedtea/openjdk-7-release-03b147.inc b/recipes-core/icedtea/openjdk-7-release-03b147.inc
index 9816c0c..16bf592 100644
--- a/recipes-core/icedtea/openjdk-7-release-03b147.inc
+++ b/recipes-core/icedtea/openjdk-7-release-03b147.inc
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
5FILESPATH =. "${FILE_DIRNAME}/openjdk-7-03b147:" 5FILESPATH =. "${FILE_DIRNAME}/openjdk-7-03b147:"
6 6
7# Force arm mode for now 7# Force arm mode for now
8ARM_INSTRUCTION_SET_armv4t = "ARM" 8ARM_INSTRUCTION_SET:armv4t = "ARM"
9 9
10ICEDTEA_URI = "http://icedtea.wildebeest.org/download/source/${ICEDTEA}.tar.gz;name=iced" 10ICEDTEA_URI = "http://icedtea.wildebeest.org/download/source/${ICEDTEA}.tar.gz;name=iced"
11 11
@@ -13,50 +13,58 @@ ICEDTEA_PREFIX = "icedtea7-forest-2.1"
13ICEDTEA_HG_URL = "http://icedtea.classpath.org/hg/release/${ICEDTEA_PREFIX}" 13ICEDTEA_HG_URL = "http://icedtea.classpath.org/hg/release/${ICEDTEA_PREFIX}"
14 14
15OPENJDK_CHANGESET = "22cc03983e20" 15OPENJDK_CHANGESET = "22cc03983e20"
16OPENJDK_FILE = "${OPENJDK_CHANGESET}.tar.bz2" 16OPENJDK_FILE_UPSTREAM = "${OPENJDK_CHANGESET}.tar.bz2"
17OPENJDK_URI = "${ICEDTEA_HG_URL}/archive/${OPENJDK_FILE};name=openjdk;unpack=false" 17OPENJDK_FILE_DOWNLOAD = "openjdk-${OPENJDK_CHANGESET}.tar.bz2"
18OPENJDK_URI = "${ICEDTEA_HG_URL}/archive/${OPENJDK_FILE_UPSTREAM};name=openjdk;unpack=false;downloadfilename=${OPENJDK_FILE_DOWNLOAD}"
18SRC_URI[openjdk.md5sum] = "f98b0f7a69f9427a5b3775dddddc89cb" 19SRC_URI[openjdk.md5sum] = "f98b0f7a69f9427a5b3775dddddc89cb"
19SRC_URI[openjdk.sha256sum] = "758227833982371e3a94def84226a947f8dbbd176517f313b8cb96840bdea41e" 20SRC_URI[openjdk.sha256sum] = "758227833982371e3a94def84226a947f8dbbd176517f313b8cb96840bdea41e"
20 21
21HOTSPOT_CHANGESET = "8b7c4c5f6ba9" 22HOTSPOT_CHANGESET = "8b7c4c5f6ba9"
22HOTSPOT_FILE = "${HOTSPOT_CHANGESET}.tar.gz" 23HOTSPOT_FILE_UPSTREAM = "${HOTSPOT_CHANGESET}.tar.gz"
23HOTSPOT_URI = "${ICEDTEA_HG_URL}/hotspot/archive/${HOTSPOT_FILE};name=hotspot;unpack=false" 24HOTSPOT_FILE_DOWNLOAD = "hotspot-${HOTSPOT_CHANGESET}.tar.gz"
25HOTSPOT_URI = "${ICEDTEA_HG_URL}/hotspot/archive/${HOTSPOT_FILE_UPSTREAM};name=hotspot;unpack=false;downloadfilename=${HOTSPOT_FILE_DOWNLOAD}"
24SRC_URI[hotspot.md5sum] = "cb45a8f19d77acc1f4f48e75e36a27fe" 26SRC_URI[hotspot.md5sum] = "cb45a8f19d77acc1f4f48e75e36a27fe"
25SRC_URI[hotspot.sha256sum] = "22866990d143e76ced94b76defa3051e5e5d9a51fd272d63daa0df272d6406a2" 27SRC_URI[hotspot.sha256sum] = "22866990d143e76ced94b76defa3051e5e5d9a51fd272d63daa0df272d6406a2"
26 28
27CORBA_CHANGESET = "5617f6c5cc94" 29CORBA_CHANGESET = "5617f6c5cc94"
28CORBA_FILE = "${CORBA_CHANGESET}.tar.gz" 30CORBA_FILE_UPSTREAM = "${CORBA_CHANGESET}.tar.gz"
29CORBA_URI = "${ICEDTEA_HG_URL}/corba/archive/${CORBA_FILE};name=corba;unpack=false" 31CORBA_FILE_DOWNLOAD = "corba-${CORBA_CHANGESET}.tar.gz"
32CORBA_URI = "${ICEDTEA_HG_URL}/corba/archive/${CORBA_FILE_UPSTREAM};name=corba;unpack=false;downloadfilename=${CORBA_FILE_DOWNLOAD}"
30SRC_URI[corba.md5sum] = "920f1a788a7fdef29a5cd70892331251" 33SRC_URI[corba.md5sum] = "920f1a788a7fdef29a5cd70892331251"
31SRC_URI[corba.sha256sum] = "963915483530f311ff313635f79ed11ea7ce5a1c0dbee5d1acb1994132857fa3" 34SRC_URI[corba.sha256sum] = "963915483530f311ff313635f79ed11ea7ce5a1c0dbee5d1acb1994132857fa3"
32 35
33JAXP_CHANGESET = "7a8825b15df6" 36JAXP_CHANGESET = "7a8825b15df6"
34JAXP_FILE = "${JAXP_CHANGESET}.tar.gz" 37JAXP_FILE_UPSTREAM = "${JAXP_CHANGESET}.tar.gz"
35JAXP_URI = "${ICEDTEA_HG_URL}/jaxp/archive/${JAXP_FILE};name=jaxp;unpack=false" 38JAXP_FILE_DOWNLOAD = "jaxp-${JAXP_CHANGESET}.tar.gz"
39JAXP_URI = "${ICEDTEA_HG_URL}/jaxp/archive/${JAXP_FILE_UPSTREAM};name=jaxp;unpack=false;downloadfilename=${JAXP_FILE_DOWNLOAD}"
36SRC_URI[jaxp.md5sum] = "a0982b6df79739127871e355a40ca5a6" 40SRC_URI[jaxp.md5sum] = "a0982b6df79739127871e355a40ca5a6"
37SRC_URI[jaxp.sha256sum] = "297c8dbeed5afa5395b6be06b17282d53f8a888c2909074dfc1605afc0daf1c2" 41SRC_URI[jaxp.sha256sum] = "297c8dbeed5afa5395b6be06b17282d53f8a888c2909074dfc1605afc0daf1c2"
38 42
39JAXWS_CHANGESET = "7edfbfe974f2" 43JAXWS_CHANGESET = "7edfbfe974f2"
40JAXWS_FILE = "${JAXWS_CHANGESET}.tar.gz" 44JAXWS_FILE_UPSTREAM = "${JAXWS_CHANGESET}.tar.gz"
41JAXWS_URI = "${ICEDTEA_HG_URL}/jaxws/archive/${JAXWS_FILE};name=jaxws;unpack=false" 45JAXWS_FILE_DOWNLOAD = "jaxws-${JAXWS_CHANGESET}.tar.gz"
46JAXWS_URI = "${ICEDTEA_HG_URL}/jaxws/archive/${JAXWS_FILE_UPSTREAM};name=jaxws;unpack=false;downloadfilename=${JAXWS_FILE_DOWNLOAD}"
42SRC_URI[jaxws.md5sum] = "2deecec809ea8e38835678889c2bc3ac" 47SRC_URI[jaxws.md5sum] = "2deecec809ea8e38835678889c2bc3ac"
43SRC_URI[jaxws.sha256sum] = "823ca6b8fd780bf1b1565a90cfc8ec6f0ee422a5d25ffb20b1ce0272dc4955aa" 48SRC_URI[jaxws.sha256sum] = "823ca6b8fd780bf1b1565a90cfc8ec6f0ee422a5d25ffb20b1ce0272dc4955aa"
44 49
45JDK_CHANGESET = "d5ddeffc4651" 50JDK_CHANGESET = "d5ddeffc4651"
46JDK_FILE = "${JDK_CHANGESET}.tar.gz" 51JDK_FILE_UPSTREAM = "${JDK_CHANGESET}.tar.gz"
47JDK_URI = "${ICEDTEA_HG_URL}/jdk/archive/${JDK_FILE};name=jdk;unpack=false" 52JDK_FILE_DOWNLOAD = "jdk-${JDK_CHANGESET}.tar.gz"
53JDK_URI = "${ICEDTEA_HG_URL}/jdk/archive/${JDK_FILE_UPSTREAM};name=jdk;unpack=false;downloadfilename=${JDK_FILE_DOWNLOAD}"
48SRC_URI[jdk.md5sum] = "27c28d6be213df818490e69f12efe475" 54SRC_URI[jdk.md5sum] = "27c28d6be213df818490e69f12efe475"
49SRC_URI[jdk.sha256sum] = "e83e6234842376147a4c32451f23d629ba107e908ebdb0f367657f9cc6c1be98" 55SRC_URI[jdk.sha256sum] = "e83e6234842376147a4c32451f23d629ba107e908ebdb0f367657f9cc6c1be98"
50 56
51LANGTOOLS_CHANGESET = "b534c4c6cd9b" 57LANGTOOLS_CHANGESET = "b534c4c6cd9b"
52LANGTOOLS_FILE = "${LANGTOOLS_CHANGESET}.tar.gz" 58LANGTOOLS_FILE_UPSTREAM = "${LANGTOOLS_CHANGESET}.tar.gz"
53LANGTOOLS_URI = "${ICEDTEA_HG_URL}/langtools/archive/${LANGTOOLS_FILE};name=langtools;unpack=false" 59LANGTOOLS_FILE_DOWNLOAD = "langtools-${LANGTOOLS_CHANGESET}.tar.gz"
60LANGTOOLS_URI = "${ICEDTEA_HG_URL}/langtools/archive/${LANGTOOLS_FILE_UPSTREAM};name=langtools;unpack=false;downloadfilename=${LANGTOOLS_FILE_DOWNLOAD}"
54SRC_URI[langtools.md5sum] = "16b72f3fea8ac4e5b50de693e87f9c53" 61SRC_URI[langtools.md5sum] = "16b72f3fea8ac4e5b50de693e87f9c53"
55SRC_URI[langtools.sha256sum] = "c77dd42d83f06d18fa8aa65c93d137608a2e02cf24b68fc10d7b1c0bcc12a93c" 62SRC_URI[langtools.sha256sum] = "c77dd42d83f06d18fa8aa65c93d137608a2e02cf24b68fc10d7b1c0bcc12a93c"
56 63
57CACAO_VERSION = "a567bcb7f589" 64CACAO_VERSION = "a567bcb7f589"
58CACAO_FILE = "${CACAO_VERSION}.tar.gz" 65CACAO_FILE_UPSTREAM = "${CACAO_VERSION}.tar.gz"
59CACAO_URI = "http://icedtea.wildebeest.org/download/drops/cacao/${CACAO_FILE};name=cacao;unpack=false" 66CACAO_FILE_DOWNLOAD = "cacao-${CACAO_VERSION}.tar.gz"
67CACAO_URI = "http://icedtea.wildebeest.org/download/drops/cacao/${CACAO_FILE_UPSTREAM};name=cacao;unpack=false;downloadfilename=${CACAO_FILE_DOWNLOAD}"
60SRC_URI[cacao.md5sum] = "ec1def7f0d3d25e9e7da47c480f26a73" 68SRC_URI[cacao.md5sum] = "ec1def7f0d3d25e9e7da47c480f26a73"
61SRC_URI[cacao.sha256sum] = "d49f79debc131a5694cae6ab3ba2864e7f3249ee8d9dc09aae8afdd4dc6b09f9" 69SRC_URI[cacao.sha256sum] = "d49f79debc131a5694cae6ab3ba2864e7f3249ee8d9dc09aae8afdd4dc6b09f9"
62 70
@@ -93,6 +101,7 @@ OPENJDK_PATCHES = " \
93 file://icedtea-jdk-unzip.patch;apply=no \ 101 file://icedtea-jdk-unzip.patch;apply=no \
94 file://icedtea-hotspot-handle-gcc7-format-overflow.patch;apply=no \ 102 file://icedtea-hotspot-handle-gcc7-format-overflow.patch;apply=no \
95 file://icedtea-hotspot-fix-prefix_relocInfo-declaration.patch;apply=no \ 103 file://icedtea-hotspot-fix-prefix_relocInfo-declaration.patch;apply=no \
104 file://icedtea-jdk-replace-sys-sysctl.patch;apply=no \
96 " 105 "
97 106
98OPENJDK_HEADLESS_PATCHES = " \ 107OPENJDK_HEADLESS_PATCHES = " \
@@ -118,9 +127,10 @@ export DISTRIBUTION_PATCHES = " \
118 patches/icedtea-jdk-unzip.patch \ 127 patches/icedtea-jdk-unzip.patch \
119 patches/icedtea-hotspot-handle-gcc7-format-overflow.patch \ 128 patches/icedtea-hotspot-handle-gcc7-format-overflow.patch \
120 patches/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch \ 129 patches/icedtea-hotspot-fix-prefix_relocInfo-declaration.patch \
130 patches/icedtea-jdk-replace-sys-sysctl.patch \
121 ${CLEAN_X11_DISTRIBUTION_PATCH} \ 131 ${CLEAN_X11_DISTRIBUTION_PATCH} \
122 " 132 "
123 133
124# readdir_r was deprecated in glibc-2.24. Ignore the error for now 134# readdir_r was deprecated in glibc-2.24. Ignore the error for now
125# NOTE: When updating the recipe, please check if this is still needed 135# NOTE: When updating the recipe, please check if this is still needed
126CFLAGS_append = " -Wno-error=deprecated-declarations" 136CFLAGS:append = " -Wno-error=deprecated-declarations"
diff --git a/recipes-core/jakarta-commons/commons-beanutils_1.8.0.bb b/recipes-core/jakarta-commons/commons-beanutils_1.8.0.bb
index 06287f6..2c5ecc2 100644
--- a/recipes-core/jakarta-commons/commons-beanutils_1.8.0.bb
+++ b/recipes-core/jakarta-commons/commons-beanutils_1.8.0.bb
@@ -7,7 +7,7 @@ DESCRIPTION = "Static utility methods useful in manipulating Java classes that c
7SRC_URI = "http://www.apache.org/dist/commons/beanutils/source/${BP}-src.tar.gz" 7SRC_URI = "http://www.apache.org/dist/commons/beanutils/source/${BP}-src.tar.gz"
8 8
9DEPENDS += "commons-collections3 commons-logging" 9DEPENDS += "commons-collections3 commons-logging"
10RDEPENDS_${PN} = "libcommons-collections3-java libcommons-logging-java" 10RDEPENDS:${PN} = "libcommons-collections3-java libcommons-logging-java"
11 11
12CP = "commons-collections3 commons-logging" 12CP = "commons-collections3 commons-logging"
13 13
diff --git a/recipes-core/jakarta-commons/commons-configuration_1.5.bb b/recipes-core/jakarta-commons/commons-configuration_1.5.bb
deleted file mode 100644
index 0f8a166..0000000
--- a/recipes-core/jakarta-commons/commons-configuration_1.5.bb
+++ /dev/null
@@ -1,28 +0,0 @@
1require jakarta-commons.inc
2
3PR = "${INC_PR}.1"
4
5SUMMARY = "Generic configuration interface for Java applications"
6
7SRC_URI = " \
8 http://archive.apache.org/dist/commons/configuration/source/${BP}-src.tar.gz;name=archive \
9 http://ftp.hosting-studio.de/pub/linux/apache/ant/source/apache-ant-1.7.1-src.tar.bz2;name=ant \
10 "
11
12PNBLACKLIST[commons-configuration] ?= "BROKEN: indirectly depends on broken 'xom'"
13
14DEPENDS += "commons-logging commons-collections3 commons-beanutils commons-codec commons-digester commons-jxpath commons-lang servlet2.4"
15RDEPENDS_${PN} = "libcommons-logging-java libcommons-collections3-java libcommons-beanutils-java libcommons-codec-java libcommons-digester-java libcommons-jxpath-java libcommons-lang-java libservlet2.4-java"
16
17CP = "commons-logging commons-collections3 commons-beanutils commons-codec commons-digester commons-jxpath commons-lang servlet-api-2.4"
18
19# Makes use of -sourcepath hack: We inject Ant sourcefiles into the build and remove them
20# afterwards.
21COMPILE_SOURCEPATH = "${WORKDIR}/apache-ant-1.7.1/src/main:src/java"
22
23CLEAN_PATH = "build/org/apache/tools"
24
25SRC_URI[archive.md5sum] = "6a019d26d576a87eda2ef84c8ffc2e31"
26SRC_URI[archive.sha256sum] = "06e5dd81c1302118298156f70b8138fa131ed8f258671b1b67e36a34d80357a0"
27SRC_URI[ant.md5sum] = "0d68db4a1ada5c91bcbf53cefd0c2fd7"
28SRC_URI[ant.sha256sum] = "4dc49a7260ef90a6dc6611b7e96b9f047d507589736d4a2ad6efbe3edfc6fba6"
diff --git a/recipes-core/jakarta-commons/commons-digester_1.8.bb b/recipes-core/jakarta-commons/commons-digester_1.8.bb
index 0f079f1..de264b8 100644
--- a/recipes-core/jakarta-commons/commons-digester_1.8.bb
+++ b/recipes-core/jakarta-commons/commons-digester_1.8.bb
@@ -7,7 +7,7 @@ SUMMARY = "Converts XML to a Java object by a set of mapping rules."
7SRC_URI = "http://archive.apache.org/dist/commons/digester/source/${BP}-src.tar.gz" 7SRC_URI = "http://archive.apache.org/dist/commons/digester/source/${BP}-src.tar.gz"
8 8
9DEPENDS += "commons-logging commons-beanutils" 9DEPENDS += "commons-logging commons-beanutils"
10RDEPENDS_${PN} = "libcommons-logging-java libcommons-beanutils-java" 10RDEPENDS:${PN} = "libcommons-logging-java libcommons-beanutils-java"
11 11
12CP = "commons-logging commons-beanutils" 12CP = "commons-logging commons-beanutils"
13 13
diff --git a/recipes-core/jakarta-commons/commons-discovery_0.4.bb b/recipes-core/jakarta-commons/commons-discovery_0.4.bb
index 01cb54e..aa87349 100644
--- a/recipes-core/jakarta-commons/commons-discovery_0.4.bb
+++ b/recipes-core/jakarta-commons/commons-discovery_0.4.bb
@@ -8,7 +8,7 @@ SUMMARY = "discovering, or finding, implementations for pluggable interfaces"
8SRC_URI = "http://archive.apache.org/dist/commons/discovery/source/${BP}-src.tar.gz" 8SRC_URI = "http://archive.apache.org/dist/commons/discovery/source/${BP}-src.tar.gz"
9 9
10DEPENDS += "commons-logging" 10DEPENDS += "commons-logging"
11RDEPENDS_${PN} = "libcommons-logging-java" 11RDEPENDS:${PN} = "libcommons-logging-java"
12 12
13CP = "commons-logging" 13CP = "commons-logging"
14 14
diff --git a/recipes-core/jakarta-commons/commons-el_1.0.bb b/recipes-core/jakarta-commons/commons-el_1.0.bb
index 4174dce..bb4c35b 100644
--- a/recipes-core/jakarta-commons/commons-el_1.0.bb
+++ b/recipes-core/jakarta-commons/commons-el_1.0.bb
@@ -8,7 +8,7 @@ SUMMARY = "Implementation of the JSP2.0 Expression Language API"
8SRC_URI = "http://archive.apache.org/dist/commons/el/source/${BP}-src.tar.gz" 8SRC_URI = "http://archive.apache.org/dist/commons/el/source/${BP}-src.tar.gz"
9 9
10DEPENDS += "jsp2.0 servlet2.4" 10DEPENDS += "jsp2.0 servlet2.4"
11RDEPENDS_${PN} = "libjsp2.0-java libservlet2.4-java" 11RDEPENDS:${PN} = "libjsp2.0-java libservlet2.4-java"
12 12
13CP = "jsp-api-2.0 servlet-api-2.4" 13CP = "jsp-api-2.0 servlet-api-2.4"
14 14
diff --git a/recipes-core/jakarta-commons/commons-fileupload_1.2.1.bb b/recipes-core/jakarta-commons/commons-fileupload_1.2.1.bb
index dab7996..395fa15 100644
--- a/recipes-core/jakarta-commons/commons-fileupload_1.2.1.bb
+++ b/recipes-core/jakarta-commons/commons-fileupload_1.2.1.bb
@@ -8,7 +8,7 @@ DESCRIPTION = "Robust, high-performance, file upload capability for Java servlet
8SRC_URI = "http://archive.apache.org/dist/commons/fileupload/source/${BP}-src.tar.gz" 8SRC_URI = "http://archive.apache.org/dist/commons/fileupload/source/${BP}-src.tar.gz"
9 9
10DEPENDS += "commons-beanutils commons-io servlet2.3" 10DEPENDS += "commons-beanutils commons-io servlet2.3"
11RDEPENDS_${PN} = "libcommons-beanutils-java libcommons-io-java libservlet2.3-java" 11RDEPENDS:${PN} = "libcommons-beanutils-java libcommons-io-java libservlet2.3-java"
12 12
13CP = "commons-beanutils commons-io servlet-2.3" 13CP = "commons-beanutils commons-io servlet-2.3"
14 14
diff --git a/recipes-core/jakarta-commons/commons-httpclient_3.1.bb b/recipes-core/jakarta-commons/commons-httpclient_3.1.bb
index 8daed1b..a6fb53b 100644
--- a/recipes-core/jakarta-commons/commons-httpclient_3.1.bb
+++ b/recipes-core/jakarta-commons/commons-httpclient_3.1.bb
@@ -10,8 +10,8 @@ SRC_URI = "http://archive.apache.org/dist/httpcomponents/commons-httpclient/sour
10S = "${WORKDIR}/${BP}" 10S = "${WORKDIR}/${BP}"
11 11
12DEPENDS += "commons-logging commons-codec" 12DEPENDS += "commons-logging commons-codec"
13RDEPENDS_${PN} = "libcommons-logging-java libcommons-codec-java" 13RDEPENDS:${PN} = "libcommons-logging-java libcommons-codec-java"
14RDEPENDS_${PN}_class-native = "" 14RDEPENDS:${PN}:class-native = ""
15 15
16CP = "commons-logging commons-codec" 16CP = "commons-logging commons-codec"
17 17
diff --git a/recipes-core/jakarta-commons/commons-jxpath_1.3.bb b/recipes-core/jakarta-commons/commons-jxpath_1.3.bb
deleted file mode 100644
index 3561444..0000000
--- a/recipes-core/jakarta-commons/commons-jxpath_1.3.bb
+++ /dev/null
@@ -1,17 +0,0 @@
1require jakarta-commons.inc
2
3PR = "${INC_PR}.1"
4
5SUMMARY = "JXPath interpreter for Java"
6
7SRC_URI = "http://archive.apache.org/dist/commons/jxpath/source/${BP}-src.tar.gz"
8
9PNBLACKLIST[commons-jxpath] ?= "BROKEN: indirectly depends on broken 'xom'"
10
11DEPENDS += "commons-logging commons-collections3 commons-beanutils servlet2.3 jdom"
12RDEPENDS_${PN} = "libcommons-logging-java libcommons-collections3-java libcommons-beanutils-java libservlet2.3-java libjdom-java"
13
14CP = "commons-logging commons-collections3 commons-beanutils servlet-2.3 jdom"
15
16SRC_URI[md5sum] = "9af6ed5d009061986d709a370829860e"
17SRC_URI[sha256sum] = "da314198d75c6da660e2603bd1543a8f5d0b640c5144b748e62e59afc278efe6"
diff --git a/recipes-core/jakarta-commons/commons-net_1.4.1.bb b/recipes-core/jakarta-commons/commons-net_1.4.1.bb
index 5737c46..ba62ebc 100644
--- a/recipes-core/jakarta-commons/commons-net_1.4.1.bb
+++ b/recipes-core/jakarta-commons/commons-net_1.4.1.bb
@@ -11,8 +11,8 @@ S = "${WORKDIR}/${BP}"
11 11
12DEPENDS += "oro" 12DEPENDS += "oro"
13 13
14RDEPENDS_${PN} = "liboro-java" 14RDEPENDS:${PN} = "liboro-java"
15RDEPENDS_${PN}_class-native = "" 15RDEPENDS:${PN}:class-native = ""
16 16
17CP = "oro" 17CP = "oro"
18 18
diff --git a/recipes-core/jakarta-libs/bsf_2.4.0.bb b/recipes-core/jakarta-libs/bsf_2.4.0.bb
index a79cbf4..22d9320 100644
--- a/recipes-core/jakarta-libs/bsf_2.4.0.bb
+++ b/recipes-core/jakarta-libs/bsf_2.4.0.bb
@@ -4,7 +4,7 @@ LICENSE = "Apache-2.0"
4PR = "r2" 4PR = "r2"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b1e01b26bacfc2232046c90a330332b3" 5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b1e01b26bacfc2232046c90a330332b3"
6 6
7SRC_URI = "http://archive.apache.org/dist/jakarta/bsf/source/bsf-src-${PV}.tar.gz" 7SRC_URI = "https://dlcdn.apache.org/commons/bsf/source/bsf-src-${PV}.tar.gz"
8 8
9PACKAGE_ARCH = "${TUNE_PKGARCH}" 9PACKAGE_ARCH = "${TUNE_PKGARCH}"
10 10
diff --git a/recipes-core/jamvm/jamvm-initial-native_1.4.5.bb b/recipes-core/jamvm/jamvm-initial-native_1.4.5.bb
index bf005db..7773409 100644
--- a/recipes-core/jamvm/jamvm-initial-native_1.4.5.bb
+++ b/recipes-core/jamvm/jamvm-initial-native_1.4.5.bb
@@ -1,6 +1,6 @@
1SUMMARY = "A compact Java Virtual Machine which conforms to the JVM specification version 2." 1SUMMARY = "A compact Java Virtual Machine which conforms to the JVM specification version 2."
2HOMEPAGE = "http://jamvm.sourceforge.net/" 2HOMEPAGE = "http://jamvm.sourceforge.net/"
3LICENSE = "GPL" 3LICENSE = "GPL-2.0-or-later"
4LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" 4LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
5 5
6DEPENDS = "zlib-native classpath-initial-native jikes-initial-native libffi-native" 6DEPENDS = "zlib-native classpath-initial-native jikes-initial-native libffi-native"
@@ -20,7 +20,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \
20# This uses 32 bit arm, so force the instruction set to arm, not thumb 20# This uses 32 bit arm, so force the instruction set to arm, not thumb
21ARM_INSTRUCTION_SET = "arm" 21ARM_INSTRUCTION_SET = "arm"
22 22
23inherit native autotools pkgconfig 23inherit autotools pkgconfig native
24 24
25# libdir must be modified so that jamvm-initial and -native 25# libdir must be modified so that jamvm-initial and -native
26# do not interfere 26# do not interfere
@@ -38,7 +38,7 @@ CFLAGS += "-DDEFAULT_MAX_HEAP=512*MB"
38EXTRA_OEMAKE = "JAVAC=${STAGING_BINDIR_NATIVE}/jikes-initial \ 38EXTRA_OEMAKE = "JAVAC=${STAGING_BINDIR_NATIVE}/jikes-initial \
39 GLIBJ_ZIP=${STAGING_DATADIR_NATIVE}/classpath-inital/glibj.zip \ 39 GLIBJ_ZIP=${STAGING_DATADIR_NATIVE}/classpath-inital/glibj.zip \
40 " 40 "
41do_install_append() { 41do_install:append() {
42 install -d ${D}${bindir}/ 42 install -d ${D}${bindir}/
43 install -m 0755 ${WORKDIR}/java-initial ${D}${bindir}/ 43 install -m 0755 ${WORKDIR}/java-initial ${D}${bindir}/
44} 44}
diff --git a/recipes-core/jamvm/jamvm.inc b/recipes-core/jamvm/jamvm.inc
index b03a5b9..693817f 100644
--- a/recipes-core/jamvm/jamvm.inc
+++ b/recipes-core/jamvm/jamvm.inc
@@ -4,25 +4,25 @@ LICENSE = "GPL-2.0"
4LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" 4LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
5 5
6DEPENDS = "zlib classpath virtual/javac-native libffi virtual/java-initial-native" 6DEPENDS = "zlib classpath virtual/javac-native libffi virtual/java-initial-native"
7DEPENDS_class-native = "virtual/java-initial-native classpath-initial-native zlib-native classpath-native ecj-initial-native libffi-native" 7DEPENDS:class-native = "virtual/java-initial-native classpath-initial-native zlib-native classpath-native ecj-initial-native libffi-native"
8 8
9RDEPENDS_${PN} = "classpath" 9RDEPENDS:${PN} = "classpath"
10RDEPENDS_${PN}_class-native = "" 10RDEPENDS:${PN}:class-native = ""
11 11
12PROVIDES_class-native = "virtual/java-native" 12PROVIDES:class-native = "virtual/java-native"
13RPROVIDES_${PN} = "java2-runtime" 13RPROVIDES:${PN} = "java2-runtime"
14RPROVIDES_${PN}_class-native = "" 14RPROVIDES:${PN}:class-native = ""
15 15
16BBCLASSEXTEND = "native" 16BBCLASSEXTEND = "native"
17 17
18inherit java autotools update-alternatives pkgconfig relative_symlinks features_check 18inherit java autotools update-alternatives pkgconfig relative_symlinks features_check
19 19
20REQUIRED_DISTRO_FEATURES_class-target = "x11" 20REQUIRED_DISTRO_FEATURES:class-target = "x11"
21 21
22# This uses 32 bit arm, so force the instruction set to arm, not thumb 22# This uses 32 bit arm, so force the instruction set to arm, not thumb
23ARM_INSTRUCTION_SET = "arm" 23ARM_INSTRUCTION_SET = "arm"
24 24
25do_configure_append_class-native() { 25do_configure:append:class-native() {
26 sed -i -e"s|STAGING_LIBDIR_NATIVE|${STAGING_LIBDIR_NATIVE}|g" \ 26 sed -i -e"s|STAGING_LIBDIR_NATIVE|${STAGING_LIBDIR_NATIVE}|g" \
27 -e "s|STAGING_DATADIR_NATIVE|${STAGING_DATADIR_NATIVE}|g" \ 27 -e "s|STAGING_DATADIR_NATIVE|${STAGING_DATADIR_NATIVE}|g" \
28 ${WORKDIR}/java 28 ${WORKDIR}/java
@@ -32,28 +32,28 @@ do_configure_append_class-native() {
32EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi --disable-int-inlining" 32EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi --disable-int-inlining"
33 33
34# Needed for big compilation targets like OpenJDK 34# Needed for big compilation targets like OpenJDK
35CFLAGS_append_class-native = " -DDEFAULT_MAX_HEAP=1024*MB" 35CFLAGS:append:class-native = " -DDEFAULT_MAX_HEAP=1024*MB"
36 36
37EXTRA_OEMAKE = "JAVAC=${STAGING_BINDIR_NATIVE}/javac \ 37EXTRA_OEMAKE = "JAVAC=${STAGING_BINDIR_NATIVE}/javac \
38 GLIBJ_ZIP=${STAGING_DATADIR_NATIVE}/classpath/glibj.zip \ 38 GLIBJ_ZIP=${STAGING_DATADIR_NATIVE}/classpath/glibj.zip \
39 " 39 "
40# Enforce usage of ecj-initial. 40# Enforce usage of ecj-initial.
41EXTRA_OEMAKE_class-native = "JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial \ 41EXTRA_OEMAKE:class-native = "JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial \
42 GLIBJ_ZIP=${STAGING_DATADIR_NATIVE}/classpath/glibj.zip \ 42 GLIBJ_ZIP=${STAGING_DATADIR_NATIVE}/classpath/glibj.zip \
43 " 43 "
44 44
45do_install_append_class-native() { 45do_install:append:class-native() {
46 install -d ${D}${bindir} 46 install -d ${D}${bindir}
47 install -m 0755 ${WORKDIR}/java ${D}${bindir}/java 47 install -m 0755 ${WORKDIR}/java ${D}${bindir}/java
48 48
49} 49}
50 50
51PRIVATE_LIBS = "libjvm.so" 51PRIVATE_LIBS = "libjvm.so"
52INSANE_SKIP_${PN} = "dev-so" 52INSANE_SKIP:${PN} = "dev-so"
53 53
54FILES_${PN} += "${libdir}/jamvm/lib*.so" 54FILES:${PN} += "${libdir}/jamvm/lib*.so"
55 55
56ALTERNATIVE_${PN} = "java" 56ALTERNATIVE:${PN} = "java"
57ALTERNATIVE_TARGET = "${bindir}/jamvm" 57ALTERNATIVE_TARGET = "${bindir}/jamvm"
58ALTERNATIVE_PRIORITY = "4" 58ALTERNATIVE_PRIORITY = "4"
59# shared state for jamvm-native does not work 59# shared state for jamvm-native does not work
diff --git a/recipes-core/jamvm/jamvm_git.bb b/recipes-core/jamvm/jamvm_git.bb
index 57f7e64..34861ac 100644
--- a/recipes-core/jamvm/jamvm_git.bb
+++ b/recipes-core/jamvm/jamvm_git.bb
@@ -6,7 +6,7 @@ require jamvm.inc
6SRCREV = "6cef41d859fbc9ce7868a97cb2cb5dd2b10b9103" 6SRCREV = "6cef41d859fbc9ce7868a97cb2cb5dd2b10b9103"
7PV = "2.0.0-devel+git${SRCPV}" 7PV = "2.0.0-devel+git${SRCPV}"
8 8
9SRC_URI = "git://git.code.sf.net/p/jamvm/code;protocol=git \ 9SRC_URI = "git://git.code.sf.net/p/jamvm/code;protocol=git;branch=master \
10 file://jamvm-jni_h-noinst.patch \ 10 file://jamvm-jni_h-noinst.patch \
11 file://libffi.patch \ 11 file://libffi.patch \
12 file://jamvm-minmax-heap.patch \ 12 file://jamvm-minmax-heap.patch \
@@ -15,4 +15,4 @@ SRC_URI = "git://git.code.sf.net/p/jamvm/code;protocol=git \
15 15
16S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"
17 17
18COMPATIBLE_MACHINE_aarch64 = "-" 18COMPATIBLE_MACHINE:aarch64 = "-"
diff --git a/recipes-core/javasqlite/javasqlite_20150419.bb b/recipes-core/javasqlite/javasqlite_20150419.bb
index 06fbac2..45262e2 100644
--- a/recipes-core/javasqlite/javasqlite_20150419.bb
+++ b/recipes-core/javasqlite/javasqlite_20150419.bb
@@ -5,7 +5,7 @@ This is a Java wrapper including a basic JDBC driver for the SQLite 2/3 \
5database engine. It is designed using JNI to interface to the SQLite API. \ 5database engine. It is designed using JNI to interface to the SQLite API. \
6That API is wrapped by methods in the SQLite.Database class." 6That API is wrapped by methods in the SQLite.Database class."
7 7
8LICENSE = "BSD" 8LICENSE = "MIT-Modern-Variant"
9SECTION = "application" 9SECTION = "application"
10PR = "r1" 10PR = "r1"
11SRC_URI = " \ 11SRC_URI = " \
@@ -18,8 +18,8 @@ LIC_FILES_CHKSUM = "file://license.terms;md5=3da0e50feac5f64f08184584a8cad58a"
18inherit autotools-brokensep 18inherit autotools-brokensep
19 19
20DEPENDS += "sqlite3 sqlite3-native icedtea7-native" 20DEPENDS += "sqlite3 sqlite3-native icedtea7-native"
21RDEPENDS_${PN} += "sqlite3" 21RDEPENDS:${PN} += "sqlite3"
22FILES_${PN} +="/usr/share" 22FILES:${PN} +="/usr/share"
23 23
24PARALLEL_MAKE = "-j 1" 24PARALLEL_MAKE = "-j 1"
25 25
@@ -35,13 +35,9 @@ EXTRA_OECONF = " \
35EXTRA_OEMAKE = "DESTDIR=${D}" 35EXTRA_OEMAKE = "DESTDIR=${D}"
36 36
37# This dev package contains an '.so' file used for JNI development 37# This dev package contains an '.so' file used for JNI development
38INSANE_SKIP_${PN}-dev = "dev-elf" 38INSANE_SKIP:${PN}-dev = "dev-elf"
39 39
40do_configure_append (){ 40do_compile:prepend (){
41 cp ${S}/*-libtool ${S}/libtool
42}
43
44do_compile_prepend (){
45 echo '#!/bin/sh' > ${STAGING_BINDIR_NATIVE}/cc 41 echo '#!/bin/sh' > ${STAGING_BINDIR_NATIVE}/cc
46 echo '${BUILD_CC} $@' >> ${STAGING_BINDIR_NATIVE}/cc 42 echo '${BUILD_CC} $@' >> ${STAGING_BINDIR_NATIVE}/cc
47 chmod a+x ${STAGING_BINDIR_NATIVE}/cc 43 chmod a+x ${STAGING_BINDIR_NATIVE}/cc
diff --git a/recipes-core/jcraft/jsch_0.1.40.bb b/recipes-core/jcraft/jsch_0.1.40.bb
index 1d4b96b..aeb04b4 100644
--- a/recipes-core/jcraft/jsch_0.1.40.bb
+++ b/recipes-core/jcraft/jsch_0.1.40.bb
@@ -1,6 +1,6 @@
1SUMMARY = "SSH implementation in Java" 1SUMMARY = "SSH implementation in Java"
2HOMEPAGE = "http://www.jcraft.com/jsch" 2HOMEPAGE = "http://www.jcraft.com/jsch"
3LICENSE = "BSD" 3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=55e3b6a0987ccd0c34530f3df2d206ae" 4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=55e3b6a0987ccd0c34530f3df2d206ae"
5 5
6SRC_URI = "${SOURCEFORGE_MIRROR}/jsch/jsch-${PV}.zip" 6SRC_URI = "${SOURCEFORGE_MIRROR}/jsch/jsch-${PV}.zip"
@@ -9,8 +9,8 @@ inherit java-library
9 9
10DEPENDS = "jzlib" 10DEPENDS = "jzlib"
11 11
12RDEPENDS_${PN} = "libjzlib-java" 12RDEPENDS:${PN} = "libjzlib-java"
13RDEPENDS_${PN}_class-native = "" 13RDEPENDS:${PN}:class-native = ""
14 14
15do_compile() { 15do_compile() {
16 mkdir -p build 16 mkdir -p build
@@ -25,5 +25,7 @@ do_compile() {
25SRC_URI[md5sum] = "b59cec19a487e95aed68378976b4b566" 25SRC_URI[md5sum] = "b59cec19a487e95aed68378976b4b566"
26SRC_URI[sha256sum] = "ca9d2ae08fd7a8983fb00d04f0f0c216a985218a5eb364ff9bee73870f28e097" 26SRC_URI[sha256sum] = "ca9d2ae08fd7a8983fb00d04f0f0c216a985218a5eb364ff9bee73870f28e097"
27 27
28CVE_STATUS[CVE-2016-5725] = "not-applicable-platform: Issue only applies on Windows"
29
28BBCLASSEXTEND = "native" 30BBCLASSEXTEND = "native"
29 31
diff --git a/recipes-core/jcraft/jzlib_1.0.7.bb b/recipes-core/jcraft/jzlib_1.0.7.bb
index 70b5212..1e34d2c 100644
--- a/recipes-core/jcraft/jzlib_1.0.7.bb
+++ b/recipes-core/jcraft/jzlib_1.0.7.bb
@@ -1,5 +1,5 @@
1SUMMARY = "zlib implementation in Java" 1SUMMARY = "zlib implementation in Java"
2LICENSE = "BSD" 2LICENSE = "BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a2b2e5b95bf768dd5c4ca097c9cde9e9" 3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a2b2e5b95bf768dd5c4ca097c9cde9e9"
4 4
5HOMEPAGE = "http://www.jcraft.com/jzlib" 5HOMEPAGE = "http://www.jcraft.com/jzlib"
diff --git a/recipes-core/jdepend/jdepend_2.9.1.bb b/recipes-core/jdepend/jdepend_2.9.1.bb
index 7c6cc8c..1fa156c 100644
--- a/recipes-core/jdepend/jdepend_2.9.1.bb
+++ b/recipes-core/jdepend/jdepend_2.9.1.bb
@@ -1,12 +1,12 @@
1SUMMARY = "Design quality metrics generator for each Java" 1SUMMARY = "Design quality metrics generator for each Java"
2 2
3# see https://github.com/clarkware/jdepend/blob/master/LICENSE 3# see https://github.com/clarkware/jdepend/blob/master/LICENSE
4LICENSE = "BSD" 4LICENSE = "BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=f5777d32a7709d558c2877d4a6616230" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=f5777d32a7709d558c2877d4a6616230"
6 6
7HOMEPAGE = "https://github.com/clarkware/jdepend" 7HOMEPAGE = "https://github.com/clarkware/jdepend"
8 8
9SRC_URI = "git://github.com/clarkware/jdepend" 9SRC_URI = "git://github.com/clarkware/jdepend;protocol=https;branch=master"
10SRCREV = "57980590313a5dbde236a3eb2c8958e9e53e6a10" 10SRCREV = "57980590313a5dbde236a3eb2c8958e9e53e6a10"
11S = "${WORKDIR}/git" 11S = "${WORKDIR}/git"
12 12
diff --git a/recipes-core/jikes/jikes_1.22.bb b/recipes-core/jikes/jikes_1.22.bb
index 233005a..3e83ff8 100644
--- a/recipes-core/jikes/jikes_1.22.bb
+++ b/recipes-core/jikes/jikes_1.22.bb
@@ -13,14 +13,14 @@ inherit autotools update-alternatives relative_symlinks
13 13
14BBCLASSEXTEND = "native" 14BBCLASSEXTEND = "native"
15 15
16RDEPENDS_${PN} = "classpath" 16RDEPENDS:${PN} = "classpath"
17PROVIDES_class-native = "" 17PROVIDES:class-native = ""
18RDEPENDS_${PN}_class-native = "" 18RDEPENDS:${PN}:class-native = ""
19 19
20EXTRA_OECONF = "--disable-fp-emulation --enable-source15" 20EXTRA_OECONF = "--disable-fp-emulation --enable-source15"
21 21
22# configure script incorrectly defines these when cross compiling for ARM 22# configure script incorrectly defines these when cross compiling for ARM
23CXXFLAGS_append_arm += "-UHAVE_64BIT_TYPES -DWORDS_BIGENDIAN=1" 23CXXFLAGS:append:arm = " -UHAVE_64BIT_TYPES -DWORDS_BIGENDIAN=1"
24 24
25do_install() { 25do_install() {
26 oe_runmake 'DESTDIR=${D}' install 26 oe_runmake 'DESTDIR=${D}' install
@@ -28,7 +28,7 @@ do_install() {
28} 28}
29 29
30PROVIDES = "virtual/javac" 30PROVIDES = "virtual/javac"
31ALTERNATIVE_${PN} = "javac" 31ALTERNATIVE:${PN} = "javac"
32ALTERNATIVE_LINK = "/usr/bin/javac" 32ALTERNATIVE_LINK = "/usr/bin/javac"
33ALTERNATIVE_TARGET = "${bindir}/javac.jikes" 33ALTERNATIVE_TARGET = "${bindir}/javac.jikes"
34 34
diff --git a/recipes-core/jlex/jlex_1.2.6.bb b/recipes-core/jlex/jlex_1.2.6.bb
index b8f9ffb..48ec357 100644
--- a/recipes-core/jlex/jlex_1.2.6.bb
+++ b/recipes-core/jlex/jlex_1.2.6.bb
@@ -1,16 +1,18 @@
1SUMMARY = "Lexical analyzer generator for Java" 1SUMMARY = "Lexical analyzer generator for Java"
2AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian" 2AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian"
3
4JLEX_MAIN_FILENAME = "jlex-${PV}-Main.java"
3LICENSE = "JLEX" 5LICENSE = "JLEX"
4LIC_FILES_CHKSUM = "file://Main.java;beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a" 6LIC_FILES_CHKSUM = "file://${JLEX_MAIN_FILENAME};beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a"
5 7
6PACKAGE_ARCH = "${TUNE_PKGARCH}" 8PACKAGE_ARCH = "${TUNE_PKGARCH}"
7 9
8RDEPENDS_${PN} = "java2-runtime" 10RDEPENDS:${PN} = "java2-runtime"
9RDEPENDS_${PN}_class-native = "" 11RDEPENDS:${PN}:class-native = ""
10 12
11inherit java-library 13inherit java-library
12 14
13SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java \ 15SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java;downloadfilename=${JLEX_MAIN_FILENAME} \
14 file://jlex \ 16 file://jlex \
15 " 17 "
16 18
@@ -26,20 +28,21 @@ do_configure() {
26 28
27do_compile() { 29do_compile() {
28 mkdir -p build 30 mkdir -p build
31 cp ${JLEX_MAIN_FILENAME} Main.java
29 32
30 javac -d build Main.java 33 javac -d build Main.java
31 34
32 fastjar cf ${BP}.jar -C build . 35 fastjar cf ${BP}.jar -C build .
33} 36}
34 37
35do_install_append() { 38do_install:append() {
36 install -d ${D}${bindir} 39 install -d ${D}${bindir}
37 install -m 0755 jlex ${D}${bindir}/ 40 install -m 0755 jlex ${D}${bindir}/
38} 41}
39 42
40PACKAGES = "${PN}" 43PACKAGES = "${PN}"
41 44
42FILES_${PN} += "${datadir_java}" 45FILES:${PN} += "${datadir_java}"
43 46
44SRC_URI[md5sum] = "fe0cff5db3e2f0f5d67a153cf6c783af" 47SRC_URI[md5sum] = "fe0cff5db3e2f0f5d67a153cf6c783af"
45SRC_URI[sha256sum] = "aeebaece3b3a53972bb0ba0f810540386c267070ee9dca6ffa43c6ff74a54bd7" 48SRC_URI[sha256sum] = "aeebaece3b3a53972bb0ba0f810540386c267070ee9dca6ffa43c6ff74a54bd7"
diff --git a/recipes-core/junit/junit_3.8.2.bb b/recipes-core/junit/junit_3.8.2.bb
index b366910..57dd459 100644
--- a/recipes-core/junit/junit_3.8.2.bb
+++ b/recipes-core/junit/junit_3.8.2.bb
@@ -16,14 +16,14 @@ inherit java-library
16do_unpackpost[dirs] = "${B}" 16do_unpackpost[dirs] = "${B}"
17do_unpackpost() { 17do_unpackpost() {
18 mkdir -p src 18 mkdir -p src
19 # Prevent deletion by do_removebinaries. 19 # Prevent deletion by do_deletebinaries.
20 if [ -e src.jar ]; then 20 if [ -e src.jar ]; then
21 mv src.jar src.zip 21 mv src.jar src.zip
22 fi 22 fi
23 unzip -o src.zip -d src 23 unzip -o src.zip -d src
24} 24}
25 25
26addtask unpackpost before do_removebinaries after do_unpack 26addtask unpackpost before do_deletebinaries after do_unpack
27 27
28do_compile() { 28do_compile() {
29 mkdir -p build 29 mkdir -p build
diff --git a/recipes-core/libmatthew/libmatthew.inc b/recipes-core/libmatthew/libmatthew.inc
index 2119c0b..4157d51 100644
--- a/recipes-core/libmatthew/libmatthew.inc
+++ b/recipes-core/libmatthew/libmatthew.inc
@@ -5,11 +5,14 @@ SECTION = "libs"
5LICENSE = "MIT" 5LICENSE = "MIT"
6DEPENDS = "virtual/java-native classpath-native classpath" 6DEPENDS = "virtual/java-native classpath-native classpath"
7 7
8
8S = "${WORKDIR}/libmatthew-java-${PV}" 9S = "${WORKDIR}/libmatthew-java-${PV}"
9 10
10PACKAGE_ARCH = "${TUNE_PKGARCH}" 11PACKAGE_ARCH = "${TUNE_PKGARCH}"
11inherit java-library 12inherit java-library
12 13
14include recipes-core/classpath/classpath-features-check.inc
15
13# Some internal version numbers which change from time to time. 16# Some internal version numbers which change from time to time.
14# Allowing to override them makes this include file more 17# Allowing to override them makes this include file more
15# versatile. 18# versatile.
@@ -47,7 +50,7 @@ do_install() {
47 oe_libinstall -so libunix-java ${D}${libdir_jni} 50 oe_libinstall -so libunix-java ${D}${libdir_jni}
48} 51}
49 52
50do_install_append() { 53do_install:append() {
51 rm ${D}${datadir_java}/${PN}.jar 54 rm ${D}${datadir_java}/${PN}.jar
52} 55}
53PACKAGES = "\ 56PACKAGES = "\
@@ -56,17 +59,17 @@ PACKAGES = "\
56 ${PN}-io-java ${PN}-debug-java \ 59 ${PN}-io-java ${PN}-debug-java \
57" 60"
58 61
59FILES_libcgi-java = "${datadir_java}/cgi*.jar" 62FILES:libcgi-java = "${datadir_java}/cgi*.jar"
60FILES_libcgi-jni = "${libdir_jni}/libcgi-java.so" 63FILES:libcgi-jni = "${libdir_jni}/libcgi-java.so"
61FILES_libcgi-jni-dbg = "${libdir_jni}/.debug/libcgi-java.so" 64FILES:libcgi-jni-dbg = "${libdir_jni}/.debug/libcgi-java.so"
62RDEPENDS_libcgi-java = "libcgi-jni" 65RDEPENDS:libcgi-java = "libcgi-jni"
63 66
64FILES_libunixsocket-java = "${datadir_java}/unix*.jar" 67FILES:libunixsocket-java = "${datadir_java}/unix*.jar"
65FILES_libunixsocket-jni = "${libdir_jni}/libunix-java.so" 68FILES:libunixsocket-jni = "${libdir_jni}/libunix-java.so"
66FILES_libunixsocket-jni-dbg = "${libdir_jni}/.debug/libunix-java.so" 69FILES:libunixsocket-jni-dbg = "${libdir_jni}/.debug/libunix-java.so"
67RDEPENDS_libunixsocket-java = "libunixsocket-jni" 70RDEPENDS:libunixsocket-java = "libunixsocket-jni"
68 71
69FILES_${PN}-io-java = "${datadir_java}/io*.jar" 72FILES:${PN}-io-java = "${datadir_java}/io*.jar"
70 73
71FILES_${PN}-debug-java = "${datadir_java}/debug-*.jar ${datadir_java}/hexdump*.jar" 74FILES:${PN}-debug-java = "${datadir_java}/debug-*.jar ${datadir_java}/hexdump*.jar"
72 75
diff --git a/recipes-core/openjdk/openjdk-7-common.inc b/recipes-core/openjdk/openjdk-7-common.inc
index c87266d..cba1ea6 100644
--- a/recipes-core/openjdk/openjdk-7-common.inc
+++ b/recipes-core/openjdk/openjdk-7-common.inc
@@ -4,17 +4,17 @@ LICENSE = "GPL-2.0-with-classpath-exception"
4PRIORITY = "optional" 4PRIORITY = "optional"
5SECTION = "libs" 5SECTION = "libs"
6 6
7ICEDTEA_VERSION = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1].split("-")[1] or '1.0'}" 7ICEDTEA_VERSION = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1].split("-")[1] or '1.0'}"
8 8
9S = "${WORKDIR}/${ICEDTEA}" 9S = "${WORKDIR}/${ICEDTEA}"
10 10
11DEPENDS_append_libc-uclibc = " virtual/libiconv " 11DEPENDS:append_libc-uclibc = " virtual/libiconv "
12 12
13# The OpenJDK build with interpreter optimizations for ARM depends on a binary 13# The OpenJDK build with interpreter optimizations for ARM depends on a binary
14# that generates constants for an assembler source file. There is no other 14# that generates constants for an assembler source file. There is no other
15# way than to generate this on a pseudo machine. Cross-compiling would not help 15# way than to generate this on a pseudo machine. Cross-compiling would not help
16# because structure sizes and/or alignment may differ. 16# because structure sizes and/or alignment may differ.
17DEPENDS_append = " qemu-native " 17DEPENDS:append = " qemu-native "
18 18
19B = "${S}/build" 19B = "${S}/build"
20 20
@@ -138,14 +138,14 @@ EXTRA_OECONF += " \
138 --disable-system-sctp \ 138 --disable-system-sctp \
139" 139"
140 140
141do_configure_prepend() { 141do_configure:prepend() {
142 # Automatically copy everything that starts with "icedtea" (or "cacao") and ends with 142 # Automatically copy everything that starts with "icedtea" (or "cacao") and ends with
143 # ".patch" into the patches directory. 143 # ".patch" into the patches directory.
144 find ${WORKDIR} -maxdepth 1 -name "icedtea*.patch" -exec cp {} ${S}/patches \; 144 find ${WORKDIR} -maxdepth 1 -name "icedtea*.patch" -exec cp {} ${S}/patches \;
145 find ${WORKDIR} -maxdepth 1 -name "cacao*.patch" -exec cp {} ${S}/patches \; 145 find ${WORKDIR} -maxdepth 1 -name "cacao*.patch" -exec cp {} ${S}/patches \;
146} 146}
147 147
148do_configure_append() { 148do_configure:append() {
149 oe_runmake patch 149 oe_runmake patch
150} 150}
151 151
@@ -168,7 +168,7 @@ EXTRA_OEMAKE += ' \
168 168
169OE_LAUNCHER_LDFLAGS = "-Wl,-rpath-link,${STAGING_LIBDIR}/llvm${WANT_LLVM_RELEASE} -Wl,-rpath,${libdir}/llvm${WANT_LLVM_RELEASE}" 169OE_LAUNCHER_LDFLAGS = "-Wl,-rpath-link,${STAGING_LIBDIR}/llvm${WANT_LLVM_RELEASE} -Wl,-rpath,${libdir}/llvm${WANT_LLVM_RELEASE}"
170 170
171OE_LAUNCHER_LDFLAGS_arm = "" 171OE_LAUNCHER_LDFLAGS:arm = ""
172 172
173EXTRA_OEMAKE += 'OE_LAUNCHER_LDFLAGS="${OE_LAUNCHER_LDFLAGS}"' 173EXTRA_OEMAKE += 'OE_LAUNCHER_LDFLAGS="${OE_LAUNCHER_LDFLAGS}"'
174 174
@@ -229,7 +229,7 @@ PACKAGES = " \
229 ${JDKPN}-common \ 229 ${JDKPN}-common \
230" 230"
231 231
232FILES_${JDKPN}-dbg = "\ 232FILES:${JDKPN}-dbg = "\
233 ${JDK_HOME}/bin/.debug \ 233 ${JDK_HOME}/bin/.debug \
234 ${JDK_HOME}/lib/.debug \ 234 ${JDK_HOME}/lib/.debug \
235 ${JDK_HOME}/lib/${JDK_ARCH}/jli/.debug \ 235 ${JDK_HOME}/lib/${JDK_ARCH}/jli/.debug \
@@ -244,9 +244,9 @@ FILES_${JDKPN}-dbg = "\
244 ${JDK_HOME}/jre/lib/${JDK_ARCH}/client/.debug \ 244 ${JDK_HOME}/jre/lib/${JDK_ARCH}/client/.debug \
245" 245"
246 246
247FILES_${JDKPN}-demo = "${JDK_HOME}/demo ${JDK_HOME}/sample" 247FILES:${JDKPN}-demo = "${JDK_HOME}/demo ${JDK_HOME}/sample"
248RDEPENDS_${JDKPN}-demo = "${JDKPN}-jre" 248RDEPENDS:${JDKPN}-demo = "${JDKPN}-jre"
249FILES_${JDKPN}-demo-dbg = "\ 249FILES:${JDKPN}-demo-dbg = "\
250 ${JDK_HOME}/demo/jvmti/gctest/lib/.debug \ 250 ${JDK_HOME}/demo/jvmti/gctest/lib/.debug \
251 ${JDK_HOME}/demo/jvmti/heapTracker/lib/.debug \ 251 ${JDK_HOME}/demo/jvmti/heapTracker/lib/.debug \
252 ${JDK_HOME}/demo/jvmti/heapViewer/lib/.debug \ 252 ${JDK_HOME}/demo/jvmti/heapViewer/lib/.debug \
@@ -258,13 +258,13 @@ FILES_${JDKPN}-demo-dbg = "\
258 ${JDK_HOME}/demo/jvmti/compiledMethodLoad/lib/.debug \ 258 ${JDK_HOME}/demo/jvmti/compiledMethodLoad/lib/.debug \
259" 259"
260 260
261FILES_${JDKPN}-source = "${JDK_HOME}/src.zip" 261FILES:${JDKPN}-source = "${JDK_HOME}/src.zip"
262 262
263FILES_${JDKPN}-java = "${JDK_HOME}/jre/bin/java" 263FILES:${JDKPN}-java = "${JDK_HOME}/jre/bin/java"
264 264
265FILES_${JDKPN}-vm-zero = "${JDK_HOME}/jre/lib/${JDK_ARCH}/server/" 265FILES:${JDKPN}-vm-zero = "${JDK_HOME}/jre/lib/${JDK_ARCH}/server/"
266 266
267FILES_${JDKPN}-common = "${JDK_HOME}/jre/ASSEMBLY_EXCEPTION \ 267FILES:${JDKPN}-common = "${JDK_HOME}/jre/ASSEMBLY_EXCEPTION \
268 ${JDK_HOME}/jre/THIRD_PARTY_README \ 268 ${JDK_HOME}/jre/THIRD_PARTY_README \
269 ${JDK_HOME}/jre/LICENSE \ 269 ${JDK_HOME}/jre/LICENSE \
270 ${JDK_HOME}/ASSEMBLY_EXCEPTION \ 270 ${JDK_HOME}/ASSEMBLY_EXCEPTION \
@@ -274,7 +274,7 @@ FILES_${JDKPN}-common = "${JDK_HOME}/jre/ASSEMBLY_EXCEPTION \
274 ${JDK_HOME}/jre/lib \ 274 ${JDK_HOME}/jre/lib \
275" 275"
276 276
277FILES_${PN}_append = " \ 277FILES:${PN}:append = " \
278 ${JDK_HOME}/jre/bin/keytool \ 278 ${JDK_HOME}/jre/bin/keytool \
279 ${JDK_HOME}/jre/bin/orbd \ 279 ${JDK_HOME}/jre/bin/orbd \
280 ${JDK_HOME}/jre/bin/pack200 \ 280 ${JDK_HOME}/jre/bin/pack200 \
@@ -287,9 +287,9 @@ FILES_${PN}_append = " \
287 ${JDK_HOME}/jre/bin/javaws \ 287 ${JDK_HOME}/jre/bin/javaws \
288" 288"
289 289
290RDEPENDS_${JDKPN}-common = "librhino-java" 290RDEPENDS:${JDKPN}-common = "librhino-java"
291 291
292RPROVIDES_${JDKPN}-vm-zero = "java2-vm" 292RPROVIDES:${JDKPN}-vm-zero = "java2-vm"
293 293
294# Even though a vm is a hard dependency it is set as RRECOMMENDS so a single vm can get uninstalled: 294# Even though a vm is a hard dependency it is set as RRECOMMENDS so a single vm can get uninstalled:
295# root@beaglebone:~/java# opkg remove openjdk-7-vm-shark 295# root@beaglebone:~/java# opkg remove openjdk-7-vm-shark
@@ -298,39 +298,39 @@ RPROVIDES_${JDKPN}-vm-zero = "java2-vm"
298# * print_dependents_warning: Package openjdk-7-vm-shark is depended upon by packages: 298# * print_dependents_warning: Package openjdk-7-vm-shark is depended upon by packages:
299# * print_dependents_warning: openjdk-7-java 299# * print_dependents_warning: openjdk-7-java
300# * print_dependents_warning: These might cease to work if package openjdk-7-vm-shark is removed. 300# * print_dependents_warning: These might cease to work if package openjdk-7-vm-shark is removed.
301RRECOMMENDS_${JDKPN}-java = "java2-vm" 301RRECOMMENDS:${JDKPN}-java = "java2-vm"
302 302
303# For some reason shark and cacao do not automatically depends on -common. 303# For some reason shark and cacao do not automatically depends on -common.
304# So we add that manually. 304# So we add that manually.
305 305
306# There is a symlink to a .so but this one is valid. 306# There is a symlink to a .so but this one is valid.
307INSANE_SKIP_${JDKPN}-vm-zero = "dev-so" 307INSANE_SKIP:${JDKPN}-vm-zero = "dev-so"
308INSANE_SKIP_${JDKPN}-common = "dev-so" 308INSANE_SKIP:${JDKPN}-common = "dev-so"
309 309
310# libfreetype.so.6 is copied from STAGING_LIBDIR 310# libfreetype.so.6 is copied from STAGING_LIBDIR
311# which is already stripped. 311# which is already stripped.
312INSANE_SKIP_${JDKPN}-jre = "already-stripped" 312INSANE_SKIP:${JDKPN}-jre = "already-stripped"
313 313
314FILES_${JDKPN}-jdk = " \ 314FILES:${JDKPN}-jdk = " \
315 ${JDK_HOME}/bin \ 315 ${JDK_HOME}/bin \
316 ${JDK_HOME}/lib \ 316 ${JDK_HOME}/lib \
317 ${JDK_HOME}/include \ 317 ${JDK_HOME}/include \
318 ${JDK_HOME}${libdir}/jvm \ 318 ${JDK_HOME}${libdir}/jvm \
319" 319"
320RDEPENDS_${JDKPN}-jre = "${JDKPN}-java ${JDKPN}-common" 320RDEPENDS:${JDKPN}-jre = "${JDKPN}-java ${JDKPN}-common"
321RDEPENDS_${JDKPN}-java = "${JDKPN}-common" 321RDEPENDS:${JDKPN}-java = "${JDKPN}-common"
322RPROVIDES_${JDKPN}-jre = "java2-runtime" 322RPROVIDES:${JDKPN}-jre = "java2-runtime"
323 323
324RDEPENDS_${JDKPN}-jdk = "${JDKPN}-jre" 324RDEPENDS:${JDKPN}-jdk = "${JDKPN}-jre"
325 325
326FILES_${JDKPN}-doc = "${JDK_HOME}/man" 326FILES:${JDKPN}-doc = "${JDK_HOME}/man"
327 327
328# Name of the directory containing the compiled output 328# Name of the directory containing the compiled output
329BUILD_DIR = "openjdk.build" 329BUILD_DIR = "openjdk.build"
330BUILD_DIR_ECJ = "openjdk.build-ecj" 330BUILD_DIR_ECJ = "openjdk.build-ecj"
331 331
332# Force arm mode for now 332# Force arm mode for now
333ARM_INSTRUCTION_SET_armv4t = "ARM" 333ARM_INSTRUCTION_SET:armv4t = "ARM"
334 334
335ICEDTEA_URI = "http://icedtea.wildebeest.org/download/source/${ICEDTEA}.tar.gz;name=iced" 335ICEDTEA_URI = "http://icedtea.wildebeest.org/download/source/${ICEDTEA}.tar.gz;name=iced"
336 336
@@ -361,7 +361,7 @@ LANGTOOLS_URI = "${ICEDTEA_DROP_URL}/${LANGTOOLS_FILE};name=langtools;unpack=fal
361# handles all postinst action for openjdk 361# handles all postinst action for openjdk
362# some of the former results in a build error because "ERR" is in the first line. 362# some of the former results in a build error because "ERR" is in the first line.
363 363
364pkg_postinst_ontarget_${JDKPN}-vm-shark () { 364pkg_postinst_ontarget:${JDKPN}-vm-shark () {
365 true 365 true
366 if grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && ! grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then 366 if grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && ! grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then
367 sed -i -e "/\-shark.*/d" -e "s|\(^\-server*\)|\-shark KNOWN\n\1|" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 367 sed -i -e "/\-shark.*/d" -e "s|\(^\-server*\)|\-shark KNOWN\n\1|" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
@@ -370,7 +370,7 @@ pkg_postinst_ontarget_${JDKPN}-vm-shark () {
370 fi 370 fi
371} 371}
372 372
373pkg_prerm_${JDKPN}-vm-shark () { 373pkg_prerm:${JDKPN}-vm-shark () {
374 true 374 true
375 sed -i -e "/^\-shark.*/d" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 375 sed -i -e "/^\-shark.*/d" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
376 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then 376 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then
@@ -381,7 +381,7 @@ pkg_prerm_${JDKPN}-vm-shark () {
381 echo "-shark ERROR" >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 381 echo "-shark ERROR" >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
382} 382}
383 383
384pkg_postinst_ontarget_${JDKPN}-vm-cacao () { 384pkg_postinst_ontarget:${JDKPN}-vm-cacao () {
385 true 385 true
386 if grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && ! grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then 386 if grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && ! grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then
387 sed -i -e "/\-cacao.*/d" -e "s|\(^\-server*\)|\-cacao KNOWN\n\1|" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 387 sed -i -e "/\-cacao.*/d" -e "s|\(^\-server*\)|\-cacao KNOWN\n\1|" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
@@ -390,7 +390,7 @@ pkg_postinst_ontarget_${JDKPN}-vm-cacao () {
390 fi 390 fi
391} 391}
392 392
393pkg_prerm_${JDKPN}-vm-cacao () { 393pkg_prerm:${JDKPN}-vm-cacao () {
394 true 394 true
395 sed -i -e "/^\-cacao.*/d" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 395 sed -i -e "/^\-cacao.*/d" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
396 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then 396 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then
@@ -401,7 +401,7 @@ pkg_prerm_${JDKPN}-vm-cacao () {
401 echo "-cacao ERROR" >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 401 echo "-cacao ERROR" >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
402} 402}
403 403
404pkg_postinst_ontarget_${JDKPN}-vm-jamvm () { 404pkg_postinst_ontarget:${JDKPN}-vm-jamvm () {
405 true 405 true
406 if grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && ! grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then 406 if grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && ! grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then
407 sed -i -e "/\-jamvm.*/d" -e "s|\(^\-server*\)|\-jamvm KNOWN\n\1|" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 407 sed -i -e "/\-jamvm.*/d" -e "s|\(^\-server*\)|\-jamvm KNOWN\n\1|" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
@@ -410,7 +410,7 @@ pkg_postinst_ontarget_${JDKPN}-vm-jamvm () {
410 fi 410 fi
411} 411}
412 412
413pkg_prerm_${JDKPN}-vm-jamvm () { 413pkg_prerm:${JDKPN}-vm-jamvm () {
414 true 414 true
415 sed -i -e "/^\-jamvm.*/d" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 415 sed -i -e "/^\-jamvm.*/d" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
416 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then 416 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then
@@ -421,7 +421,7 @@ pkg_prerm_${JDKPN}-vm-jamvm () {
421 echo "-jamvm ERROR" >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 421 echo "-jamvm ERROR" >> ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
422} 422}
423 423
424pkg_postinst_ontarget_${JDKPN}-vm-zero () { 424pkg_postinst_ontarget:${JDKPN}-vm-zero () {
425 true 425 true
426 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then 426 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg && grep -q "\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then
427 FIRST_KNOWN=`grep "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg | head -n 1` 427 FIRST_KNOWN=`grep "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg | head -n 1`
@@ -432,7 +432,7 @@ pkg_postinst_ontarget_${JDKPN}-vm-zero () {
432 sed -i -e "s|^\-server.*|\-server KNOWN|" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 432 sed -i -e "s|^\-server.*|\-server KNOWN|" -e "/^$/d" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
433} 433}
434 434
435pkg_prerm_${JDKPN}-vm-zero () { 435pkg_prerm:${JDKPN}-vm-zero () {
436 true 436 true
437 sed -i -e "/^\-server.*/\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg 437 sed -i -e "/^\-server.*/\-server ERROR" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg
438 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then 438 if grep -q "KNOWN" ${JDK_HOME}/jre/lib/${JDK_ARCH}/jvm.cfg; then
@@ -441,14 +441,14 @@ pkg_prerm_${JDKPN}-vm-zero () {
441 fi 441 fi
442} 442}
443 443
444pkg_postinst_${JDKPN}-jre () { 444pkg_postinst:${JDKPN}-jre () {
445 ln -s ${JDK_HOME}/jre $D/${libdir}/jvm/jre 445 ln -s ${JDK_HOME}/jre $D/${libdir}/jvm/jre
446} 446}
447 447
448inherit update-alternatives 448inherit update-alternatives
449 449
450ALTERNATIVE_${JDKPN}-jre = "java keytool" 450ALTERNATIVE:${JDKPN}-jre = "java keytool"
451ALTERNATIVE_${JDKPN}-jdk = "javac" 451ALTERNATIVE:${JDKPN}-jdk = "javac"
452 452
453ALTERNATIVE_TARGET[java] = "${JDK_HOME}/jre/bin/java" 453ALTERNATIVE_TARGET[java] = "${JDK_HOME}/jre/bin/java"
454ALTERNATIVE_TARGET[javac] = "${JDK_HOME}/bin/javac" 454ALTERNATIVE_TARGET[javac] = "${JDK_HOME}/bin/javac"
@@ -459,3 +459,6 @@ ALTERNATIVE_LINK_NAME[javac] = "${bindir}/javac"
459ALTERNATIVE_LINK_NAME[keytool] = "${bindir}/keytool" 459ALTERNATIVE_LINK_NAME[keytool] = "${bindir}/keytool"
460 460
461ALTERNATIVE_PRIORITY = "50" 461ALTERNATIVE_PRIORITY = "50"
462
463# canon-prefix-map doesn't exist in gcc 12.x
464DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
diff --git a/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb b/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
index d774cc2..57827d9 100644
--- a/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
+++ b/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb
@@ -80,4 +80,4 @@ export DISTRIBUTION_PATCHES
80# to avoid this error add -fpermissive 80# to avoid this error add -fpermissive
81# 81#
82# NOTE: When updating the recipe, please check if this is still needed 82# NOTE: When updating the recipe, please check if this is still needed
83CFLAGS_append = " -Wno-error=deprecated-declarations -Wno-error=narrowing -fpermissive" 83CFLAGS:append = " -Wno-error=deprecated-declarations -Wno-error=narrowing -fpermissive"
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index c78bb2a..82bf31e 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -26,8 +26,9 @@ SRC_URI = "\
26 ${PATCHES_URI} \ 26 ${PATCHES_URI} \
27" 27"
28 28
29do_configure_prepend () { 29do_configure:prepend () {
30 export TOPDIR=${S} 30 export TOPDIR=${S}
31 sed -i 's#\$TOPDIR#${S}#g' ${S}/common/autoconf/configure.ac
31} 32}
32 33
33do_unpack_extract_submodules () { 34do_unpack_extract_submodules () {
@@ -42,6 +43,21 @@ do_unpack_extract_submodules () {
42 tar xjf ${WORKDIR}/${NASHORN_FILE_LOCAL} --transform "s,-${NASHORN_CHANGESET},,g" 43 tar xjf ${WORKDIR}/${NASHORN_FILE_LOCAL} --transform "s,-${NASHORN_CHANGESET},,g"
43} 44}
44 45
46do_patch:prepend() {
47 # use do_patch:prepend syntax and not pre/postfuncs to
48 # call do_unpack_extract_submodules
49 # *) the archiver.bbclass modifies WORKDIR, S, B,...
50 # and those modifications are lost otherwise,
51 # which leads to build failures in do_unpack_and_patch -> do_patch
52 func = 'do_unpack_extract_submodules'
53 bb.build.exec_func(func, d)
54
55 # delete X11 wrappers if x11 is not part of PACKAGECONFIG
56 if bb.utils.contains('PACKAGECONFIG', 'x11', False, True, d):
57 func_delete = 'do_unpack_delete_X11_wrappers'
58 bb.build.exec_func(func_delete, d)
59}
60
45do_unpack_delete_X11_wrappers() { 61do_unpack_delete_X11_wrappers() {
46 find ${S}/jdk/src/solaris/classes/sun/awt/X11 -maxdepth 1 -name '*.java' -delete 62 find ${S}/jdk/src/solaris/classes/sun/awt/X11 -maxdepth 1 -name '*.java' -delete
47} 63}
@@ -96,10 +112,7 @@ def package_config_option_cleanup(d):
96 if not option_headless and not with_cups: 112 if not option_headless and not with_cups:
97 option_headless = True 113 option_headless = True
98 114
99 if not option_soundless and not with_alsa: 115 if not option_soundless and not with_pulseaudio and not with_alsa:
100 option_soundless = True
101
102 if not option_soundless and not with_pulseaudio:
103 option_soundless = True 116 option_soundless = True
104 117
105 options = {'make': [], 'cpp': [], 'env': [], 'configure': ["--disable-ccache"] } 118 options = {'make': [], 'cpp': [], 'env': [], 'configure': ["--disable-ccache"] }
@@ -155,8 +168,8 @@ def jdk_configure_options(d):
155 options = package_config_option_cleanup(d) 168 options = package_config_option_cleanup(d)
156 return options[3] 169 return options[3]
157 170
158do_unpack[postfuncs] += "do_unpack_extract_submodules" 171#do_unpack[postfuncs] += "do_unpack_extract_submodules"
159do_unpack[postfuncs] += "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'do_unpack_delete_X11_wrappers', d)}" 172#do_unpack[postfuncs] += "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'do_unpack_delete_X11_wrappers', d)}"
160 173
161export DEBUG_BINARIES = "true" 174export DEBUG_BINARIES = "true"
162 175
@@ -164,7 +177,7 @@ ALTERNATIVE_PRIORITY = "50"
164 177
165OPENJDK_UPDATE_VERSION = "${PV}" 178OPENJDK_UPDATE_VERSION = "${PV}"
166OPENJDK_BUILD_NUMBER = "ga" 179OPENJDK_BUILD_NUMBER = "ga"
167EXTRA_OECONF_append = "\ 180EXTRA_OECONF:append = "\
168 --with-build-number=${OPENJDK_BUILD_NUMBER} \ 181 --with-build-number=${OPENJDK_BUILD_NUMBER} \
169 --with-update-version=${OPENJDK_UPDATE_VERSION} \ 182 --with-update-version=${OPENJDK_UPDATE_VERSION} \
170" 183"
@@ -176,8 +189,11 @@ EXTRA_OECONF_append = "\
176GLOBAL_FLAGS = "-fno-lifetime-dse -fno-delete-null-pointer-checks -fcommon" 189GLOBAL_FLAGS = "-fno-lifetime-dse -fno-delete-null-pointer-checks -fcommon"
177 190
178# flags for -native, and for bits that need a host-tool during -cross 191# flags for -native, and for bits that need a host-tool during -cross
179BUILD_CFLAGS_append = " ${GLOBAL_FLAGS}" 192BUILD_CFLAGS:append = " ${GLOBAL_FLAGS}"
180BUILD_CXXFLAGS_append = " ${GLOBAL_FLAGS}" 193BUILD_CXXFLAGS:append = " ${GLOBAL_FLAGS}"
181# flags for -cross 194# flags for -cross
182TARGET_CFLAGS_append = " ${GLOBAL_FLAGS}" 195TARGET_CFLAGS:append = " ${GLOBAL_FLAGS}"
183TARGET_CXXFLAGS_append = " ${GLOBAL_FLAGS}" 196TARGET_CXXFLAGS:append = " ${GLOBAL_FLAGS}"
197
198# canon-prefix-map doesn't exist in gcc 12.x
199DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index 6c0f949..ff682f1 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -47,16 +47,13 @@ require openjdk-8-common.inc
47 47
48JAVA_HOME[unexport] = "1" 48JAVA_HOME[unexport] = "1"
49 49
50SRC_URI_append = "\ 50SRC_URI:append = "\
51 file://jvm.cfg \ 51 file://jvm.cfg \
52 file://0011-autoconf-fix-CC-with-arguments-detection.patch \ 52 file://0011-autoconf-fix-CC-with-arguments-detection.patch \
53 file://0012-autoconf-NativeCompilation-remove-sysroot.patch \ 53 file://0012-autoconf-NativeCompilation-remove-sysroot.patch \
54" 54"
55 55
56BUILD_CFLAGS_append = " -Wno-stringop-overflow -Wno-error" 56EXTRA_OECONF:append = "\
57TARGET_CFLAGS_append = " -Wno-stringop-overflow -Wno-error"
58
59EXTRA_OECONF_append = "\
60 --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \ 57 --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \
61 \ 58 \
62 --with-tools-dir=${STAGING_DIR_NATIVE} \ 59 --with-tools-dir=${STAGING_DIR_NATIVE} \
@@ -76,16 +73,16 @@ EXTRA_OECONF_append = "\
76 ${@jdk_configure_options(d)} \ 73 ${@jdk_configure_options(d)} \
77" 74"
78 75
79do_configure_prepend() { 76do_configure:prepend() {
80 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" 77 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}"
81 export ${@jdk_environment_options(d)} 78 export ${@jdk_environment_options(d)}
82} 79}
83 80
84do_configure_append() { 81do_configure:append() {
85 sed -i -e 's,POST_STRIP_CMD:=.*,POST_STRIP_CMD:=,g' ${B}/spec.gmk 82 sed -i -e 's,POST_STRIP_CMD:=.*,POST_STRIP_CMD:=,g' ${B}/spec.gmk
86} 83}
87 84
88do_install_append() { 85do_install:append() {
89 if ${@bb.utils.contains('PACKAGECONFIG', 'repack', 'true', 'false', d)} ; then 86 if ${@bb.utils.contains('PACKAGECONFIG', 'repack', 'true', 'false', d)} ; then
90 if [ -d ${D}${JDK_HOME} ] ; then 87 if [ -d ${D}${JDK_HOME} ] ; then
91 find ${D}${JDK_HOME} -name "*.jar" -print0 | \ 88 find ${D}${JDK_HOME} -name "*.jar" -print0 | \
@@ -102,10 +99,12 @@ do_install_append() {
102 fi 99 fi
103} 100}
104 101
102do_install[vardepsexclude] += "BB_NUMBER_THREADS"
103
105export MAKE_VERBOSE = "y" 104export MAKE_VERBOSE = "y"
106export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip" 105export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace STRIP_POLICY=no_strip"
107 106
108EXTRA_OEMAKE_append = '\ 107EXTRA_OEMAKE:append = '\
109 ${@jdk_make_options(d)} \ 108 ${@jdk_make_options(d)} \
110 ALT_SDT_H="${STAGING_INCDIR}" \ 109 ALT_SDT_H="${STAGING_INCDIR}" \
111 ALT_CUPS_HEADERS_PATH="${STAGING_INCDIR}" \ 110 ALT_CUPS_HEADERS_PATH="${STAGING_INCDIR}" \
@@ -133,4 +132,4 @@ PACKAGE_PREPROCESS_FUNCS += "remove_debuglink"
133 132
134# FIXME libjsig.so is a symlink to a .so but this one is valid 133# FIXME libjsig.so is a symlink to a .so but this one is valid
135# FIXME libfreetype.so.6 is copied from STAGING_LIBDIR which is already stripped 134# FIXME libfreetype.so.6 is copied from STAGING_LIBDIR which is already stripped
136INSANE_SKIP_${PN} = "dev-so already-stripped" 135INSANE_SKIP:${PN} = "dev-so already-stripped"
diff --git a/recipes-core/openjdk/openjdk-8-native.inc b/recipes-core/openjdk/openjdk-8-native.inc
index 321a43d..c02e183 100644
--- a/recipes-core/openjdk/openjdk-8-native.inc
+++ b/recipes-core/openjdk/openjdk-8-native.inc
@@ -8,8 +8,8 @@ DEPENDS = "\
8" 8"
9 9
10PACKAGECONFIG ??= "gif jpeg png zlib" 10PACKAGECONFIG ??= "gif jpeg png zlib"
11PACKAGECONFIG[x11] = "--with-x,,libx11-native xorgproto-native libxt-native libxext-native libxrender-native" 11PACKAGECONFIG[x11] = "--with-x,,libx11-native xorgproto-native libxt-native libxext-native libxrender-native libxtst-native"
12PACKAGECONFIG[cups] = "--with-cups,,cups" 12PACKAGECONFIG[cups] = "--with-cups,,cups-native"
13PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" 13PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native"
14PACKAGECONFIG[gif] = "--with-giflib=system,--with-giflib=bundled,giflib-native" 14PACKAGECONFIG[gif] = "--with-giflib=system,--with-giflib=bundled,giflib-native"
15PACKAGECONFIG[jce] = "--enable-unlimited-crypto,," 15PACKAGECONFIG[jce] = "--enable-unlimited-crypto,,"
@@ -17,7 +17,7 @@ PACKAGECONFIG[jpeg] = "--with-libjpeg=system,--with-libjpeg=bundled,jpeg-native"
17PACKAGECONFIG[png] = "--with-libpng=system,--with-libpng=bundled,libpng-native" 17PACKAGECONFIG[png] = "--with-libpng=system,--with-libpng=bundled,libpng-native"
18PACKAGECONFIG[zlib] = "--with-zlib=system,--with-zlib=bundled,zlib-native" 18PACKAGECONFIG[zlib] = "--with-zlib=system,--with-zlib=bundled,zlib-native"
19 19
20EXTRA_OECONF_append = "\ 20EXTRA_OECONF:append = "\
21 --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \ 21 --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \
22 \ 22 \
23 --with-tools-dir=${STAGING_DIR_NATIVE} \ 23 --with-tools-dir=${STAGING_DIR_NATIVE} \
@@ -32,36 +32,36 @@ EXTRA_OECONF_append = "\
32" 32"
33# --with-boot-jdk=${WORKDIR}/fake-jdk 33# --with-boot-jdk=${WORKDIR}/fake-jdk
34 34
35inherit native
36
37require openjdk-8-common.inc 35require openjdk-8-common.inc
38 36
39CFLAGS_append = " ${@jdk_cpp_options(d)}" 37inherit native
40CPPFLAGS_append = "${@jdk_cpp_options(d)}" 38
41CXXFLAGS_append = " ${@jdk_cpp_options(d)}" 39CFLAGS:append = " ${@jdk_cpp_options(d)}"
40CPPFLAGS:append = "${@jdk_cpp_options(d)}"
41CXXFLAGS:append = " ${@jdk_cpp_options(d)}"
42 42
43export MAKE_VERBOSE = "y" 43export MAKE_VERBOSE = "y"
44export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace" 44export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace"
45 45
46EXTRA_OEMAKE_append = ' \ 46EXTRA_OEMAKE:append = ' \
47 ${@jdk_make_options(d)} \ 47 ${@jdk_make_options(d)} \
48 MAKE_VERBOSE=y VERBOSE=-s LOG_LEVEL=trace \ 48 MAKE_VERBOSE=y VERBOSE=-s LOG_LEVEL=trace \
49 QUIETLY= \ 49 QUIETLY= \
50 images \ 50 images \
51' 51'
52 52
53do_configure_prepend() { 53do_configure:prepend() {
54 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" 54 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}"
55 export ${@jdk_environment_options(d)} 55 export ${@jdk_environment_options(d)}
56 unset CC CXX 56 unset CC CXX
57} 57}
58 58
59do_compile_prepend() { 59do_compile:prepend() {
60 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" 60 export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}"
61 rm -f "${B}/images/j2sdk-image/jre/lib/security/cacerts" 61 rm -f "${B}/images/j2sdk-image/jre/lib/security/cacerts"
62} 62}
63 63
64do_compile_append() { 64do_compile:append() {
65 set -x 65 set -x
66 mkdir -p ${B}/certs 66 mkdir -p ${B}/certs
67 for pem in $(find ${STAGING_DATADIR}/ca-certificates -name "*.crt") 67 for pem in $(find ${STAGING_DATADIR}/ca-certificates -name "*.crt")
@@ -88,3 +88,6 @@ do_install() {
88 ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}${bindir}/$tool 88 ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}${bindir}/$tool
89 done 89 done
90} 90}
91
92# FIXME libfreetype.so.6 is copied from STAGING_LIBDIR which is already stripped
93INSANE_SKIP:${PN} = "already-stripped"
diff --git a/recipes-core/openjdk/openjdk-8-native_252.bb b/recipes-core/openjdk/openjdk-8-native_272.bb
index 39321f2..39321f2 100644
--- a/recipes-core/openjdk/openjdk-8-native_252.bb
+++ b/recipes-core/openjdk/openjdk-8-native_272.bb
diff --git a/recipes-core/openjdk/openjdk-8-release-aarch32.inc b/recipes-core/openjdk/openjdk-8-release-aarch32.inc
index 62dc866..17e3a3d 100644
--- a/recipes-core/openjdk/openjdk-8-release-aarch32.inc
+++ b/recipes-core/openjdk/openjdk-8-release-aarch32.inc
@@ -1,39 +1,39 @@
1require openjdk-8-release-common.inc 1require openjdk-8-release-common.inc
2 2
3COMPATIBLE_HOST = "^$" 3COMPATIBLE_HOST = "^$"
4COMPATIBLE_HOST_armv7a = "arm" 4COMPATIBLE_HOST:armv7a = "arm"
5COMPATIBLE_HOST_armv7ve = "arm" 5COMPATIBLE_HOST:armv7ve = "arm"
6 6
7CHANGESET_ID="20200415" 7CHANGESET_ID="b09-aarch32-20200929"
8 8
9CORBA_CHANGESET_arm = "jdk8u${PV}-ga-aarch32-${CHANGESET_ID}" 9CORBA_CHANGESET:arm = "jdk8u${PV}-${CHANGESET_ID}"
10SRC_URI[corba.sha256sum] = "e8dab3ffbc39fec724604b8c65408f32dcca1682769077c5b4f71b571938fe26" 10SRC_URI[corba.sha256sum] = "3675f043479c7e3ee7128651527d15c4e56f72d22dd953b8d0d8e5c9a2c68741"
11 11
12HOTSPOT_CHANGESET_arm = "jdk8u${PV}-ga-aarch32-${CHANGESET_ID}" 12HOTSPOT_CHANGESET:arm = "jdk8u${PV}-${CHANGESET_ID}"
13SRC_URI[hotspot.sha256sum] = "7aebf690a05746e4fbcdcd75ac4e67acb2f0b087bba3bcb064675468626f5822" 13SRC_URI[hotspot.sha256sum] = "d5ea125d7e54fd3dd21bf1654c09b5ce17497d9327f770abd56ad1108a337b81"
14 14
15JAXP_CHANGESET_arm = "jdk8u${PV}-ga-aarch32-${CHANGESET_ID}" 15JAXP_CHANGESET:arm = "jdk8u${PV}-${CHANGESET_ID}"
16SRC_URI[jaxp.sha256sum] = "44883e0e836ee5fa2fcb4df936bafcfad69c57d05876d44ecefc5b3cb6b085c0" 16SRC_URI[jaxp.sha256sum] = "a025f9f047bc50947aa631641b2f836c3a3ec4a5f2c9019bc7b11ab8444f7b9e"
17 17
18JAXWS_CHANGESET_arm = "jdk8u${PV}-ga-aarch32-${CHANGESET_ID}" 18JAXWS_CHANGESET:arm = "jdk8u${PV}-${CHANGESET_ID}"
19SRC_URI[jaxws.sha256sum] = "34f6cf3eb34c0c310e0cc31b876b189fd6b2e2c2dcc1066af5347f3a0873d2d3" 19SRC_URI[jaxws.sha256sum] = "ad921e0f5cafab4c5b4bb248ea59bf1615864c4de17bfd7321759d063398dc3f"
20 20
21JDK_CHANGESET_arm = "jdk8u${PV}-ga-aarch32-${CHANGESET_ID}" 21JDK_CHANGESET:arm = "jdk8u${PV}-${CHANGESET_ID}"
22SRC_URI[jdk.sha256sum] = "f89688b5673ed75b1bebfd530a979788a4cbe942ce39eb38784f8c9e1303012b" 22SRC_URI[jdk.sha256sum] = "835e81fc88b8c0e40df0d89be5d8a852638b3f5f29acad6997cbc36a2e8341fe"
23 23
24LANGTOOLS_CHANGESET_arm = "jdk8u${PV}-ga-aarch32-${CHANGESET_ID}" 24LANGTOOLS_CHANGESET:arm = "jdk8u${PV}-${CHANGESET_ID}"
25SRC_URI[langtools.sha256sum] = "18357720e3b924dea2f171235ae06e753aeef7958a3ce7a2a8d41fa6e2c90454" 25SRC_URI[langtools.sha256sum] = "554491026bb9fadb837d635d4beea3ca9cb73f034c1379d57fcd77787816139f"
26 26
27NASHORN_CHANGESET_arm = "jdk8u${PV}-ga-aarch32-${CHANGESET_ID}" 27NASHORN_CHANGESET:arm = "jdk8u${PV}-${CHANGESET_ID}"
28SRC_URI[nashorn.sha256sum] = "abd6ccf28278ce5775eebada339228fe2e3380d57d009179acdd7026adb21448" 28SRC_URI[nashorn.sha256sum] = "8358000a7e52fcfd046027319569d17f2e99b710acbfd1a1120b50ce93afe223"
29 29
30OPENJDK_CHANGESET_arm = "jdk8u${PV}-ga-aarch32-${CHANGESET_ID}" 30OPENJDK_CHANGESET:arm = "jdk8u${PV}-${CHANGESET_ID}"
31SRC_URI[openjdk.sha256sum] = "06d141aa01b80aa0c167167081e2139b3edf5af764cf17bbe9e1b57bf4f585ab" 31SRC_URI[openjdk.sha256sum] = "4b38e672c82df5d18215849829a80a111b1c7b46567bc641e9fec92bedd0d32a"
32 32
33PACKAGECONFIG_append_armv7a = " client" 33PACKAGECONFIG:append:armv7a = " client"
34PACKAGECONFIG_append_armv7ve = " client" 34PACKAGECONFIG:append:armv7ve = " client"
35 35
36do_install_append() { 36do_install:append() {
37 if [ -d ${D}${JDK_HOME} ] ; then 37 if [ -d ${D}${JDK_HOME} ] ; then
38 sed -e 's,^\(-server ERROR$\),# \1,' \ 38 sed -e 's,^\(-server ERROR$\),# \1,' \
39 -e 's,^-client IGNORE,-client ERROR,' \ 39 -e 's,^-client IGNORE,-client ERROR,' \
@@ -48,5 +48,5 @@ do_install_append() {
48 fi 48 fi
49} 49}
50 50
51JDK_ARCH_armv7a = "aarch32" 51JDK_ARCH:armv7a = "aarch32"
52JDK_ARCH_armv7ve = "aarch32" 52JDK_ARCH:armv7ve = "aarch32"
diff --git a/recipes-core/openjdk/openjdk-8-release-aarch64.inc b/recipes-core/openjdk/openjdk-8-release-aarch64.inc
index 86dffff..3aac110 100644
--- a/recipes-core/openjdk/openjdk-8-release-aarch64.inc
+++ b/recipes-core/openjdk/openjdk-8-release-aarch64.inc
@@ -2,28 +2,28 @@ require openjdk-8-release-common.inc
2 2
3COMPATIBLE_HOST = "aarch64" 3COMPATIBLE_HOST = "aarch64"
4 4
5CHANGESET_ID="b09" 5CHANGESET_ID="b10"
6 6
7CORBA_CHANGESET_aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}" 7CORBA_CHANGESET:aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}"
8SRC_URI[corba.sha256sum] = "13ce2345dec4390a7ed61066275528c1d4fe246abb3ffc16bdfd93c0e8ead193" 8SRC_URI[corba.sha256sum] = "112143d935a94cb95a0f9dba19a86184d08e699a68a82db58cdd9f0de1baeeae"
9 9
10HOTSPOT_CHANGESET_aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}" 10HOTSPOT_CHANGESET:aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}"
11SRC_URI[hotspot.sha256sum] = "80dd8b1289905252f5f9d97ba2302fe4b77a76851709f10d429848750b709c66" 11SRC_URI[hotspot.sha256sum] = "16ed30b46279e2ffef04ab392502e32525451bea38f3af0d3c3782bcd33a0274"
12 12
13JAXP_CHANGESET_aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}" 13JAXP_CHANGESET:aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}"
14SRC_URI[jaxp.sha256sum] = "a52f5497318980f379ce05ff8e638a0ae0ce7265d8922ddfb731d26989faf161" 14SRC_URI[jaxp.sha256sum] = "5dde165d7327b08f2ebc8d3081a1734d9ef737117dcaa417eb7dc39344220987"
15 15
16JAXWS_CHANGESET_aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}" 16JAXWS_CHANGESET:aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}"
17SRC_URI[jaxws.sha256sum] = "1db8876408222a8eec8432bd9778559ea80cae36a2c6dead32723279d1622741" 17SRC_URI[jaxws.sha256sum] = "cedde28264a85cb16ae46123091edb64f7c1d2cd5f3de6ba0d21cffff84c3ccf"
18 18
19JDK_CHANGESET_aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}" 19JDK_CHANGESET:aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}"
20SRC_URI[jdk.sha256sum] = "abc7a1eec87ac330bebfa8ec4a3db72c27b63aa50175abfade580a46b7f2d865" 20SRC_URI[jdk.sha256sum] = "7e53438e0506536fe373b7f8176512c701b87adda268831d180ead2695154a93"
21 21
22LANGTOOLS_CHANGESET_aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}" 22LANGTOOLS_CHANGESET:aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}"
23SRC_URI[langtools.sha256sum] = "c4e3dd471372dad5a545ec038104c7706fa02da452275ce118ad7e38e418a57a" 23SRC_URI[langtools.sha256sum] = "8dbcd45109d0c782a6cac5a1a310a5816d4dac8a9c095635832ab803bfdb861a"
24 24
25NASHORN_CHANGESET_aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}" 25NASHORN_CHANGESET:aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}"
26SRC_URI[nashorn.sha256sum] = "956ef3a52dc97fb28aeeeb9ccbd371c2b7f14e253fd63d1f98bb1bf87ddf1929" 26SRC_URI[nashorn.sha256sum] = "85497cdba0943644d838862761891d0a06dfaad5ea13b63af69f1a6d595e6387"
27 27
28OPENJDK_CHANGESET_aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}" 28OPENJDK_CHANGESET:aarch64 = "aarch64-shenandoah-jdk8u${PV}-${CHANGESET_ID}"
29SRC_URI[openjdk.sha256sum] = "b7b933ff2b8c0ee17eb6dbd02beb8769e7dfe15c50ab2fdeef55666e4b12cbe7" 29SRC_URI[openjdk.sha256sum] = "97175c78de4c82b78d3c80b1b0d22c44b195ca067f253cfaa3c235328b808760"
diff --git a/recipes-core/openjdk/openjdk-8-release-common.inc b/recipes-core/openjdk/openjdk-8-release-common.inc
index bd3092f..ff8d96e 100644
--- a/recipes-core/openjdk/openjdk-8-release-common.inc
+++ b/recipes-core/openjdk/openjdk-8-release-common.inc
@@ -1,3 +1,4 @@
1
1PATCHES_URI = "\ 2PATCHES_URI = "\
2 file://0001-Allow-using-a-system-installed-libjpeg.patch \ 3 file://0001-Allow-using-a-system-installed-libjpeg.patch \
3 file://0002-Allow-using-a-system-installed-libpng.patch \ 4 file://0002-Allow-using-a-system-installed-libpng.patch \
@@ -9,6 +10,7 @@ PATCHES_URI = "\
9 file://0008-autoconf-fix-shark-build-common.patch \ 10 file://0008-autoconf-fix-shark-build-common.patch \
10 file://0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch \ 11 file://0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch \
11 file://0010-autoconf-remove-shell-variables-from-autoheader.patch \ 12 file://0010-autoconf-remove-shell-variables-from-autoheader.patch \
13 file://0013-autoconf-remove-Werror.patch \
12 ${HOTSPOT_UB_PATCH} \ 14 ${HOTSPOT_UB_PATCH} \
13 file://2001-jdk-comparison-between-pointer-and-integer.patch \ 15 file://2001-jdk-comparison-between-pointer-and-integer.patch \
14 file://2002-jdk-Allow-using-a-system-installed-libjpeg.patch \ 16 file://2002-jdk-Allow-using-a-system-installed-libjpeg.patch \
@@ -18,38 +20,35 @@ PATCHES_URI = "\
18 file://2006-jdk-disable-backtrace-musl-build-fix.patch \ 20 file://2006-jdk-disable-backtrace-musl-build-fix.patch \
19 file://2007-jdk-no-genx11-in-headless.patch \ 21 file://2007-jdk-no-genx11-in-headless.patch \
20 file://2008-jdk-no-unused-deps.patch \ 22 file://2008-jdk-no-unused-deps.patch \
21 file://2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch \ 23 file://2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch \
22" 24"
23HOTSPOT_UB_PATCH = "\ 25HOTSPOT_UB_PATCH = "\
24 file://1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch \ 26 file://1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch \
25 file://1002-hotspot-use-correct-include-for-poll.patch \ 27 file://1002-hotspot-use-correct-include-for-poll.patch \
26 file://1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch \ 28 file://1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch \
27 file://1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch \ 29 file://1004-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch \
28 file://1005-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch \ 30 file://1005-hotspot-Zero-build-requires-disabled-warnings.patch \
29 file://1006-hotspot-Zero-build-requires-disabled-warnings.patch \ 31 file://1006-hotspot-Missing-return-statement-in-__sync_val_compa.patch \
30 file://1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch \ 32 file://1007-hotspot-Turn-on-the-Wreturn-type-warning.patch \
31 file://1008-hotspot-Turn-on-the-Wreturn-type-warning.patch \ 33 file://1008-hotspot-handle-format-error-for-GCC-7.patch \
32 file://1009-hotspot-handle-format-error-for-GCC-7.patch \ 34 file://1012-hotspot-enable-Wno-error.patch \
33" 35"
34HOTSPOT_UB_PATCH_append_class-target = "\ 36HOTSPOT_UB_PATCH:append:class-target = "\
35 file://1010-hotspot-fix-adlc-flags.patch \ 37 file://1009-hotspot-fix-adlc-flags.patch \
36 file://1011-hotspot-fix-shark-build-common.patch \ 38 file://1010-hotspot-fix-shark-build-common.patch \
37 file://1012-hotspot-restrict-to-staging-dir.patch \ 39 file://1011-hotspot-restrict-to-staging-dir.patch \
38" 40"
39HOTSPOT_UB_PATCH_prepend_aarch64 = "\ 41HOTSPOT_UB_PATCH:prepend:aarch64 = "\
40 file://aarch64-hotspot-Fix-further-functions-with-a-missing.patch \ 42 file://1401-hotspot-aarch64-Add-missing-return-value-to-LIR_Asse.patch \
41" 43"
42HOTSPOT_UB_PATCH_append_armv7a = " file://aarch32-hotspot-fix-missing-return-values.patch" 44HOTSPOT_UB_PATCH:append:armv7a = " file://1201-hotspot-aarch32-fix-missing-return-values.patch"
43HOTSPOT_UB_PATCH_append_armv7ve = " file://aarch32-hotspot-fix-missing-return-values.patch" 45HOTSPOT_UB_PATCH:append:armv7ve = " file://1201-hotspot-aarch32-fix-missing-return-values.patch"
44 46
45PATCHES_URI_append_class-target = "\ 47PATCHES_URI:append:class-target = "\
46 ${FIX_SHARK_BUILD_PT2_PATCH} \ 48 file://1013-hotspot-add-missing-includes-for-shark-build-pt2.patch \
47" 49"
48FIX_SHARK_BUILD_PT2_PATCH = "file://openjdk8-fix-shark-build-pt2.patch;striplevel=0"
49FIX_SHARK_BUILD_PT2_PATCH_armv7a = "file://aarch32-hotspot-fix-shark-build-pt2.patch;striplevel=0"
50FIX_SHARK_BUILD_PT2_PATCH_armv7ve = "file://aarch32-hotspot-fix-shark-build-pt2.patch;striplevel=0"
51 50
52PATCHES_URI_append_libc-musl = "\ 51PATCHES_URI:append:libc-musl = "\
53 ${OBSOLETE_ISNANF_PATCH} \ 52 ${OBSOLETE_ISNANF_PATCH} \
54 file://musl-0002-jdk-give-a-much-bigger-buffer-to-getmntent_r.patch \ 53 file://musl-0002-jdk-give-a-much-bigger-buffer-to-getmntent_r.patch \
55 file://musl-0003-jdk-fix-libjvm-load-on-musl-set-LD_LIBRARY_PATH.patch \ 54 file://musl-0003-jdk-fix-libjvm-load-on-musl-set-LD_LIBRARY_PATH.patch \
@@ -63,55 +62,45 @@ PATCHES_URI_append_libc-musl = "\
63 file://musl-0009-jdk-musl-has-gethostby_r.patch \ 62 file://musl-0009-jdk-musl-has-gethostby_r.patch \
64" 63"
65OBSOLETE_ISNANF_PATCH = "file://musl-0001-hotspot-stop-using-obsolete-isnanf.patch" 64OBSOLETE_ISNANF_PATCH = "file://musl-0001-hotspot-stop-using-obsolete-isnanf.patch"
66OBSOLETE_ISNANF_PATCH_armv7a = "" 65OBSOLETE_ISNANF_PATCH:armv7a = ""
67OBSOLETE_ISNANF_PATCH_armv7ve = "" 66OBSOLETE_ISNANF_PATCH:armv7ve = ""
68DISABLE_AGENT_BUILD_PT2 = "file://musl-0005-hotspot-disable-agent-build-pt2.patch" 67DISABLE_AGENT_BUILD_PT2 = "file://musl-0005-hotspot-disable-agent-build-pt2.patch"
69DISABLE_AGENT_BUILD_PT2_armv7a = "file://musl-0005-hotspot-disable-agent-build-pt2-aarch32.patch" 68DISABLE_AGENT_BUILD_PT2:armv7a = "file://musl-0005-hotspot-disable-agent-build-pt2-aarch32.patch"
70DISABLE_AGENT_BUILD_PT2_armv7ve = "file://musl-0005-hotspot-disable-agent-build-pt2-aarch32.patch" 69DISABLE_AGENT_BUILD_PT2:armv7ve = "file://musl-0005-hotspot-disable-agent-build-pt2-aarch32.patch"
71REMOVE_GLIBC_DEPENDENCIES_PT2 = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2.patch" 70REMOVE_GLIBC_DEPENDENCIES_PT2 = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2.patch"
72REMOVE_GLIBC_DEPENDENCIES_PT2_armv7a = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2-aarch.patch" 71REMOVE_GLIBC_DEPENDENCIES_PT2:armv7a = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2-aarch.patch"
73REMOVE_GLIBC_DEPENDENCIES_PT2_armv7ve = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2-aarch.patch" 72REMOVE_GLIBC_DEPENDENCIES_PT2:armv7ve = "file://musl-0006-hotspot-os_linux-remove-glibc-dependencies-pt2-aarch.patch"
74 73
75PATCHES_URI_append_libc-musl_armv7a = " file://aarch32-hotspot-remaining-musl-fixes.patch" 74PATCHES_URI:append:libc-musl:armv7a = " file://1202-hotspot-aarch32-remaining-musl-fixes.patch"
76PATCHES_URI_append_libc-musl_armv7ve = " file://aarch32-hotspot-remaining-musl-fixes.patch" 75PATCHES_URI:append:libc-musl:armv7ve = " file://1202-hotspot-aarch32-remaining-musl-fixes.patch"
77PATCHES_URI_append_libc-musl_aarch64 = " file://aarch64-hotspot-remaining-musl-fixes.patch" 76PATCHES_URI:append:libc-musl:aarch64 = " file://1402-hotspot-aarch64-remaining-musl-fixes.patch"
78 77
79# remove aarch32 & aarch64 mainlined patches 78# remove aarch32 & aarch64 mainlined patches
80PATCHES_URI_remove_armv7a = "file://2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch" 79PATCHES_URI:remove:armv7a = "file://2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch"
81PATCHES_URI_remove_armv7ve = "file://2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch" 80PATCHES_URI:remove:armv7ve = "file://2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch"
82PATCHES_URI_remove_aarch64 = "file://2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch" 81PATCHES_URI:remove:aarch64 = "file://2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch"
83 82
84# Name of the directory containing the compiled output 83# Name of the directory containing the compiled output
85BUILD_DIR = "openjdk.build" 84BUILD_DIR = "openjdk.build"
86BUILD_DIR_ECJ = "openjdk.build-ecj" 85BUILD_DIR_ECJ = "openjdk.build-ecj"
87 86
88# Force arm mode for now 87# Force arm mode for now
89ARM_INSTRUCTION_SET_armv4t = "ARM" 88ARM_INSTRUCTION_SET:armv4t = "ARM"
90
91# readdir_r was deprecated in glibc-2.24. Ignore the error for now
92# NOTE: When updating the recipe, please check if this is still needed
93BUILD_CFLAGS_append = " -Wno-error=deprecated-declarations"
94TARGET_CFLAGS_append = " -Wno-error=deprecated-declarations"
95
96# WORKAROUND: disable the "specified bound depends on the length of the source argument"
97# compiler error until we update openjdk8 to a fixed version
98BUILD_CFLAGS_append = " -Wno-error=stringop-overflow"
99TARGET_CFLAGS_append = " -Wno-error=stringop-overflow"
100 89
101# Enable zero mode for arm based builds, as normal hotspot fails to build 90# Enable zero mode for arm based builds, as normal hotspot fails to build
102PACKAGECONFIG_append_armv4 = " zero" 91PACKAGECONFIG:append:armv4 = " zero"
103PACKAGECONFIG_append_armv5 = " zero" 92PACKAGECONFIG:append:armv5 = " zero"
104PACKAGECONFIG_append_armv6 = " zero" 93PACKAGECONFIG:append:armv6 = " zero"
105 94
106OPENJDK_ARCH_PORT = "jdk8u" 95OPENJDK_ARCH_PORT = "jdk8u"
107OPENJDK_ARCH_PORT_aarch64 = "aarch64-port" 96OPENJDK_ARCH_PORT:aarch64 = "aarch64-port"
108OPENJDK_ARCH_PORT_armv7a = "aarch32-port" 97OPENJDK_ARCH_PORT:armv7a = "aarch32-port"
109OPENJDK_ARCH_PORT_armv7ve = "aarch32-port" 98OPENJDK_ARCH_PORT:armv7ve = "aarch32-port"
110OPENJDK_HG_U = "jdk8u" 99OPENJDK_HG_U = "jdk8u"
111 100
112# the aarch64 port moved, for more information see: 101# the aarch64 port moved, for more information see:
113# https://mail.openjdk.java.net/pipermail/aarch64-port-dev/2018-August/006265.html 102# https://mail.openjdk.java.net/pipermail/aarch64-port-dev/2018-August/006265.html
114OPENJDK_HG_U_aarch64 = "jdk8u-shenandoah" 103OPENJDK_HG_U:aarch64 = "jdk8u-shenandoah"
115 104
116OPENJDK_HG_URL = "https://hg.openjdk.java.net/${OPENJDK_ARCH_PORT}/${OPENJDK_HG_U}" 105OPENJDK_HG_URL = "https://hg.openjdk.java.net/${OPENJDK_ARCH_PORT}/${OPENJDK_HG_U}"
117 106
diff --git a/recipes-core/openjdk/openjdk-8-release.inc b/recipes-core/openjdk/openjdk-8-release.inc
index ddbd8c9..4cdd050 100644
--- a/recipes-core/openjdk/openjdk-8-release.inc
+++ b/recipes-core/openjdk/openjdk-8-release.inc
@@ -3,29 +3,29 @@ require openjdk-8-release-common.inc
3# We do not yet work for aarch64, and we make sure 3# We do not yet work for aarch64, and we make sure
4# to use the aarch32 port for ARMv7. 4# to use the aarch32 port for ARMv7.
5COMPATIBLE_HOST = "^(?!(aarch64)).*$" 5COMPATIBLE_HOST = "^(?!(aarch64)).*$"
6COMPATIBLE_HOST_armv7a = "^$" 6COMPATIBLE_HOST:armv7a = "^$"
7COMPATIBLE_HOST_armv7ve = "^$" 7COMPATIBLE_HOST:armv7ve = "^$"
8 8
9CORBA_CHANGESET = "jdk8u${PV}-ga" 9CORBA_CHANGESET = "jdk8u${PV}-ga"
10SRC_URI[corba.sha256sum] = "97513397015ca62953c6afa3ba925b1dabc0238d47f3a2b81c2bd5b683d4d050" 10SRC_URI[corba.sha256sum] = "28c487a49546ab1a592eaf229c13e1896b390958ac4e6fa19bf5da34a1977138"
11 11
12HOTSPOT_CHANGESET = "jdk8u${PV}-ga" 12HOTSPOT_CHANGESET = "jdk8u${PV}-ga"
13SRC_URI[hotspot.sha256sum] = "80a91f421bbe750f5e8c66b74f77fb79f31cce2f6e9e1cfe8407d773bb1ed57d" 13SRC_URI[hotspot.sha256sum] = "55db6eb423445978e5a9a285c5adea238dec3d3998dc5f1216f8f5c7a8d7c5ea"
14 14
15JAXP_CHANGESET = "jdk8u${PV}-ga" 15JAXP_CHANGESET = "jdk8u${PV}-ga"
16SRC_URI[jaxp.sha256sum] = "ead123b56c1c5d4c381665da6c0858cd9b11c69b8afc7494f9831980bc71bc92" 16SRC_URI[jaxp.sha256sum] = "778d3946b9cf84c9b7fd937dc91d0e919ba7616cc4e3db44b9d0347ecdad308a"
17 17
18JAXWS_CHANGESET = "jdk8u${PV}-ga" 18JAXWS_CHANGESET = "jdk8u${PV}-ga"
19SRC_URI[jaxws.sha256sum] = "ef6532ac77e7e4333283c09c87b6923fbaa91b8bca6770f06494c3bb1643455e" 19SRC_URI[jaxws.sha256sum] = "a46eabbed4fedcdbd26510fc1ccf40aaa337e44542f112d4dba3e93f2bb7e492"
20 20
21JDK_CHANGESET = "jdk8u${PV}-ga" 21JDK_CHANGESET = "jdk8u${PV}-ga"
22SRC_URI[jdk.sha256sum] = "7203ded24a10843ac8e84269ad8ac347f29b1dd950f7e0bb9739ddcb8280b8fb" 22SRC_URI[jdk.sha256sum] = "9913adf85d3c5b039a5dfeb0962613d92c6f454d0bbbbe3e5341e221021e908e"
23 23
24LANGTOOLS_CHANGESET = "jdk8u${PV}-ga" 24LANGTOOLS_CHANGESET = "jdk8u${PV}-ga"
25SRC_URI[langtools.sha256sum] = "6e2329e3f15c0fd23da47cd8f454cb49cdae0b12c951eb2910061fa95acb8ea4" 25SRC_URI[langtools.sha256sum] = "9189920ae3858c9a680912c54504302e0553cf25d892c8a03fe954859f587066"
26 26
27NASHORN_CHANGESET = "jdk8u${PV}-ga" 27NASHORN_CHANGESET = "jdk8u${PV}-ga"
28SRC_URI[nashorn.sha256sum] = "195237fd89f34c27bf98c3a8bfda64bbc799a014e83907062a8b4e10bd4f2021" 28SRC_URI[nashorn.sha256sum] = "b42bed287349ecc702f874867a60c3e3664a799d69004e46260db5ff9a7df772"
29 29
30OPENJDK_CHANGESET = "jdk8u${PV}-ga" 30OPENJDK_CHANGESET = "jdk8u${PV}-ga"
31SRC_URI[openjdk.sha256sum] = "a83f8daa2afece63bf7ae95cfbca91ef765424c40b9f5b45e4a3c2d4da0f7a95" 31SRC_URI[openjdk.sha256sum] = "3b335df278915237986ccdfc40e262d5b6a711072b2a0b99bf2b197dc9ff0cff"
diff --git a/recipes-core/openjdk/openjdk-8_252.bb b/recipes-core/openjdk/openjdk-8_272.bb
index bc6ce51..0bfa102 100644
--- a/recipes-core/openjdk/openjdk-8_252.bb
+++ b/recipes-core/openjdk/openjdk-8_272.bb
@@ -1,7 +1,7 @@
1INC_FILE_SUFFIX = "" 1INC_FILE_SUFFIX = ""
2INC_FILE_SUFFIX_aarch64 = "-aarch64" 2INC_FILE_SUFFIX:aarch64 = "-aarch64"
3INC_FILE_SUFFIX_armv7a = "-aarch32" 3INC_FILE_SUFFIX:armv7a = "-aarch32"
4INC_FILE_SUFFIX_armv7ve = "-aarch32" 4INC_FILE_SUFFIX:armv7ve = "-aarch32"
5require openjdk-8-release${INC_FILE_SUFFIX}.inc 5require openjdk-8-release${INC_FILE_SUFFIX}.inc
6require openjdk-8-cross.inc 6require openjdk-8-cross.inc
7 7
@@ -14,12 +14,12 @@ do_install() {
14 find ${D}${JDK_HOME} -name "*.debuginfo" -exec rm {} \; 14 find ${D}${JDK_HOME} -name "*.debuginfo" -exec rm {} \;
15} 15}
16 16
17PACKAGES_append = " \ 17PACKAGES:append = " \
18 ${PN}-demo \ 18 ${PN}-demo \
19 ${PN}-source \ 19 ${PN}-source \
20" 20"
21 21
22FILES_${PN}_append = "\ 22FILES:${PN}:append = "\
23 ${JDK_HOME}/bin/[a-z]* \ 23 ${JDK_HOME}/bin/[a-z]* \
24 ${JDK_HOME}/lib/[a-z]* \ 24 ${JDK_HOME}/lib/[a-z]* \
25 ${JDK_HOME}/jre/bin/[a-z]* \ 25 ${JDK_HOME}/jre/bin/[a-z]* \
@@ -29,14 +29,14 @@ FILES_${PN}_append = "\
29 ${JDK_HOME}/release \ 29 ${JDK_HOME}/release \
30" 30"
31 31
32FILES_${PN}-dev_append = "\ 32FILES:${PN}-dev:append = "\
33 ${JDK_HOME}/include \ 33 ${JDK_HOME}/include \
34" 34"
35 35
36FILES_${PN}-demo = " ${JDK_HOME}/demo ${JDK_HOME}/sample " 36FILES:${PN}-demo = " ${JDK_HOME}/demo ${JDK_HOME}/sample "
37RDEPENDS_${PN}-demo = " ${PN} " 37RDEPENDS:${PN}-demo = " ${PN} "
38 38
39FILES_${PN}-doc_append = "\ 39FILES:${PN}-doc:append = "\
40 ${JDK_HOME}/man \ 40 ${JDK_HOME}/man \
41 ${JDK_HOME}/ASSEMBLY_EXCEPTION \ 41 ${JDK_HOME}/ASSEMBLY_EXCEPTION \
42 ${JDK_HOME}/THIRD_PARTY_README \ 42 ${JDK_HOME}/THIRD_PARTY_README \
@@ -45,17 +45,20 @@ FILES_${PN}-doc_append = "\
45 ${JDK_HOME}/man \ 45 ${JDK_HOME}/man \
46" 46"
47 47
48FILES_${PN}-source = " ${JDK_HOME}/src.zip " 48FILES:${PN}-source = " ${JDK_HOME}/src.zip "
49 49
50RPROVIDES_${PN} = "java2-runtime" 50RPROVIDES:${PN} = "java2-runtime"
51 51
52inherit update-alternatives 52inherit update-alternatives
53 53
54ALTERNATIVE_PRIORITY = "100" 54ALTERNATIVE_PRIORITY = "100"
55 55
56ALTERNATIVE_${PN} = "java javac" 56ALTERNATIVE:${PN} = "java javac keytool"
57ALTERNATIVE_LINK_NAME[java] = "${bindir}/java" 57ALTERNATIVE_LINK_NAME[java] = "${bindir}/java"
58ALTERNATIVE_TARGET[java] = "${JDK_HOME}/bin/java" 58ALTERNATIVE_TARGET[java] = "${JDK_HOME}/bin/java"
59 59
60ALTERNATIVE_LINK_NAME[javac] = "${bindir}/javac" 60ALTERNATIVE_LINK_NAME[javac] = "${bindir}/javac"
61ALTERNATIVE_TARGET[javac] = "${JDK_HOME}/bin/javac" 61ALTERNATIVE_TARGET[javac] = "${JDK_HOME}/bin/javac"
62
63ALTERNATIVE_LINK_NAME[keytool] = "${bindir}/keytool"
64ALTERNATIVE_TARGET[keytool] = "${JDK_HOME}/bin/keytool"
diff --git a/recipes-core/openjdk/openjre-8_252.bb b/recipes-core/openjdk/openjre-8_272.bb
index ce6392a..c1789aa 100644
--- a/recipes-core/openjdk/openjre-8_252.bb
+++ b/recipes-core/openjdk/openjre-8_272.bb
@@ -1,7 +1,7 @@
1INC_FILE_SUFFIX = "" 1INC_FILE_SUFFIX = ""
2INC_FILE_SUFFIX_aarch64 = "-aarch64" 2INC_FILE_SUFFIX:aarch64 = "-aarch64"
3INC_FILE_SUFFIX_armv7a = "-aarch32" 3INC_FILE_SUFFIX:armv7a = "-aarch32"
4INC_FILE_SUFFIX_armv7ve = "-aarch32" 4INC_FILE_SUFFIX:armv7ve = "-aarch32"
5require openjdk-8-release${INC_FILE_SUFFIX}.inc 5require openjdk-8-release${INC_FILE_SUFFIX}.inc
6require openjdk-8-cross.inc 6require openjdk-8-cross.inc
7 7
@@ -13,14 +13,14 @@ do_install() {
13 install -m644 ${WORKDIR}/jvm.cfg ${D}${JRE_HOME}/lib/${JDK_ARCH}/ 13 install -m644 ${WORKDIR}/jvm.cfg ${D}${JRE_HOME}/lib/${JDK_ARCH}/
14} 14}
15 15
16FILES_${PN}_append = "\ 16FILES:${PN}:append = "\
17 ${JRE_HOME}/bin/[a-z]* \ 17 ${JRE_HOME}/bin/[a-z]* \
18 ${JRE_HOME}/lib/[a-z]* \ 18 ${JRE_HOME}/lib/[a-z]* \
19 ${JRE_HOME}/LICENSE \ 19 ${JRE_HOME}/LICENSE \
20 ${JRE_HOME}/release \ 20 ${JRE_HOME}/release \
21" 21"
22 22
23FILES_${PN}-dbg_append = "\ 23FILES:${PN}-dbg:append = "\
24 ${JRE_HOME}/bin/.debug/ \ 24 ${JRE_HOME}/bin/.debug/ \
25 ${JRE_HOME}/lib/.debug/ \ 25 ${JRE_HOME}/lib/.debug/ \
26 ${JRE_HOME}/lib/${JDK_ARCH}/.debug/ \ 26 ${JRE_HOME}/lib/${JDK_ARCH}/.debug/ \
@@ -28,17 +28,21 @@ FILES_${PN}-dbg_append = "\
28 ${JRE_HOME}/lib/${JDK_ARCH}/server/.debug/ \ 28 ${JRE_HOME}/lib/${JDK_ARCH}/server/.debug/ \
29" 29"
30 30
31FILES_${PN}-doc_append = "\ 31FILES:${PN}-doc:append = "\
32 ${JRE_HOME}/man \ 32 ${JRE_HOME}/man \
33 ${JRE_HOME}/ASSEMBLY_EXCEPTION \ 33 ${JRE_HOME}/ASSEMBLY_EXCEPTION \
34 ${JRE_HOME}/THIRD_PARTY_README \ 34 ${JRE_HOME}/THIRD_PARTY_README \
35" 35"
36 36
37RPROVIDES_${PN} = "java2-runtime" 37RPROVIDES:${PN} = "java2-runtime"
38 38
39inherit update-alternatives 39inherit update-alternatives
40 40
41ALTERNATIVE_${PN} = "java" 41ALTERNATIVE_PRIORITY = "100"
42
43ALTERNATIVE:${PN} = "java keytool"
42ALTERNATIVE_LINK_NAME[java] = "${bindir}/java" 44ALTERNATIVE_LINK_NAME[java] = "${bindir}/java"
43ALTERNATIVE_TARGET[java] = "${JRE_HOME}/bin/java" 45ALTERNATIVE_TARGET[java] = "${JRE_HOME}/bin/java"
44ALTERNATIVE_PRIORITY[java] = "100" 46
47ALTERNATIVE_LINK_NAME[keytool] = "${bindir}/keytool"
48ALTERNATIVE_TARGET[keytool] = "${JRE_HOME}/bin/keytool"
diff --git a/recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch b/recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch
index e9662eb..00ce23f 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0001-Allow-using-a-system-installed-libjpeg.patch
@@ -1,7 +1,7 @@
1From 836aad60652299a26341b46a4a9a2e6c418b6947 Mon Sep 17 00:00:00 2001 1From 74366a35d754d2dacab28d36804b5cde5dec481b Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 13:36:53 +0000 3Date: Tue, 27 Feb 2018 13:36:53 +0000
4Subject: [PATCH 01/10] Allow using a system-installed libjpeg 4Subject: [PATCH] Allow using a system-installed libjpeg
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -22,12 +22,13 @@ Upstream-Status: Backport
22 22
23Signed-off-by: André Draszik <andre.draszik@jci.com> 23Signed-off-by: André Draszik <andre.draszik@jci.com>
24Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 24Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
25
25--- 26---
26 common/autoconf/libraries.m4 | 35 ++++++++++++++++++++++++++++++----- 27 common/autoconf/libraries.m4 | 35 ++++++++++++++++++++++++++++++-----
27 1 file changed, 30 insertions(+), 5 deletions(-) 28 1 file changed, 30 insertions(+), 5 deletions(-)
28 29
29diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4 30diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4
30index 6d803f9..d2732eb 100644 31index 6d803f9b..d2732eb8 100644
31--- a/common/autoconf/libraries.m4 32--- a/common/autoconf/libraries.m4
32+++ b/common/autoconf/libraries.m4 33+++ b/common/autoconf/libraries.m4
33@@ -774,11 +774,36 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS], 34@@ -774,11 +774,36 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
@@ -72,6 +73,3 @@ index 6d803f9..d2732eb 100644
72 AC_SUBST(USE_EXTERNAL_LIBJPEG) 73 AC_SUBST(USE_EXTERNAL_LIBJPEG)
73 74
74 ############################################################################### 75 ###############################################################################
75--
762.24.1
77
diff --git a/recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch b/recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch
index ed8ecfa..64f4bce 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0002-Allow-using-a-system-installed-libpng.patch
@@ -1,7 +1,7 @@
1From ed79dc49323cc08e81b3699817825f66b1af0ce2 Mon Sep 17 00:00:00 2001 1From 048b9cb7910cf2f04f73483dd9755aeb50017e6b Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Thu, 2 Jan 2020 13:40:50 +0100 3Date: Thu, 2 Jan 2020 13:40:50 +0100
4Subject: [PATCH 02/10] Allow using a system-installed libpng 4Subject: [PATCH] Allow using a system-installed libpng
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -19,12 +19,13 @@ Upstream-Status: Backport
19 19
20Signed-off-by: André Draszik <andre.draszik@jci.com> 20Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 21Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
22
22--- 23---
23 common/autoconf/libraries.m4 | 41 ++++++++++++++++++++++++++++++++++++ 24 common/autoconf/libraries.m4 | 41 ++++++++++++++++++++++++++++++++++++
24 1 file changed, 41 insertions(+) 25 1 file changed, 41 insertions(+)
25 26
26diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4 27diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4
27index d2732eb..727f018 100644 28index d2732eb8..727f0181 100644
28--- a/common/autoconf/libraries.m4 29--- a/common/autoconf/libraries.m4
29+++ b/common/autoconf/libraries.m4 30+++ b/common/autoconf/libraries.m4
30@@ -843,6 +843,47 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS], 31@@ -843,6 +843,47 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
@@ -75,6 +76,3 @@ index d2732eb..727f018 100644
75 ############################################################################### 76 ###############################################################################
76 # 77 #
77 # Check for the zlib library 78 # Check for the zlib library
78--
792.24.1
80
diff --git a/recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch b/recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch
index 0e3359c..0ab4b7d 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0003-build-fix-build-on-as-needed-toolchains-generic.patch
@@ -1,7 +1,7 @@
1From 4cde9ea2adf8c57168a299f11625083d1822b0de Mon Sep 17 00:00:00 2001 1From 34bfdbabf0b2d9b1d0965b5fe362fd9596f58527 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 12 Mar 2018 15:40:58 +0000 3Date: Mon, 12 Mar 2018 15:40:58 +0000
4Subject: [PATCH 03/10] build: fix build on --as-needed toolchains (generic) 4Subject: [PATCH] build: fix build on --as-needed toolchains (generic)
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -66,12 +66,13 @@ all.
66 66
67Signed-off-by: André Draszik <andre.draszik@jci.com> 67Signed-off-by: André Draszik <andre.draszik@jci.com>
68Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 68Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
69
69--- 70---
70 make/common/NativeCompilation.gmk | 5 ++--- 71 make/common/NativeCompilation.gmk | 5 ++---
71 1 file changed, 2 insertions(+), 3 deletions(-) 72 1 file changed, 2 insertions(+), 3 deletions(-)
72 73
73diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk 74diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
74index d961cf3..92f8033 100644 75index d961cf35..92f8033f 100644
75--- a/make/common/NativeCompilation.gmk 76--- a/make/common/NativeCompilation.gmk
76+++ b/make/common/NativeCompilation.gmk 77+++ b/make/common/NativeCompilation.gmk
77@@ -618,9 +618,8 @@ endif # no MacOS X support yet 78@@ -618,9 +618,8 @@ endif # no MacOS X support yet
@@ -86,6 +87,3 @@ index d961cf3..92f8033 100644
86 ifneq (,$$($1_GEN_MANIFEST)) 87 ifneq (,$$($1_GEN_MANIFEST))
87 $(MT) -nologo -manifest $$($1_GEN_MANIFEST) -outputresource:$$@;#1 88 $(MT) -nologo -manifest $$($1_GEN_MANIFEST) -outputresource:$$@;#1
88 endif 89 endif
89--
902.24.1
91
diff --git a/recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch b/recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch
index db00b24..eab00d2 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0004-don-t-expect-fqpn-for-make.patch
@@ -1,15 +1,16 @@
1From f4c93547119c7550626e1b2ae2b750ea4f83b3fe Mon Sep 17 00:00:00 2001 1From a99cf53a082c1b25f5f7159c65bfd2c27a63fe75 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:42:43 +0100 3Date: Thu, 2 Jan 2020 13:42:43 +0100
4Subject: [PATCH 04/10] don't expect fqpn for make 4Subject: [PATCH] don't expect fqpn for make
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 common/autoconf/basics.m4 | 8 +++++--- 9 common/autoconf/basics.m4 | 8 +++++---
9 1 file changed, 5 insertions(+), 3 deletions(-) 10 1 file changed, 5 insertions(+), 3 deletions(-)
10 11
11diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4 12diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4
12index 4ee9cdd..c20ea76 100644 13index 4ee9cdd1..c20ea765 100644
13--- a/common/autoconf/basics.m4 14--- a/common/autoconf/basics.m4
14+++ b/common/autoconf/basics.m4 15+++ b/common/autoconf/basics.m4
15@@ -740,10 +740,12 @@ AC_DEFUN([BASIC_CHECK_GNU_MAKE], 16@@ -740,10 +740,12 @@ AC_DEFUN([BASIC_CHECK_GNU_MAKE],
@@ -28,6 +29,3 @@ index 4ee9cdd..c20ea76 100644
28 if test "x$FOUND_MAKE" = x; then 29 if test "x$FOUND_MAKE" = x; then
29 AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer.]) 30 AC_MSG_ERROR([The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer.])
30 fi 31 fi
31--
322.24.1
33
diff --git a/recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch b/recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch
index 262f0b7..1a0f6e3 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0005-autoconf-filter-aclocal-copy-too.patch
@@ -1,15 +1,16 @@
1From b8bab47b58be4a0102011825c2ee3dd2c6427d08 Mon Sep 17 00:00:00 2001 1From 37a7b95ab512ddeb635b6b8e23e4bac089ccee38 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:44:25 +0100 3Date: Thu, 2 Jan 2020 13:44:25 +0100
4Subject: [PATCH 05/10] autoconf: filter aclocal copy too 4Subject: [PATCH] autoconf: filter aclocal copy too
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 common/autoconf/basics.m4 | 1 + 9 common/autoconf/basics.m4 | 1 +
9 1 file changed, 1 insertion(+) 10 1 file changed, 1 insertion(+)
10 11
11diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4 12diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4
12index c20ea76..8e06cd2 100644 13index c20ea765..8e06cd25 100644
13--- a/common/autoconf/basics.m4 14--- a/common/autoconf/basics.m4
14+++ b/common/autoconf/basics.m4 15+++ b/common/autoconf/basics.m4
15@@ -636,6 +636,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR], 16@@ -636,6 +636,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
@@ -20,6 +21,3 @@ index c20ea76..8e06cd2 100644
20 -e 's/ //g' \ 21 -e 's/ //g' \
21 | $TR -d '\n'` 22 | $TR -d '\n'`
22 if test "x$filtered_files" != x; then 23 if test "x$filtered_files" != x; then
23--
242.24.1
25
diff --git a/recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch b/recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch
index c5fa4bf..d24ed71 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0006-autoconf-handle-extra-output.patch
@@ -1,19 +1,20 @@
1From cf40c00dfd6d2299055c0e8415525d2da5e7cd4a Mon Sep 17 00:00:00 2001 1From be1397b2106874869eebfc0b21943f1976a97f1b Mon Sep 17 00:00:00 2001
2From: Haiqing Bai <Haiqing.Bai@windriver.com> 2From: Haiqing Bai <Haiqing.Bai@windriver.com>
3Date: Thu, 2 Jan 2020 13:45:42 +0100 3Date: Thu, 2 Jan 2020 13:45:42 +0100
4Subject: [PATCH 06/10] autoconf: handle extra output 4Subject: [PATCH] autoconf: handle extra output
5 5
6When adding the environment variable JAVA_TOOL_OPTIONS an extra line 6When adding the environment variable JAVA_TOOL_OPTIONS an extra line
7in the output from 'java -version' is produced. As this output is 7in the output from 'java -version' is produced. As this output is
8parsed by configure script the extra line has to be filtered out. 8parsed by configure script the extra line has to be filtered out.
9 9
10Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 10Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
11
11--- 12---
12 common/autoconf/boot-jdk.m4 | 2 +- 13 common/autoconf/boot-jdk.m4 | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-) 14 1 file changed, 1 insertion(+), 1 deletion(-)
14 15
15diff --git a/common/autoconf/boot-jdk.m4 b/common/autoconf/boot-jdk.m4 16diff --git a/common/autoconf/boot-jdk.m4 b/common/autoconf/boot-jdk.m4
16index 5be15b8..0d1a6e1 100644 17index 5be15b86..0d1a6e14 100644
17--- a/common/autoconf/boot-jdk.m4 18--- a/common/autoconf/boot-jdk.m4
18+++ b/common/autoconf/boot-jdk.m4 19+++ b/common/autoconf/boot-jdk.m4
19@@ -51,7 +51,7 @@ AC_DEFUN([BOOTJDK_DO_CHECK], 20@@ -51,7 +51,7 @@ AC_DEFUN([BOOTJDK_DO_CHECK],
@@ -25,6 +26,3 @@ index 5be15b8..0d1a6e1 100644
25 26
26 # Extra M4 quote needed to protect [] in grep expression. 27 # Extra M4 quote needed to protect [] in grep expression.
27 [FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'`] 28 [FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'`]
28--
292.24.1
30
diff --git a/recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch b/recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch
index c99d599..b7e84b2 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0007-fix-assembler-flag-handling-in-makefile.patch
@@ -1,7 +1,7 @@
1From ec3aa8ae1159ff5ef37fae1ba470cf1886aa8d79 Mon Sep 17 00:00:00 2001 1From 2206e1d037359cf4f08a6c7b944d6735b56ea36d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com> 2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com>
3Date: Thu, 2 Jan 2020 13:49:02 +0100 3Date: Thu, 2 Jan 2020 13:49:02 +0100
4Subject: [PATCH 07/10] fix assembler flag handling in makefile 4Subject: [PATCH] fix assembler flag handling in makefile
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -14,12 +14,13 @@ Upstream-Status: Pending
14 14
15Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com> 15Signed-off-by: Erkka Kääriä <erkka.kaaria@intel.com>
16Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 16Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
17
17--- 18---
18 make/common/NativeCompilation.gmk | 2 +- 19 make/common/NativeCompilation.gmk | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-) 20 1 file changed, 1 insertion(+), 1 deletion(-)
20 21
21diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk 22diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
22index 92f8033..46a1be9 100644 23index 92f8033f..46a1be91 100644
23--- a/make/common/NativeCompilation.gmk 24--- a/make/common/NativeCompilation.gmk
24+++ b/make/common/NativeCompilation.gmk 25+++ b/make/common/NativeCompilation.gmk
25@@ -391,7 +391,7 @@ define SetupNativeCompilation 26@@ -391,7 +391,7 @@ define SetupNativeCompilation
@@ -31,6 +32,3 @@ index 92f8033..46a1be9 100644
31 32
32 # On windows we need to create a resource file 33 # On windows we need to create a resource file
33 ifeq ($(OPENJDK_TARGET_OS), windows) 34 ifeq ($(OPENJDK_TARGET_OS), windows)
34--
352.24.1
36
diff --git a/recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch b/recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch
index b783613..9cf468e 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0008-autoconf-fix-shark-build-common.patch
@@ -1,15 +1,16 @@
1From c530da1c0269d1e9a875670943446876227fdb71 Mon Sep 17 00:00:00 2001 1From bc54b9fbe29c524c07377fb8a87922be55c61700 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:51:40 +0100 3Date: Thu, 2 Jan 2020 13:51:40 +0100
4Subject: [PATCH 08/10] autoconf: fix shark build (common) 4Subject: [PATCH] autoconf: fix shark build (common)
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 common/autoconf/libraries.m4 | 5 +++-- 9 common/autoconf/libraries.m4 | 5 +++--
9 1 file changed, 3 insertions(+), 2 deletions(-) 10 1 file changed, 3 insertions(+), 2 deletions(-)
10 11
11diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4 12diff --git a/common/autoconf/libraries.m4 b/common/autoconf/libraries.m4
12index 727f018..91d2b5c 100644 13index 727f0181..91d2b5ca 100644
13--- a/common/autoconf/libraries.m4 14--- a/common/autoconf/libraries.m4
14+++ b/common/autoconf/libraries.m4 15+++ b/common/autoconf/libraries.m4
15@@ -1079,8 +1079,9 @@ AC_DEFUN_ONCE([LIB_SETUP_STATIC_LINK_LIBSTDCPP], 16@@ -1079,8 +1079,9 @@ AC_DEFUN_ONCE([LIB_SETUP_STATIC_LINK_LIBSTDCPP],
@@ -32,6 +33,3 @@ index 727f018..91d2b5c 100644
32 if echo "${flag}" | grep -q '^-l'; then 33 if echo "${flag}" | grep -q '^-l'; then
33 if test "${LLVM_LIBS}" != ""; then 34 if test "${LLVM_LIBS}" != ""; then
34 LLVM_LIBS="${LLVM_LIBS} " 35 LLVM_LIBS="${LLVM_LIBS} "
35--
362.24.1
37
diff --git a/recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch b/recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch
index 14fccd1..ff6180f 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch
@@ -1,16 +1,16 @@
1From a5f2646a9dd0f7191e9e0aa5eba5fdd9d70d1671 Mon Sep 17 00:00:00 2001 1From 038f36c083a83916504b8b59c80099fbeb9a68d6 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:53:50 +0100 3Date: Thu, 2 Jan 2020 13:53:50 +0100
4Subject: [PATCH 09/10] prevent debuginfo in favour of openembedded package 4Subject: [PATCH] prevent debuginfo in favour of openembedded package split
5 split
6 5
7Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
8--- 8---
9 make/common/NativeCompilation.gmk | 122 ------------------------------ 9 make/common/NativeCompilation.gmk | 122 ------------------------------
10 1 file changed, 122 deletions(-) 10 1 file changed, 122 deletions(-)
11 11
12diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk 12diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
13index 46a1be9..b4ea2c6 100644 13index 46a1be91..b4ea2c6f 100644
14--- a/make/common/NativeCompilation.gmk 14--- a/make/common/NativeCompilation.gmk
15+++ b/make/common/NativeCompilation.gmk 15+++ b/make/common/NativeCompilation.gmk
16@@ -456,67 +456,6 @@ define SetupNativeCompilation 16@@ -456,67 +456,6 @@ define SetupNativeCompilation
@@ -149,6 +149,3 @@ index 46a1be9..b4ea2c6 100644
149 endif 149 endif
150 endif 150 endif
151 151
152--
1532.24.1
154
diff --git a/recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch b/recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch
index 57099ec..ff9346c 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0010-autoconf-remove-shell-variables-from-autoheader.patch
@@ -1,15 +1,16 @@
1From 0d22dccb4de73d274b90e2647702b92958374bc1 Mon Sep 17 00:00:00 2001 1From b6e88ffb6c4a8d84da643fa9cb29c086f7c02584 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:55:29 +0100 3Date: Thu, 2 Jan 2020 13:55:29 +0100
4Subject: [PATCH 10/10] autoconf: remove shell variables from autoheader 4Subject: [PATCH] autoconf: remove shell variables from autoheader
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 common/autoconf/basics.m4 | 14 +++++++------- 9 common/autoconf/basics.m4 | 14 +++++++-------
9 1 file changed, 7 insertions(+), 7 deletions(-) 10 1 file changed, 7 insertions(+), 7 deletions(-)
10 11
11diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4 12diff --git a/common/autoconf/basics.m4 b/common/autoconf/basics.m4
12index 8e06cd2..c220bba 100644 13index 8e06cd25..c220bba7 100644
13--- a/common/autoconf/basics.m4 14--- a/common/autoconf/basics.m4
14+++ b/common/autoconf/basics.m4 15+++ b/common/autoconf/basics.m4
15@@ -661,21 +661,21 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR], 16@@ -661,21 +661,21 @@ AC_DEFUN_ONCE([BASIC_SETUP_OUTPUT_DIR],
@@ -41,6 +42,3 @@ index 8e06cd2..c220bba 100644
41 ]) 42 ])
42 43
43 AC_DEFUN_ONCE([BASIC_SETUP_LOGGING], 44 AC_DEFUN_ONCE([BASIC_SETUP_LOGGING],
44--
452.24.1
46
diff --git a/recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch b/recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch
index f1de194..88d2192 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0011-autoconf-fix-CC-with-arguments-detection.patch
@@ -1,5 +1,20 @@
1From e878eea93b95d82d3ea13f4122f4f74cd2f8f3df Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Thu, 22 Oct 2020 09:23:06 +0200
4Subject: [PATCH 11/13] autoconf: fix CC with arguments detection
5
6Fix the compiler binary detection for exported CC variables with
7arguments in them.
8
9Upstream-Status: Pending
10
11Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
12---
13 common/autoconf/toolchain.m4 | 23 +++++++++++++++--------
14 1 file changed, 15 insertions(+), 8 deletions(-)
15
1diff --git a/common/autoconf/toolchain.m4 b/common/autoconf/toolchain.m4 16diff --git a/common/autoconf/toolchain.m4 b/common/autoconf/toolchain.m4
2index e3a82c8..705e3e7 100644 17index c0a4af5..28da6ea 100644
3--- a/common/autoconf/toolchain.m4 18--- a/common/autoconf/toolchain.m4
4+++ b/common/autoconf/toolchain.m4 19+++ b/common/autoconf/toolchain.m4
5@@ -478,23 +478,30 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER], 20@@ -478,23 +478,30 @@ AC_DEFUN([TOOLCHAIN_FIND_COMPILER],
@@ -41,3 +56,6 @@ index e3a82c8..705e3e7 100644
41 else 56 else
42 # No user supplied value. Locate compiler ourselves. 57 # No user supplied value. Locate compiler ourselves.
43 58
59--
602.26.2
61
diff --git a/recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch b/recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch
index 39179d4..fc8fca5 100644
--- a/recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/0012-autoconf-NativeCompilation-remove-sysroot.patch
@@ -1,5 +1,17 @@
1From 03052435dc7f1146ddd7ebe6f510a89448d33aca Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Thu, 22 Oct 2020 09:24:50 +0200
4Subject: [PATCH 12/13] autoconf: NativeCompilation: remove sysroot
5
6Upstream-Status: Pending
7
8Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
9---
10 make/common/NativeCompilation.gmk | 6 ------
11 1 file changed, 6 deletions(-)
12
1diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk 13diff --git a/make/common/NativeCompilation.gmk b/make/common/NativeCompilation.gmk
2index d961cf3..9679f97 100644 14index b4ea2c6..01082f5 100644
3--- a/make/common/NativeCompilation.gmk 15--- a/make/common/NativeCompilation.gmk
4+++ b/make/common/NativeCompilation.gmk 16+++ b/make/common/NativeCompilation.gmk
5@@ -383,10 +383,6 @@ define SetupNativeCompilation 17@@ -383,10 +383,6 @@ define SetupNativeCompilation
@@ -22,3 +34,6 @@ index d961cf3..9679f97 100644
22 $1 := $$($1_TARGET) 34 $1 := $$($1_TARGET)
23 ifneq (,$$($1_LIBRARY)) 35 ifneq (,$$($1_LIBRARY))
24 # Generating a dynamic library. 36 # Generating a dynamic library.
37--
382.26.2
39
diff --git a/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch b/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch
new file mode 100644
index 0000000..7991a04
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch
@@ -0,0 +1,219 @@
1From 3a41aceff84ac9c64910f2efbd4bee7c3532c65d Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Wed, 29 Apr 2020 10:15:11 +0200
4Subject: [PATCH] autoconf: remove Werror
5
6We don't want to mess around with disabling warnings on new
7compiler versions therefore we remove Werror.
8
9Upstream-Status: Invalid
10
11Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
12
13---
14 common/autoconf/flags.m4 | 12 +++---
15 common/autoconf/generated-configure.sh | 56 +++++++++++++-------------
16 2 files changed, 34 insertions(+), 34 deletions(-)
17
18diff --git a/common/autoconf/flags.m4 b/common/autoconf/flags.m4
19index 077efa29..b98575a1 100644
20--- a/common/autoconf/flags.m4
21+++ b/common/autoconf/flags.m4
22@@ -399,7 +399,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK],
23 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS -Wl,-z,relro"
24 fi
25 $2CXXSTD_CXXFLAG="-std=gnu++98"
26- FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]$2CXXSTD_CXXFLAG -Werror],
27+ FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]$2CXXSTD_CXXFLAG],
28 [], [$2CXXSTD_CXXFLAG=""])
29 $2CXXFLAGS_JDK="${$2CXXFLAGS_JDK} ${$2CXXSTD_CXXFLAG}"
30 $2JVM_CFLAGS="${$2JVM_CFLAGS} ${$2CXXSTD_CXXFLAG}"
31@@ -489,17 +489,17 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK],
32 # Notably, -ffp-contract=off needs to be added for GCC >= 4.6,
33 # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6
34 COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off"
35- FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]COMPILER_FP_CONTRACT_OFF_FLAG -Werror],
36+ FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]COMPILER_FP_CONTRACT_OFF_FLAG],
37 [], [COMPILER_FP_CONTRACT_OFF_FLAG=""])
38 if test "x$COMPILER_FP_CONTRACT_OFF_FLAG" = x; then
39 if test "$OPENJDK_TARGET_CPU_ARCH" = "x86" ||
40 test "$OPENJDK_TARGET_CPU_ARCH" = "x86_64" ||
41 test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then
42 M_NO_FUSED_ADD_FLAG="-mno-fused-madd"
43- FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]M_NO_FUSED_ADD_FLAG -Werror],
44+ FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]M_NO_FUSED_ADD_FLAG],
45 [], [M_NO_FUSED_ADD_FLAG=""])
46 NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing"
47- FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]NO_STRICT_ALIASING_FLAG -Werror],
48+ FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]NO_STRICT_ALIASING_FLAG],
49 [], [NO_STRICT_ALIASING_FLAG=""])
50 if test "x$M_NO_FUSED_ADD_FLAG" != "x" && test "x$NO_STRICT_ALIASING_FLAG" != "x"; then
51 FDLIBM_CFLAGS="$M_NO_FUSED_ADD_FLAG $NO_STRICT_ALIASING_FLAG"
52@@ -866,11 +866,11 @@ AC_DEFUN_ONCE([FLAGS_SETUP_GCC6_COMPILER_FLAGS],
53 # Notably, value range propagation now assumes that the this pointer of C++
54 # member functions is non-null.
55 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
56- FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror],
57+ FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_DELETE_NULL_POINTER_CHECKS_CFLAG],
58 [], [NO_DELETE_NULL_POINTER_CHECKS_CFLAG=""])
59 AC_SUBST([NO_DELETE_NULL_POINTER_CHECKS_CFLAG])
60 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
61- FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_LIFETIME_DSE_CFLAG -Werror],
62+ FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_LIFETIME_DSE_CFLAG],
63 [], [NO_LIFETIME_DSE_CFLAG=""])
64 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}"
65 AC_SUBST([NO_LIFETIME_DSE_CFLAG])
66diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh
67index d57035b0..1953dc4e 100644
68--- a/common/autoconf/generated-configure.sh
69+++ b/common/autoconf/generated-configure.sh
70@@ -41498,12 +41498,12 @@ $as_echo "$ac_cv_c_bigendian" >&6; }
71 fi
72 CXXSTD_CXXFLAG="-std=gnu++98"
73
74- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5
75-$as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; }
76+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG\"" >&5
77+$as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG\"... " >&6; }
78 supports=yes
79
80 saved_cxxflags="$CXXFLAGS"
81- CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror"
82+ CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG"
83 ac_ext=cpp
84 ac_cpp='$CXXCPP $CPPFLAGS'
85 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
86@@ -41654,12 +41654,12 @@ fi
87 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks"
88
89
90- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
91-$as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
92+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5
93+$as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; }
94 supports=yes
95
96 saved_cflags="$CFLAGS"
97- CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror"
98+ CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG"
99 ac_ext=c
100 ac_cpp='$CPP $CPPFLAGS'
101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
102@@ -41694,12 +41694,12 @@ $as_echo "$supports" >&6; }
103 fi
104
105
106- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
107-$as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
108+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5
109+$as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; }
110 supports=yes
111
112 saved_cxxflags="$CXXFLAGS"
113- CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror"
114+ CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG"
115 ac_ext=cpp
116 ac_cpp='$CXXCPP $CPPFLAGS'
117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
118@@ -41733,8 +41733,8 @@ $as_echo "$supports" >&6; }
119 fi
120
121
122- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5
123-$as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; }
124+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5
125+$as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; }
126 supports=no
127 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi
128
129@@ -41750,12 +41750,12 @@ $as_echo "$supports" >&6; }
130 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse"
131
132
133- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
134-$as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
135+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG\"" >&5
136+$as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; }
137 supports=yes
138
139 saved_cflags="$CFLAGS"
140- CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror"
141+ CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG"
142 ac_ext=c
143 ac_cpp='$CPP $CPPFLAGS'
144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
145@@ -41789,12 +41789,12 @@ $as_echo "$supports" >&6; }
146 fi
147
148
149- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
150-$as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
151+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG\"" >&5
152+$as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; }
153 supports=yes
154
155 saved_cxxflags="$CXXFLAGS"
156- CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror"
157+ CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG"
158 ac_ext=cpp
159 ac_cpp='$CXXCPP $CPPFLAGS'
160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
161@@ -41828,8 +41828,8 @@ $as_echo "$supports" >&6; }
162 fi
163
164
165- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5
166-$as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; }
167+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG\"" >&5
168+$as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; }
169 supports=no
170 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi
171
172@@ -41862,12 +41862,12 @@ $as_echo "$supports" >&6; }
173 # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6
174 COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off"
175
176- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"" >&5
177-$as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"... " >&6; }
178+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG\"" >&5
179+$as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG\"... " >&6; }
180 supports=yes
181
182 saved_cxxflags="$CXXFLAGS"
183- CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG -Werror"
184+ CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG"
185 ac_ext=cpp
186 ac_cpp='$CXXCPP $CPPFLAGS'
187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
188@@ -41906,12 +41906,12 @@ $as_echo "$supports" >&6; }
189 test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then
190 M_NO_FUSED_ADD_FLAG="-mno-fused-madd"
191
192- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"" >&5
193-$as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"... " >&6; }
194+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG\"" >&5
195+$as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG\"... " >&6; }
196 supports=yes
197
198 saved_cxxflags="$CXXFLAGS"
199- CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG -Werror"
200+ CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG"
201 ac_ext=cpp
202 ac_cpp='$CXXCPP $CPPFLAGS'
203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
204@@ -41946,12 +41946,12 @@ $as_echo "$supports" >&6; }
205
206 NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing"
207
208- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"" >&5
209-$as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"... " >&6; }
210+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG\"" >&5
211+$as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG\"... " >&6; }
212 supports=yes
213
214 saved_cxxflags="$CXXFLAGS"
215- CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG -Werror"
216+ CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG"
217 ac_ext=cpp
218 ac_cpp='$CXXCPP $CPPFLAGS'
219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
diff --git a/recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch b/recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch
index 280ee60..b2e50e0 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch
@@ -1,7 +1,7 @@
1From 5e8080a8dd56205f550f7c490f864c95dc8e509b Mon Sep 17 00:00:00 2001 1From 4d1bd6a65c52564f32761217ded7b9bdde43556b Mon Sep 17 00:00:00 2001
2From: Wenlin Kang <wenlin.kang@windriver.com> 2From: Wenlin Kang <wenlin.kang@windriver.com>
3Date: Sun, 17 Feb 2019 22:38:33 -0800 3Date: Sun, 17 Feb 2019 22:38:33 -0800
4Subject: [PATCH 1001/1012] hotspot: fix crash on JNI_CreateJavaVM 4Subject: [PATCH 1001/1013] hotspot: fix crash on JNI_CreateJavaVM
5 5
6In function os::pd_create_stack_guard_pages(char* addr, size_t size), 6In function os::pd_create_stack_guard_pages(char* addr, size_t size),
7when addr < os::Linux::initial_thread_stack_bottom(), usually munmap() 7when addr < os::Linux::initial_thread_stack_bottom(), usually munmap()
@@ -19,10 +19,10 @@ Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
19 1 file changed, 2 insertions(+), 1 deletion(-) 19 1 file changed, 2 insertions(+), 1 deletion(-)
20 20
21diff --git a/hotspot/src/os/linux/vm/os_linux.cpp b/hotspot/src/os/linux/vm/os_linux.cpp 21diff --git a/hotspot/src/os/linux/vm/os_linux.cpp b/hotspot/src/os/linux/vm/os_linux.cpp
22index 03cabfefb..4f28cc1fb 100644 22index c477851c1..47eef1e7c 100644
23--- a/hotspot/src/os/linux/vm/os_linux.cpp 23--- a/hotspot/src/os/linux/vm/os_linux.cpp
24+++ b/hotspot/src/os/linux/vm/os_linux.cpp 24+++ b/hotspot/src/os/linux/vm/os_linux.cpp
25@@ -3192,7 +3192,8 @@ bool os::pd_create_stack_guard_pages(char* addr, size_t size) { 25@@ -3227,7 +3227,8 @@ bool os::pd_create_stack_guard_pages(char* addr, size_t size) {
26 uintptr_t stack_extent = (uintptr_t) os::Linux::initial_thread_stack_bottom(); 26 uintptr_t stack_extent = (uintptr_t) os::Linux::initial_thread_stack_bottom();
27 unsigned char vec[1]; 27 unsigned char vec[1];
28 28
@@ -33,5 +33,5 @@ index 03cabfefb..4f28cc1fb 100644
33 stack_extent = (uintptr_t) get_stack_commited_bottom( 33 stack_extent = (uintptr_t) get_stack_commited_bottom(
34 os::Linux::initial_thread_stack_bottom(), 34 os::Linux::initial_thread_stack_bottom(),
35-- 35--
362.24.1 362.26.2
37 37
diff --git a/recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch b/recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch
index 3f678dd..7739c8b 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1002-hotspot-use-correct-include-for-poll.patch
@@ -1,7 +1,7 @@
1From df566df123c8af8252c0e113c41c32482834923e Mon Sep 17 00:00:00 2001 1From 9f2a5acce1da9908a7e94388880c831e1635e51f Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 09:28:06 +0000 3Date: Tue, 27 Feb 2018 09:28:06 +0000
4Subject: [PATCH 1002/1012] hotspot: use correct include for poll 4Subject: [PATCH] hotspot: use correct include for poll
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -23,15 +23,16 @@ Upstream-Status: Pending
23 23
24Signed-off-by: André Draszik <andre.draszik@jci.com> 24Signed-off-by: André Draszik <andre.draszik@jci.com>
25Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 25Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
26
26--- 27---
27 src/os/aix/vm/os_aix.inline.hpp | 2 +- 28 hotspot/src/os/aix/vm/os_aix.inline.hpp | 2 +-
28 src/os/bsd/vm/os_bsd.inline.hpp | 2 +- 29 hotspot/src/os/bsd/vm/os_bsd.inline.hpp | 2 +-
29 src/os/linux/vm/os_linux.inline.hpp | 2 +- 30 hotspot/src/os/linux/vm/os_linux.inline.hpp | 2 +-
30 src/os/solaris/vm/os_solaris.inline.hpp | 2 +- 31 hotspot/src/os/solaris/vm/os_solaris.inline.hpp | 2 +-
31 4 files changed, 4 insertions(+), 4 deletions(-) 32 4 files changed, 4 insertions(+), 4 deletions(-)
32 33
33diff --git a/hotspot/src/os/aix/vm/os_aix.inline.hpp b/hotspot/src/os/aix/vm/os_aix.inline.hpp 34diff --git a/hotspot/src/os/aix/vm/os_aix.inline.hpp b/hotspot/src/os/aix/vm/os_aix.inline.hpp
34index 421ea342e..9a1e1e096 100644 35index 421ea342..9a1e1e09 100644
35--- a/hotspot/src/os/aix/vm/os_aix.inline.hpp 36--- a/hotspot/src/os/aix/vm/os_aix.inline.hpp
36+++ b/hotspot/src/os/aix/vm/os_aix.inline.hpp 37+++ b/hotspot/src/os/aix/vm/os_aix.inline.hpp
37@@ -34,7 +34,7 @@ 38@@ -34,7 +34,7 @@
@@ -44,7 +45,7 @@ index 421ea342e..9a1e1e096 100644
44 #include <netdb.h> 45 #include <netdb.h>
45 46
46diff --git a/hotspot/src/os/bsd/vm/os_bsd.inline.hpp b/hotspot/src/os/bsd/vm/os_bsd.inline.hpp 47diff --git a/hotspot/src/os/bsd/vm/os_bsd.inline.hpp b/hotspot/src/os/bsd/vm/os_bsd.inline.hpp
47index c35abf486..8ff584aee 100644 48index c35abf48..8ff584ae 100644
48--- a/hotspot/src/os/bsd/vm/os_bsd.inline.hpp 49--- a/hotspot/src/os/bsd/vm/os_bsd.inline.hpp
49+++ b/hotspot/src/os/bsd/vm/os_bsd.inline.hpp 50+++ b/hotspot/src/os/bsd/vm/os_bsd.inline.hpp
50@@ -33,7 +33,7 @@ 51@@ -33,7 +33,7 @@
@@ -57,7 +58,7 @@ index c35abf486..8ff584aee 100644
57 58
58 inline void* os::thread_local_storage_at(int index) { 59 inline void* os::thread_local_storage_at(int index) {
59diff --git a/hotspot/src/os/linux/vm/os_linux.inline.hpp b/hotspot/src/os/linux/vm/os_linux.inline.hpp 60diff --git a/hotspot/src/os/linux/vm/os_linux.inline.hpp b/hotspot/src/os/linux/vm/os_linux.inline.hpp
60index a23bd5631..9d56de0ef 100644 61index a23bd563..9d56de0e 100644
61--- a/hotspot/src/os/linux/vm/os_linux.inline.hpp 62--- a/hotspot/src/os/linux/vm/os_linux.inline.hpp
62+++ b/hotspot/src/os/linux/vm/os_linux.inline.hpp 63+++ b/hotspot/src/os/linux/vm/os_linux.inline.hpp
63@@ -33,7 +33,7 @@ 64@@ -33,7 +33,7 @@
@@ -70,7 +71,7 @@ index a23bd5631..9d56de0ef 100644
70 71
71 inline void* os::thread_local_storage_at(int index) { 72 inline void* os::thread_local_storage_at(int index) {
72diff --git a/hotspot/src/os/solaris/vm/os_solaris.inline.hpp b/hotspot/src/os/solaris/vm/os_solaris.inline.hpp 73diff --git a/hotspot/src/os/solaris/vm/os_solaris.inline.hpp b/hotspot/src/os/solaris/vm/os_solaris.inline.hpp
73index 8e095ab69..ce37e9a12 100644 74index 8e095ab6..ce37e9a1 100644
74--- a/hotspot/src/os/solaris/vm/os_solaris.inline.hpp 75--- a/hotspot/src/os/solaris/vm/os_solaris.inline.hpp
75+++ b/hotspot/src/os/solaris/vm/os_solaris.inline.hpp 76+++ b/hotspot/src/os/solaris/vm/os_solaris.inline.hpp
76@@ -33,7 +33,7 @@ 77@@ -33,7 +33,7 @@
@@ -82,6 +83,3 @@ index 8e095ab69..ce37e9a12 100644
82 #include <sys/filio.h> 83 #include <sys/filio.h>
83 #include <unistd.h> 84 #include <unistd.h>
84 #include <netdb.h> 85 #include <netdb.h>
85--
862.24.1
87
diff --git a/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch b/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
index 8e31461..e0864be 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1003-hotspot-don-t-rely-on-old-SysV-SIGCLD.patch
@@ -1,7 +1,7 @@
1From e5bf672f4e10997789f2a447fd95a88703dbd332 Mon Sep 17 00:00:00 2001 1From 7e40a364af1427b5f5238cd8d49e947db1c1557d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 15:00:55 +0000 3Date: Tue, 27 Feb 2018 15:00:55 +0000
4Subject: [PATCH 1003/1012] hotspot: don't rely on old SysV SIGCLD 4Subject: [PATCH] hotspot: don't rely on old SysV SIGCLD
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -20,12 +20,13 @@ Upstream-Status: Pending
20 20
21Signed-off-by: André Draszik <andre.draszik@jci.com> 21Signed-off-by: André Draszik <andre.draszik@jci.com>
22Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 22Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
23
23--- 24---
24 src/os/linux/vm/jvm_linux.cpp | 2 ++ 25 hotspot/src/os/linux/vm/jvm_linux.cpp | 2 ++
25 1 file changed, 2 insertions(+) 26 1 file changed, 2 insertions(+)
26 27
27diff --git a/hotspot/src/os/linux/vm/jvm_linux.cpp b/hotspot/src/os/linux/vm/jvm_linux.cpp 28diff --git a/hotspot/src/os/linux/vm/jvm_linux.cpp b/hotspot/src/os/linux/vm/jvm_linux.cpp
28index ba84788a1..c22281f7c 100644 29index ba84788a..c22281f7 100644
29--- a/hotspot/src/os/linux/vm/jvm_linux.cpp 30--- a/hotspot/src/os/linux/vm/jvm_linux.cpp
30+++ b/hotspot/src/os/linux/vm/jvm_linux.cpp 31+++ b/hotspot/src/os/linux/vm/jvm_linux.cpp
31@@ -154,7 +154,9 @@ struct siglabel siglabels[] = { 32@@ -154,7 +154,9 @@ struct siglabel siglabels[] = {
@@ -38,6 +39,3 @@ index ba84788a1..c22281f7c 100644
38 "CHLD", SIGCHLD, /* Child status has changed (POSIX). */ 39 "CHLD", SIGCHLD, /* Child status has changed (POSIX). */
39 "CONT", SIGCONT, /* Continue (POSIX). */ 40 "CONT", SIGCONT, /* Continue (POSIX). */
40 "STOP", SIGSTOP, /* Stop, unblockable (POSIX). */ 41 "STOP", SIGSTOP, /* Stop, unblockable (POSIX). */
41--
422.24.1
43
diff --git a/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch b/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch
deleted file mode 100644
index ad480e3..0000000
--- a/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-backport-patch-to-fix-misuses-of-strncpy-str.patch
+++ /dev/null
@@ -1,172 +0,0 @@
1From 3a6eef99b27b7dd750e7a02eb3ada71db99d9345 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Fri, 10 Aug 2018 14:54:45 +0100
4Subject: [PATCH 1004/1012] hotspot: backport patch to fix misuses of
5 strncpy/strncat
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Various small fixes around strncpy and strncat
11
12Compilation using gcc >= 8 fails because of errors regarding
13misuse of string functions.
14Fix them using a backport from openjdk-10
15
16Modelled after http://hg.openjdk.java.net/jdk-updates/jdk10u/rev/b1608535e50f
17
18Signed-off-by: André Draszik <andre.draszik@jci.com>
19Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
20---
21 agent/src/os/linux/libproc_impl.c | 7 ++++++-
22 src/share/tools/hsdis/hsdis.c | 1 +
23 src/share/vm/compiler/compileBroker.hpp | 3 ++-
24 src/share/vm/compiler/disassembler.cpp | 1 +
25 src/share/vm/runtime/arguments.cpp | 13 ++++++-------
26 src/share/vm/utilities/ostream.cpp | 12 ++++++++----
27 src/share/vm/utilities/vmError.cpp | 9 +--------
28 7 files changed, 25 insertions(+), 21 deletions(-)
29
30diff --git a/hotspot/agent/src/os/linux/libproc_impl.c b/hotspot/agent/src/os/linux/libproc_impl.c
31index ca791c95d..73a15ce35 100644
32--- a/hotspot/agent/src/os/linux/libproc_impl.c
33+++ b/hotspot/agent/src/os/linux/libproc_impl.c
34@@ -159,7 +159,12 @@ lib_info* add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd,
35 return NULL;
36 }
37
38- strncpy(newlib->name, libname, sizeof(newlib->name));
39+ if (strlen(libname) >= sizeof(newlib->name)) {
40+ print_debug("libname %s too long\n", libname);
41+ return NULL;
42+ }
43+ strcpy(newlib->name, libname);
44+
45 newlib->base = base;
46
47 if (fd == -1) {
48diff --git a/hotspot/src/share/tools/hsdis/hsdis.c b/hotspot/src/share/tools/hsdis/hsdis.c
49index 7bef1040f..1907d479e 100644
50--- a/hotspot/src/share/tools/hsdis/hsdis.c
51+++ b/hotspot/src/share/tools/hsdis/hsdis.c
52@@ -438,6 +438,7 @@ static void parse_caller_options(struct hsdis_app_data* app_data, const char* ca
53 }
54 p = q;
55 }
56+ *iop = '\0';
57 }
58
59 static void print_help(struct hsdis_app_data* app_data,
60diff --git a/hotspot/src/share/vm/compiler/compileBroker.hpp b/hotspot/src/share/vm/compiler/compileBroker.hpp
61index ad37ff173..16e0ba3aa 100644
62--- a/hotspot/src/share/vm/compiler/compileBroker.hpp
63+++ b/hotspot/src/share/vm/compiler/compileBroker.hpp
64@@ -173,7 +173,8 @@ class CompilerCounters : public CHeapObj<mtCompiler> {
65 // these methods should be called in a thread safe context
66
67 void set_current_method(const char* method) {
68- strncpy(_current_method, method, (size_t)cmname_buffer_length);
69+ strncpy(_current_method, method, (size_t)cmname_buffer_length-1);
70+ _current_method[cmname_buffer_length-1] = '\0';
71 if (UsePerfData) _perf_current_method->set_value(method);
72 }
73
74diff --git a/hotspot/src/share/vm/compiler/disassembler.cpp b/hotspot/src/share/vm/compiler/disassembler.cpp
75index 93cd9e854..e7b32cd6b 100644
76--- a/hotspot/src/share/vm/compiler/disassembler.cpp
77+++ b/hotspot/src/share/vm/compiler/disassembler.cpp
78@@ -295,6 +295,7 @@ address decode_env::handle_event(const char* event, address arg) {
79 strlen((const char*)arg) > sizeof(buffer) - 1) {
80 // Only print this when the mach changes
81 strncpy(buffer, (const char*)arg, sizeof(buffer) - 1);
82+ buffer[sizeof(buffer) - 1] = '\0';
83 output()->print_cr("[Disassembling for mach='%s']", arg);
84 }
85 } else if (match(event, "format bytes-per-line")) {
86diff --git a/hotspot/src/share/vm/runtime/arguments.cpp b/hotspot/src/share/vm/runtime/arguments.cpp
87index 2665b6b8c..5a9294677 100644
88--- a/hotspot/src/share/vm/runtime/arguments.cpp
89+++ b/hotspot/src/share/vm/runtime/arguments.cpp
90@@ -3455,7 +3455,7 @@ void Arguments::fix_appclasspath() {
91 }
92
93 char* copy = AllocateHeap(strlen(src) + 1, mtInternal);
94- strncpy(copy, src, strlen(src) + 1);
95+ strcpy(copy, src);
96
97 // trim all trailing empty paths
98 for (char* tail = copy + strlen(copy) - 1; tail >= copy && *tail == separator; tail--) {
99@@ -3834,17 +3834,16 @@ static char* get_shared_archive_path() {
100 if (end != NULL) *end = '\0';
101 size_t jvm_path_len = strlen(jvm_path);
102 size_t file_sep_len = strlen(os::file_separator());
103- shared_archive_path = NEW_C_HEAP_ARRAY(char, jvm_path_len +
104- file_sep_len + 20, mtInternal);
105+ const size_t len = jvm_path_len + file_sep_len + 20;
106+ shared_archive_path = NEW_C_HEAP_ARRAY(char, len, mtInternal);
107 if (shared_archive_path != NULL) {
108- strncpy(shared_archive_path, jvm_path, jvm_path_len + 1);
109- strncat(shared_archive_path, os::file_separator(), file_sep_len);
110- strncat(shared_archive_path, "classes.jsa", 11);
111+ jio_snprintf(shared_archive_path, len, "%s%sclasses.jsa",
112+ jvm_path, os::file_separator());
113 }
114 } else {
115 shared_archive_path = NEW_C_HEAP_ARRAY(char, strlen(SharedArchiveFile) + 1, mtInternal);
116 if (shared_archive_path != NULL) {
117- strncpy(shared_archive_path, SharedArchiveFile, strlen(SharedArchiveFile) + 1);
118+ strcpy(shared_archive_path, SharedArchiveFile);
119 }
120 }
121 return shared_archive_path;
122diff --git a/hotspot/src/share/vm/utilities/ostream.cpp b/hotspot/src/share/vm/utilities/ostream.cpp
123index 1b00f829a..4daea2b7e 100644
124--- a/hotspot/src/share/vm/utilities/ostream.cpp
125+++ b/hotspot/src/share/vm/utilities/ostream.cpp
126@@ -342,15 +342,19 @@ void stringStream::write(const char* s, size_t len) {
127 assert(rm == NULL || Thread::current()->current_resource_mark() == rm,
128 "stringStream is re-allocated with a different ResourceMark");
129 buffer = NEW_RESOURCE_ARRAY(char, end);
130- strncpy(buffer, oldbuf, buffer_pos);
131+ if (buffer_pos > 0) {
132+ memcpy(buffer, oldbuf, buffer_pos);
133+ }
134 buffer_length = end;
135 }
136 }
137 // invariant: buffer is always null-terminated
138 guarantee(buffer_pos + write_len + 1 <= buffer_length, "stringStream oob");
139- buffer[buffer_pos + write_len] = 0;
140- strncpy(buffer + buffer_pos, s, write_len);
141- buffer_pos += write_len;
142+ if (write_len > 0) {
143+ buffer[buffer_pos + write_len] = 0;
144+ memcpy(buffer + buffer_pos, s, write_len);
145+ buffer_pos += write_len;
146+ }
147
148 // Note that the following does not depend on write_len.
149 // This means that position and count get updated
150diff --git a/hotspot/src/share/vm/utilities/vmError.cpp b/hotspot/src/share/vm/utilities/vmError.cpp
151index ef3bb5cee..c11fef472 100644
152--- a/hotspot/src/share/vm/utilities/vmError.cpp
153+++ b/hotspot/src/share/vm/utilities/vmError.cpp
154@@ -450,14 +450,7 @@ void VMError::report(outputStream* st) {
155 #else
156 const char *file = _filename;
157 #endif
158- size_t len = strlen(file);
159- size_t buflen = sizeof(buf);
160-
161- strncpy(buf, file, buflen);
162- if (len + 10 < buflen) {
163- sprintf(buf + len, ":%d", _lineno);
164- }
165- st->print(" (%s)", buf);
166+ st->print(" (%s:%d)", file, _lineno);
167 } else {
168 st->print(" (0x%x)", _id);
169 }
170--
1712.24.1
172
diff --git a/recipes-core/openjdk/patches-openjdk-8/1005-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch b/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch
index 81177d0..2eba669 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1005-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1004-hotspot-fix-Wreturn-type-issues-introduced-by-806165.patch
@@ -1,8 +1,7 @@
1From bce7b39095a839b8e77fe068e87150e855224705 Mon Sep 17 00:00:00 2001 1From 7cca9e147d9f4b98ffbc6b10e817d2e8dbd686fb Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 13 Aug 2018 16:40:34 +0100 3Date: Mon, 13 Aug 2018 16:40:34 +0100
4Subject: [PATCH 1005/1012] hotspot: fix -Wreturn-type issues introduced by 4Subject: [PATCH] hotspot: fix -Wreturn-type issues introduced by 8061651
5 8061651
6MIME-Version: 1.0 5MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -19,15 +18,16 @@ Upstream-Status: Backport
19 18
20Signed-off-by: André Draszik <andre.draszik@jci.com> 19Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 20Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
21
22--- 22---
23 src/share/vm/prims/jvm.cpp | 6 +++--- 23 hotspot/src/share/vm/prims/jvm.cpp | 6 +++---
24 1 file changed, 3 insertions(+), 3 deletions(-) 24 1 file changed, 3 insertions(+), 3 deletions(-)
25 25
26diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp 26diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp
27index f43dc5ed7..8d7523c55 100644 27index c32c98ad..6f2221c4 100644
28--- a/hotspot/src/share/vm/prims/jvm.cpp 28--- a/hotspot/src/share/vm/prims/jvm.cpp
29+++ b/hotspot/src/share/vm/prims/jvm.cpp 29+++ b/hotspot/src/share/vm/prims/jvm.cpp
30@@ -908,7 +908,7 @@ JVM_END 30@@ -929,7 +929,7 @@ JVM_END
31 JVM_ENTRY(jboolean, JVM_KnownToNotExist(JNIEnv *env, jobject loader, const char *classname)) 31 JVM_ENTRY(jboolean, JVM_KnownToNotExist(JNIEnv *env, jobject loader, const char *classname))
32 JVMWrapper("JVM_KnownToNotExist"); 32 JVMWrapper("JVM_KnownToNotExist");
33 #if INCLUDE_CDS 33 #if INCLUDE_CDS
@@ -36,7 +36,7 @@ index f43dc5ed7..8d7523c55 100644
36 #else 36 #else
37 return false; 37 return false;
38 #endif 38 #endif
39@@ -918,7 +918,7 @@ JVM_END 39@@ -939,7 +939,7 @@ JVM_END
40 JVM_ENTRY(jobjectArray, JVM_GetResourceLookupCacheURLs(JNIEnv *env, jobject loader)) 40 JVM_ENTRY(jobjectArray, JVM_GetResourceLookupCacheURLs(JNIEnv *env, jobject loader))
41 JVMWrapper("JVM_GetResourceLookupCacheURLs"); 41 JVMWrapper("JVM_GetResourceLookupCacheURLs");
42 #if INCLUDE_CDS 42 #if INCLUDE_CDS
@@ -45,7 +45,7 @@ index f43dc5ed7..8d7523c55 100644
45 #else 45 #else
46 return NULL; 46 return NULL;
47 #endif 47 #endif
48@@ -928,7 +928,7 @@ JVM_END 48@@ -949,7 +949,7 @@ JVM_END
49 JVM_ENTRY(jintArray, JVM_GetResourceLookupCache(JNIEnv *env, jobject loader, const char *resource_name)) 49 JVM_ENTRY(jintArray, JVM_GetResourceLookupCache(JNIEnv *env, jobject loader, const char *resource_name))
50 JVMWrapper("JVM_GetResourceLookupCache"); 50 JVMWrapper("JVM_GetResourceLookupCache");
51 #if INCLUDE_CDS 51 #if INCLUDE_CDS
@@ -54,6 +54,3 @@ index f43dc5ed7..8d7523c55 100644
54 #else 54 #else
55 return NULL; 55 return NULL;
56 #endif 56 #endif
57--
582.24.1
59
diff --git a/recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Zero-build-requires-disabled-warnings.patch b/recipes-core/openjdk/patches-openjdk-8/1005-hotspot-Zero-build-requires-disabled-warnings.patch
index 38067cb..36eefe5 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Zero-build-requires-disabled-warnings.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1005-hotspot-Zero-build-requires-disabled-warnings.patch
@@ -1,7 +1,7 @@
1From 84fc6448f44cd45a5448d0e88df8ccabfa10dcc5 Mon Sep 17 00:00:00 2001 1From 9ae232a21a7c2cec88cdb4ff7e6cf7092f1578ab Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 13 Aug 2018 16:45:24 +0100 3Date: Mon, 13 Aug 2018 16:45:24 +0100
4Subject: [PATCH 1006/1012] hotspot: Zero build requires disabled warnings 4Subject: [PATCH] hotspot: Zero build requires disabled warnings
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -19,15 +19,16 @@ Upstream-Status: Backport
19 19
20Signed-off-by: André Draszik <andre.draszik@jci.com> 20Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 21Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
22
22--- 23---
23 src/cpu/zero/vm/cppInterpreter_zero.cpp | 2 +- 24 hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp | 2 +-
24 src/cpu/zero/vm/interpreterRT_zero.cpp | 4 ++-- 25 hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp | 4 ++--
25 src/os_cpu/linux_zero/vm/os_linux_zero.cpp | 14 ++++++++++++-- 26 hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp | 14 ++++++++++++--
26 src/os_cpu/linux_zero/vm/thread_linux_zero.hpp | 3 ++- 27 .../src/os_cpu/linux_zero/vm/thread_linux_zero.hpp | 3 ++-
27 4 files changed, 17 insertions(+), 6 deletions(-) 28 4 files changed, 17 insertions(+), 6 deletions(-)
28 29
29diff --git a/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp b/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp 30diff --git a/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp b/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
30index 525031eb9..d47422b8c 100644 31index 525031eb..d47422b8 100644
31--- a/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp 32--- a/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
32+++ b/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp 33+++ b/hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
33@@ -100,7 +100,7 @@ intptr_t narrow(BasicType type, intptr_t result) { 34@@ -100,7 +100,7 @@ intptr_t narrow(BasicType type, intptr_t result) {
@@ -40,7 +41,7 @@ index 525031eb9..d47422b8c 100644
40 } 41 }
41 42
42diff --git a/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp b/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp 43diff --git a/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp b/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
43index e23e3eaa9..061ed8ce8 100644 44index e23e3eaa..061ed8ce 100644
44--- a/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp 45--- a/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
45+++ b/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp 46+++ b/hotspot/src/cpu/zero/vm/interpreterRT_zero.cpp
46@@ -1,5 +1,5 @@ 47@@ -1,5 +1,5 @@
@@ -60,7 +61,7 @@ index e23e3eaa9..061ed8ce8 100644
60 case T_VOID: 61 case T_VOID:
61 ftype = &ffi_type_void; 62 ftype = &ffi_type_void;
62diff --git a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 63diff --git a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
63index d22ea1141..cbee43baa 100644 64index d22ea114..cbee43ba 100644
64--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 65--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
65+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 66+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
66@@ -61,6 +61,7 @@ address os::current_stack_pointer() { 67@@ -61,6 +61,7 @@ address os::current_stack_pointer() {
@@ -119,7 +120,7 @@ index d22ea1141..cbee43baa 100644
119 120
120 void os::Linux::set_fpu_control_word(int fpu) { 121 void os::Linux::set_fpu_control_word(int fpu) {
121diff --git a/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp b/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp 122diff --git a/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp b/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
122index 39f77f858..b9c73dc48 100644 123index 94bc83a3..b3ba526f 100644
123--- a/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp 124--- a/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
124+++ b/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp 125+++ b/hotspot/src/os_cpu/linux_zero/vm/thread_linux_zero.hpp
125@@ -1,5 +1,5 @@ 126@@ -1,5 +1,5 @@
@@ -136,7 +137,4 @@ index 39f77f858..b9c73dc48 100644
136+ return false; // silence compile warning 137+ return false; // silence compile warning
137 } 138 }
138 139
139 // These routines are only used on cpu architectures that 140 bool pd_get_top_frame_for_profiling(frame* fr_addr,
140--
1412.24.1
142
diff --git a/recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch b/recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Missing-return-statement-in-__sync_val_compa.patch
index 6692200..2e32702 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1006-hotspot-Missing-return-statement-in-__sync_val_compa.patch
@@ -1,7 +1,7 @@
1From 996a1e3d53773f41e9098117a69a060722972269 Mon Sep 17 00:00:00 2001 1From 1f618dcda554d85d1c1dcd1bfd84d9554cb2f3b8 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 13 Aug 2018 16:46:33 +0100 3Date: Mon, 13 Aug 2018 16:46:33 +0100
4Subject: [PATCH 1007/1012] hotspot: Missing return statement in 4Subject: [PATCH] hotspot: Missing return statement in
5 __sync_val_compare_and_swap_8 5 __sync_val_compare_and_swap_8
6MIME-Version: 1.0 6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 7Content-Type: text/plain; charset=UTF-8
@@ -21,13 +21,14 @@ Upstream-Status: Backport
21 21
22Signed-off-by: André Draszik <andre.draszik@jci.com> 22Signed-off-by: André Draszik <andre.draszik@jci.com>
23Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 23Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
24
24--- 25---
25 src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp | 1 + 26 hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp | 1 +
26 src/os_cpu/linux_zero/vm/os_linux_zero.cpp | 1 + 27 hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp | 1 +
27 2 files changed, 2 insertions(+) 28 2 files changed, 2 insertions(+)
28 29
29diff --git a/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp b/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp 30diff --git a/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp b/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
30index c857b5526..4aaf78b1d 100644 31index c857b552..4aaf78b1 100644
31--- a/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp 32--- a/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
32+++ b/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp 33+++ b/hotspot/src/os_cpu/bsd_zero/vm/os_bsd_zero.cpp
33@@ -457,6 +457,7 @@ extern "C" { 34@@ -457,6 +457,7 @@ extern "C" {
@@ -39,7 +40,7 @@ index c857b5526..4aaf78b1d 100644
39 }; 40 };
40 #endif // !_LP64 41 #endif // !_LP64
41diff --git a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 42diff --git a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
42index cbee43baa..136d4d3de 100644 43index cbee43ba..136d4d3d 100644
43--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 44--- a/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
44+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp 45+++ b/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
45@@ -498,6 +498,7 @@ extern "C" { 46@@ -498,6 +498,7 @@ extern "C" {
@@ -50,6 +51,3 @@ index cbee43baa..136d4d3de 100644
50 } 51 }
51 }; 52 };
52 #endif // !_LP64 53 #endif // !_LP64
53--
542.24.1
55
diff --git a/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-Turn-on-the-Wreturn-type-warning.patch b/recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Turn-on-the-Wreturn-type-warning.patch
index 10dd0f7..b1b59c3 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-Turn-on-the-Wreturn-type-warning.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1007-hotspot-Turn-on-the-Wreturn-type-warning.patch
@@ -1,7 +1,11 @@
1From 2cce90259f9de7b5fba7f3380cdc90b3a586aa75 Mon Sep 17 00:00:00 2001 1From 6758bf27e31110dc5d4c7237476c823ff05454a2 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Mon, 13 Aug 2018 16:48:32 +0100 3Date: Thu, 22 Oct 2020 09:41:07 +0200
4Subject: [PATCH 1008/1012] hotspot: Turn on the -Wreturn-type warning 4Subject: [PATCH] hotspot: Turn on the -Wreturn-type warning
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
5MIME-Version: 1.0 9MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 10Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 11Content-Transfer-Encoding: 8bit
@@ -19,24 +23,25 @@ Upstream-Status: Backport
19 23
20Signed-off-by: André Draszik <andre.draszik@jci.com> 24Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 25Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
26
22--- 27---
23 make/linux/makefiles/gcc.make | 2 +- 28 hotspot/make/linux/makefiles/gcc.make | 2 +-
24 src/cpu/x86/vm/x86_32.ad | 1 + 29 hotspot/src/cpu/x86/vm/x86_32.ad | 1 +
25 src/os_cpu/linux_x86/vm/os_linux_x86.cpp | 1 + 30 hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp | 1 +
26 src/share/vm/classfile/defaultMethods.cpp | 4 ++-- 31 hotspot/src/share/vm/classfile/defaultMethods.cpp | 4 ++--
27 src/share/vm/classfile/symbolTable.cpp | 4 ++-- 32 hotspot/src/share/vm/classfile/symbolTable.cpp | 4 ++--
28 src/share/vm/classfile/systemDictionary.cpp | 6 +++--- 33 hotspot/src/share/vm/classfile/systemDictionary.cpp | 6 +++---
29 src/share/vm/memory/heapInspection.hpp | 2 +- 34 hotspot/src/share/vm/memory/heapInspection.hpp | 2 +-
30 src/share/vm/memory/metaspaceShared.hpp | 2 +- 35 hotspot/src/share/vm/memory/metaspaceShared.hpp | 2 +-
31 src/share/vm/oops/constantPool.hpp | 2 +- 36 hotspot/src/share/vm/oops/constantPool.hpp | 2 +-
32 src/share/vm/prims/jvm.cpp | 2 +- 37 hotspot/src/share/vm/prims/jvm.cpp | 2 +-
33 src/share/vm/runtime/reflection.cpp | 2 +- 38 hotspot/src/share/vm/runtime/reflection.cpp | 2 +-
34 src/share/vm/runtime/sharedRuntime.cpp | 2 +- 39 hotspot/src/share/vm/runtime/sharedRuntime.cpp | 2 +-
35 src/share/vm/services/memTracker.hpp | 2 +- 40 hotspot/src/share/vm/services/memTracker.hpp | 2 +-
36 13 files changed, 17 insertions(+), 15 deletions(-) 41 13 files changed, 17 insertions(+), 15 deletions(-)
37 42
38diff --git a/hotspot/make/linux/makefiles/gcc.make b/hotspot/make/linux/makefiles/gcc.make 43diff --git a/hotspot/make/linux/makefiles/gcc.make b/hotspot/make/linux/makefiles/gcc.make
39index 36b3c8ba9..cd9511e50 100644 44index 36b3c8ba..cd9511e5 100644
40--- a/hotspot/make/linux/makefiles/gcc.make 45--- a/hotspot/make/linux/makefiles/gcc.make
41+++ b/hotspot/make/linux/makefiles/gcc.make 46+++ b/hotspot/make/linux/makefiles/gcc.make
42@@ -211,7 +211,7 @@ ifeq ($(USE_CLANG), true) 47@@ -211,7 +211,7 @@ ifeq ($(USE_CLANG), true)
@@ -49,7 +54,7 @@ index 36b3c8ba9..cd9511e50 100644
49 ifeq ($(USE_CLANG),) 54 ifeq ($(USE_CLANG),)
50 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit 55 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
51diff --git a/hotspot/src/cpu/x86/vm/x86_32.ad b/hotspot/src/cpu/x86/vm/x86_32.ad 56diff --git a/hotspot/src/cpu/x86/vm/x86_32.ad b/hotspot/src/cpu/x86/vm/x86_32.ad
52index f42d1a288..c8f4ee161 100644 57index f42d1a28..c8f4ee16 100644
53--- a/hotspot/src/cpu/x86/vm/x86_32.ad 58--- a/hotspot/src/cpu/x86/vm/x86_32.ad
54+++ b/hotspot/src/cpu/x86/vm/x86_32.ad 59+++ b/hotspot/src/cpu/x86/vm/x86_32.ad
55@@ -1250,6 +1250,7 @@ uint MachSpillCopyNode::implementation( CodeBuffer *cbuf, PhaseRegAlloc *ra_, bo 60@@ -1250,6 +1250,7 @@ uint MachSpillCopyNode::implementation( CodeBuffer *cbuf, PhaseRegAlloc *ra_, bo
@@ -61,7 +66,7 @@ index f42d1a288..c8f4ee161 100644
61 66
62 #ifndef PRODUCT 67 #ifndef PRODUCT
63diff --git a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 68diff --git a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
64index 1a7375afc..fbf51b040 100644 69index c35d8677..65c3165c 100644
65--- a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 70--- a/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
66+++ b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp 71+++ b/hotspot/src/os_cpu/linux_x86/vm/os_linux_x86.cpp
67@@ -541,6 +541,7 @@ JVM_handle_linux_signal(int sig, 72@@ -541,6 +541,7 @@ JVM_handle_linux_signal(int sig,
@@ -73,7 +78,7 @@ index 1a7375afc..fbf51b040 100644
73 78
74 void os::Linux::init_thread_fpu_state(void) { 79 void os::Linux::init_thread_fpu_state(void) {
75diff --git a/hotspot/src/share/vm/classfile/defaultMethods.cpp b/hotspot/src/share/vm/classfile/defaultMethods.cpp 80diff --git a/hotspot/src/share/vm/classfile/defaultMethods.cpp b/hotspot/src/share/vm/classfile/defaultMethods.cpp
76index 4b4b4e250..196622aed 100644 81index 4b4b4e25..196622ae 100644
77--- a/hotspot/src/share/vm/classfile/defaultMethods.cpp 82--- a/hotspot/src/share/vm/classfile/defaultMethods.cpp
78+++ b/hotspot/src/share/vm/classfile/defaultMethods.cpp 83+++ b/hotspot/src/share/vm/classfile/defaultMethods.cpp
79@@ -506,7 +506,7 @@ Symbol* MethodFamily::generate_method_message(Symbol *klass_name, Method* method 84@@ -506,7 +506,7 @@ Symbol* MethodFamily::generate_method_message(Symbol *klass_name, Method* method
@@ -95,7 +100,7 @@ index 4b4b4e250..196622aed 100644
95 100
96 101
97diff --git a/hotspot/src/share/vm/classfile/symbolTable.cpp b/hotspot/src/share/vm/classfile/symbolTable.cpp 102diff --git a/hotspot/src/share/vm/classfile/symbolTable.cpp b/hotspot/src/share/vm/classfile/symbolTable.cpp
98index ec97077b7..2621a7d62 100644 103index 83369cbc..8dd4e6b2 100644
99--- a/hotspot/src/share/vm/classfile/symbolTable.cpp 104--- a/hotspot/src/share/vm/classfile/symbolTable.cpp
100+++ b/hotspot/src/share/vm/classfile/symbolTable.cpp 105+++ b/hotspot/src/share/vm/classfile/symbolTable.cpp
101@@ -249,7 +249,7 @@ Symbol* SymbolTable::lookup(const char* name, int len, TRAPS) { 106@@ -249,7 +249,7 @@ Symbol* SymbolTable::lookup(const char* name, int len, TRAPS) {
@@ -117,10 +122,10 @@ index ec97077b7..2621a7d62 100644
117 122
118 Symbol* SymbolTable::lookup_only(const char* name, int len, 123 Symbol* SymbolTable::lookup_only(const char* name, int len,
119diff --git a/hotspot/src/share/vm/classfile/systemDictionary.cpp b/hotspot/src/share/vm/classfile/systemDictionary.cpp 124diff --git a/hotspot/src/share/vm/classfile/systemDictionary.cpp b/hotspot/src/share/vm/classfile/systemDictionary.cpp
120index da2717d36..5253afc22 100644 125index 4541e815..98412e1e 100644
121--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp 126--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp
122+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp 127+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp
123@@ -229,15 +229,15 @@ Klass* SystemDictionary::resolve_or_null(Symbol* class_name, Handle class_loader 128@@ -236,15 +236,15 @@ Klass* SystemDictionary::resolve_or_null(Symbol* class_name, Handle class_loader
124 class_name->as_C_string(), 129 class_name->as_C_string(),
125 class_loader.is_null() ? "null" : class_loader->klass()->name()->as_C_string())); 130 class_loader.is_null() ? "null" : class_loader->klass()->name()->as_C_string()));
126 if (FieldType::is_array(class_name)) { 131 if (FieldType::is_array(class_name)) {
@@ -140,7 +145,7 @@ index da2717d36..5253afc22 100644
140 } 145 }
141 146
142diff --git a/hotspot/src/share/vm/memory/heapInspection.hpp b/hotspot/src/share/vm/memory/heapInspection.hpp 147diff --git a/hotspot/src/share/vm/memory/heapInspection.hpp b/hotspot/src/share/vm/memory/heapInspection.hpp
143index 09ee6602e..c5fec15c3 100644 148index 09ee6602..c5fec15c 100644
144--- a/hotspot/src/share/vm/memory/heapInspection.hpp 149--- a/hotspot/src/share/vm/memory/heapInspection.hpp
145+++ b/hotspot/src/share/vm/memory/heapInspection.hpp 150+++ b/hotspot/src/share/vm/memory/heapInspection.hpp
146@@ -367,7 +367,7 @@ class HeapInspection : public StackObj { 151@@ -367,7 +367,7 @@ class HeapInspection : public StackObj {
@@ -153,7 +158,7 @@ index 09ee6602e..c5fec15c3 100644
153 private: 158 private:
154 void iterate_over_heap(KlassInfoTable* cit, BoolObjectClosure* filter = NULL); 159 void iterate_over_heap(KlassInfoTable* cit, BoolObjectClosure* filter = NULL);
155diff --git a/hotspot/src/share/vm/memory/metaspaceShared.hpp b/hotspot/src/share/vm/memory/metaspaceShared.hpp 160diff --git a/hotspot/src/share/vm/memory/metaspaceShared.hpp b/hotspot/src/share/vm/memory/metaspaceShared.hpp
156index 2f3abae6a..d58ebecb2 100644 161index 2f3abae6..d58ebecb 100644
157--- a/hotspot/src/share/vm/memory/metaspaceShared.hpp 162--- a/hotspot/src/share/vm/memory/metaspaceShared.hpp
158+++ b/hotspot/src/share/vm/memory/metaspaceShared.hpp 163+++ b/hotspot/src/share/vm/memory/metaspaceShared.hpp
159@@ -93,7 +93,7 @@ class MetaspaceShared : AllStatic { 164@@ -93,7 +93,7 @@ class MetaspaceShared : AllStatic {
@@ -166,7 +171,7 @@ index 2f3abae6a..d58ebecb2 100644
166 static ReservedSpace* shared_rs() { 171 static ReservedSpace* shared_rs() {
167 CDS_ONLY(return _shared_rs); 172 CDS_ONLY(return _shared_rs);
168diff --git a/hotspot/src/share/vm/oops/constantPool.hpp b/hotspot/src/share/vm/oops/constantPool.hpp 173diff --git a/hotspot/src/share/vm/oops/constantPool.hpp b/hotspot/src/share/vm/oops/constantPool.hpp
169index 0698eb40e..354293924 100644 174index 68435471..fad4a92c 100644
170--- a/hotspot/src/share/vm/oops/constantPool.hpp 175--- a/hotspot/src/share/vm/oops/constantPool.hpp
171+++ b/hotspot/src/share/vm/oops/constantPool.hpp 176+++ b/hotspot/src/share/vm/oops/constantPool.hpp
172@@ -350,7 +350,7 @@ class ConstantPool : public Metadata { 177@@ -350,7 +350,7 @@ class ConstantPool : public Metadata {
@@ -177,12 +182,12 @@ index 0698eb40e..354293924 100644
177+ return klass_at_impl(h_this, which, THREAD); 182+ return klass_at_impl(h_this, which, THREAD);
178 } 183 }
179 184
180 Symbol* klass_name_at(int which); // Returns the name, w/o resolving. 185 Symbol* klass_name_at(int which) const; // Returns the name, w/o resolving.
181diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp 186diff --git a/hotspot/src/share/vm/prims/jvm.cpp b/hotspot/src/share/vm/prims/jvm.cpp
182index 8d7523c55..4034a8589 100644 187index 6f2221c4..daa69f89 100644
183--- a/hotspot/src/share/vm/prims/jvm.cpp 188--- a/hotspot/src/share/vm/prims/jvm.cpp
184+++ b/hotspot/src/share/vm/prims/jvm.cpp 189+++ b/hotspot/src/share/vm/prims/jvm.cpp
185@@ -4343,7 +4343,7 @@ JVM_ENTRY(jlong,JVM_DTraceActivate( 190@@ -4368,7 +4368,7 @@ JVM_ENTRY(jlong,JVM_DTraceActivate(
186 JVM_DTraceProvider* providers)) 191 JVM_DTraceProvider* providers))
187 JVMWrapper("JVM_DTraceActivate"); 192 JVMWrapper("JVM_DTraceActivate");
188 return DTraceJSDT::activate( 193 return DTraceJSDT::activate(
@@ -192,7 +197,7 @@ index 8d7523c55..4034a8589 100644
192 197
193 JVM_ENTRY(jboolean,JVM_DTraceIsProbeEnabled(JNIEnv* env, jmethodID method)) 198 JVM_ENTRY(jboolean,JVM_DTraceIsProbeEnabled(JNIEnv* env, jmethodID method))
194diff --git a/hotspot/src/share/vm/runtime/reflection.cpp b/hotspot/src/share/vm/runtime/reflection.cpp 199diff --git a/hotspot/src/share/vm/runtime/reflection.cpp b/hotspot/src/share/vm/runtime/reflection.cpp
195index 4b39d8ccb..9cd7b0dcb 100644 200index 4b39d8cc..9cd7b0dc 100644
196--- a/hotspot/src/share/vm/runtime/reflection.cpp 201--- a/hotspot/src/share/vm/runtime/reflection.cpp
197+++ b/hotspot/src/share/vm/runtime/reflection.cpp 202+++ b/hotspot/src/share/vm/runtime/reflection.cpp
198@@ -1093,7 +1093,7 @@ oop Reflection::invoke(instanceKlassHandle klass, methodHandle reflected_method, 203@@ -1093,7 +1093,7 @@ oop Reflection::invoke(instanceKlassHandle klass, methodHandle reflected_method,
@@ -205,7 +210,7 @@ index 4b39d8ccb..9cd7b0dcb 100644
205 } 210 }
206 211
207diff --git a/hotspot/src/share/vm/runtime/sharedRuntime.cpp b/hotspot/src/share/vm/runtime/sharedRuntime.cpp 212diff --git a/hotspot/src/share/vm/runtime/sharedRuntime.cpp b/hotspot/src/share/vm/runtime/sharedRuntime.cpp
208index d5bea29c3..50578ad63 100644 213index d5bea29c..50578ad6 100644
209--- a/hotspot/src/share/vm/runtime/sharedRuntime.cpp 214--- a/hotspot/src/share/vm/runtime/sharedRuntime.cpp
210+++ b/hotspot/src/share/vm/runtime/sharedRuntime.cpp 215+++ b/hotspot/src/share/vm/runtime/sharedRuntime.cpp
211@@ -1041,7 +1041,7 @@ Handle SharedRuntime::find_callee_info(JavaThread* thread, Bytecodes::Code& bc, 216@@ -1041,7 +1041,7 @@ Handle SharedRuntime::find_callee_info(JavaThread* thread, Bytecodes::Code& bc,
@@ -218,7 +223,7 @@ index d5bea29c3..50578ad63 100644
218 223
219 224
220diff --git a/hotspot/src/share/vm/services/memTracker.hpp b/hotspot/src/share/vm/services/memTracker.hpp 225diff --git a/hotspot/src/share/vm/services/memTracker.hpp b/hotspot/src/share/vm/services/memTracker.hpp
221index 7ad2b71f4..182084373 100644 226index 8ea859dd..535147f8 100644
222--- a/hotspot/src/share/vm/services/memTracker.hpp 227--- a/hotspot/src/share/vm/services/memTracker.hpp
223+++ b/hotspot/src/share/vm/services/memTracker.hpp 228+++ b/hotspot/src/share/vm/services/memTracker.hpp
224@@ -64,7 +64,7 @@ class MemTracker : AllStatic { 229@@ -64,7 +64,7 @@ class MemTracker : AllStatic {
@@ -230,6 +235,3 @@ index 7ad2b71f4..182084373 100644
230 static inline void record_virtual_memory_type(void* addr, MEMFLAGS flag) { } 235 static inline void record_virtual_memory_type(void* addr, MEMFLAGS flag) { }
231 static inline void record_thread_stack(void* addr, size_t size) { } 236 static inline void record_thread_stack(void* addr, size_t size) { }
232 static inline void release_thread_stack(void* addr, size_t size) { } 237 static inline void release_thread_stack(void* addr, size_t size) { }
233--
2342.24.1
235
diff --git a/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-handle-format-error-for-GCC-7.patch b/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch
index ee950cd..e077c53 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-handle-format-error-for-GCC-7.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1008-hotspot-handle-format-error-for-GCC-7.patch
@@ -1,21 +1,22 @@
1From d085dcce6f8700fd8ddda475357496ea6da323dc Mon Sep 17 00:00:00 2001 1From bb394ba055197ef7c7e27b436dd92f5a86305019 Mon Sep 17 00:00:00 2001
2From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com> 2From: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
3Date: Fri, 21 Sep 2018 10:44:06 +0200 3Date: Fri, 21 Sep 2018 10:44:06 +0200
4Subject: [PATCH 1009/1012] hotspot: handle format error for GCC >= 7 4Subject: [PATCH] hotspot: handle format error for GCC >= 7
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7 7
8Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com> 8Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner@skidata.com>
9Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 9Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
10
10--- 11---
11 src/share/vm/adlc/output_c.cpp | 6 ++++-- 12 hotspot/src/share/vm/adlc/output_c.cpp | 6 ++++--
12 1 file changed, 4 insertions(+), 2 deletions(-) 13 1 file changed, 4 insertions(+), 2 deletions(-)
13 14
14diff --git a/hotspot/src/share/vm/adlc/output_c.cpp b/hotspot/src/share/vm/adlc/output_c.cpp 15diff --git a/hotspot/src/share/vm/adlc/output_c.cpp b/hotspot/src/share/vm/adlc/output_c.cpp
15index b3766636d..eba08d2f0 100644 16index 19916904..889b785c 100644
16--- a/hotspot/src/share/vm/adlc/output_c.cpp 17--- a/hotspot/src/share/vm/adlc/output_c.cpp
17+++ b/hotspot/src/share/vm/adlc/output_c.cpp 18+++ b/hotspot/src/share/vm/adlc/output_c.cpp
18@@ -436,9 +436,11 @@ static int pipeline_res_mask_initializer( 19@@ -419,9 +419,11 @@ static int pipeline_res_mask_initializer(
19 for (i = maxcycleused; i > 0; i /= 10) 20 for (i = maxcycleused; i > 0; i /= 10)
20 cycledigit++; 21 cycledigit++;
21 22
@@ -29,6 +30,3 @@ index b3766636d..eba08d2f0 100644
29 30
30 static const char* pipeline_use_cycle_mask = "Pipeline_Use_Cycle_Mask"; 31 static const char* pipeline_use_cycle_mask = "Pipeline_Use_Cycle_Mask";
31 static const char* pipeline_use_element = "Pipeline_Use_Element"; 32 static const char* pipeline_use_element = "Pipeline_Use_Element";
32--
332.24.1
34
diff --git a/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch b/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-fix-adlc-flags.patch
index 03f8660..a68e3a0 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-adlc-flags.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1009-hotspot-fix-adlc-flags.patch
@@ -1,7 +1,7 @@
1From 89408e465d92657de8c54d4622f1810c28c3d700 Mon Sep 17 00:00:00 2001 1From 486b1c46d80de99e0820cc6305477ab40ba4e13c Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com> 2From: =?UTF-8?q?Erkka=20K=C3=A4=C3=A4ri=C3=A4?= <erkka.kaaria@intel.com>
3Date: Thu, 2 Jan 2020 10:19:29 +0100 3Date: Thu, 2 Jan 2020 10:19:29 +0100
4Subject: [PATCH 1010/1012] hotspot: fix adlc flags 4Subject: [PATCH 1009/1013] hotspot: fix adlc flags
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -39,5 +39,5 @@ index 92b8b9b39..ae0aa0082 100644
39 39
40 # OUTDIR must be the same as AD_Dir = $(GENERATED)/adfiles in top.make: 40 # OUTDIR must be the same as AD_Dir = $(GENERATED)/adfiles in top.make:
41-- 41--
422.24.1 422.26.2
43 43
diff --git a/recipes-core/openjdk/patches-openjdk-8/1011-hotspot-fix-shark-build-common.patch b/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-shark-build-common.patch
index 8fe5489..711d17b 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1011-hotspot-fix-shark-build-common.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1010-hotspot-fix-shark-build-common.patch
@@ -1,7 +1,7 @@
1From 1015cc718ba25cabf613b96fd58baa8dfb8492fe Mon Sep 17 00:00:00 2001 1From 3028795037c3440415f3e8904e8015fbd480ab15 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 10:22:19 +0100 3Date: Thu, 2 Jan 2020 10:22:19 +0100
4Subject: [PATCH 1011/1012] hotspot: fix shark build (common) 4Subject: [PATCH 1010/1013] hotspot: fix shark build (common)
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7--- 7---
@@ -22,10 +22,10 @@ Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
22 14 files changed, 123 insertions(+), 12 deletions(-) 22 14 files changed, 123 insertions(+), 12 deletions(-)
23 23
24diff --git a/hotspot/make/Makefile b/hotspot/make/Makefile 24diff --git a/hotspot/make/Makefile b/hotspot/make/Makefile
25index 5765f1e36..f8ff9ecd9 100644 25index de2607c71..3054c3fe8 100644
26--- a/hotspot/make/Makefile 26--- a/hotspot/make/Makefile
27+++ b/hotspot/make/Makefile 27+++ b/hotspot/make/Makefile
28@@ -525,7 +525,7 @@ $(EXPORT_INCLUDE_DIR)/%: $(SHARK_BUILD_DIR)/../generated/jvmtifiles/% 28@@ -536,7 +536,7 @@ $(EXPORT_INCLUDE_DIR)/%: $(SHARK_BUILD_DIR)/../generated/jvmtifiles/%
29 # Unix 29 # Unix
30 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_BUILD_DIR)/%.$(LIBRARY_SUFFIX) 30 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_BUILD_DIR)/%.$(LIBRARY_SUFFIX)
31 $(install-file) 31 $(install-file)
@@ -79,10 +79,10 @@ index 4707cc96e..a2b297ca0 100644
79 flow_block(blk, temp_vector, temp_set); 79 flow_block(blk, temp_vector, temp_set);
80 if (failing()) return; // Watch for bailouts. 80 if (failing()) return; // Watch for bailouts.
81diff --git a/hotspot/src/share/vm/classfile/systemDictionary.cpp b/hotspot/src/share/vm/classfile/systemDictionary.cpp 81diff --git a/hotspot/src/share/vm/classfile/systemDictionary.cpp b/hotspot/src/share/vm/classfile/systemDictionary.cpp
82index 5253afc22..ecb30cdef 100644 82index df4d56f6f..b1dd335cb 100644
83--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp 83--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp
84+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp 84+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp
85@@ -2300,6 +2300,7 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid 85@@ -2371,6 +2371,7 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid
86 spe = NULL; 86 spe = NULL;
87 // Must create lots of stuff here, but outside of the SystemDictionary lock. 87 // Must create lots of stuff here, but outside of the SystemDictionary lock.
88 m = Method::make_method_handle_intrinsic(iid, signature, CHECK_(empty)); 88 m = Method::make_method_handle_intrinsic(iid, signature, CHECK_(empty));
@@ -90,7 +90,7 @@ index 5253afc22..ecb30cdef 100644
90 if (!Arguments::is_interpreter_only()) { 90 if (!Arguments::is_interpreter_only()) {
91 // Generate a compiled form of the MH intrinsic. 91 // Generate a compiled form of the MH intrinsic.
92 AdapterHandlerLibrary::create_native_wrapper(m); 92 AdapterHandlerLibrary::create_native_wrapper(m);
93@@ -2309,6 +2310,7 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid 93@@ -2380,6 +2381,7 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid
94 "out of space in CodeCache for method handle intrinsic", empty); 94 "out of space in CodeCache for method handle intrinsic", empty);
95 } 95 }
96 } 96 }
@@ -98,7 +98,7 @@ index 5253afc22..ecb30cdef 100644
98 // Now grab the lock. We might have to throw away the new method, 98 // Now grab the lock. We might have to throw away the new method,
99 // if a racing thread has managed to install one at the same time. 99 // if a racing thread has managed to install one at the same time.
100 { 100 {
101@@ -2322,9 +2324,11 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid 101@@ -2393,9 +2395,11 @@ methodHandle SystemDictionary::find_method_handle_intrinsic(vmIntrinsics::ID iid
102 } 102 }
103 103
104 assert(spe != NULL && spe->method() != NULL, ""); 104 assert(spe != NULL && spe->method() != NULL, "");
@@ -444,5 +444,5 @@ index 243183c07..601ca7925 100644
444 builder()->CreateICmpEQ(lock, check), 444 builder()->CreateICmpEQ(lock, check),
445 released_fast, slow_path); 445 released_fast, slow_path);
446-- 446--
4472.24.1 4472.26.2
448 448
diff --git a/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-restrict-to-staging-dir.patch b/recipes-core/openjdk/patches-openjdk-8/1011-hotspot-restrict-to-staging-dir.patch
index b61f664..b5b9471 100644
--- a/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-restrict-to-staging-dir.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1011-hotspot-restrict-to-staging-dir.patch
@@ -1,7 +1,7 @@
1From e4c080e29afa3f93383c1e046273cd20ec835ca3 Mon Sep 17 00:00:00 2001 1From 364b8a715b96f069bf455894b0ae290c52d3ab19 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 10:23:38 +0100 3Date: Thu, 2 Jan 2020 10:23:38 +0100
4Subject: [PATCH 1012/1012] hotspot: restrict to staging dir 4Subject: [PATCH 1011/1013] hotspot: restrict to staging dir
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7--- 7---
@@ -22,5 +22,5 @@ index 386e94b1f..7642a67f8 100644
22 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE)) 22 DTRACE_ENABLED = $(shell test -f $(SDT_H_FILE) && echo $(SDT_H_FILE))
23 REASON = "$(SDT_H_FILE) not found" 23 REASON = "$(SDT_H_FILE) not found"
24-- 24--
252.24.1 252.26.2
26 26
diff --git a/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-enable-Wno-error.patch b/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-enable-Wno-error.patch
new file mode 100644
index 0000000..1ad8351
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/1012-hotspot-enable-Wno-error.patch
@@ -0,0 +1,31 @@
1From 2303926f157f8c90cef167c43bd530793c19e480 Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Thu, 20 Aug 2020 09:39:23 +0200
4Subject: [PATCH] hotspot: enable -Wno-error
5
6As we don't want to deal with compiler warnings in OpenEmbedded disable
7them for now.
8
9Upstream-Status: Pending
10
11Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
12
13---
14 hotspot/make/linux/makefiles/gcc.make | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/hotspot/make/linux/makefiles/gcc.make b/hotspot/make/linux/makefiles/gcc.make
18index cd9511e5..94412c8f 100644
19--- a/hotspot/make/linux/makefiles/gcc.make
20+++ b/hotspot/make/linux/makefiles/gcc.make
21@@ -200,8 +200,8 @@ else
22 CFLAGS += -pipe
23 endif
24
25-# Compiler warnings are treated as errors
26-WARNINGS_ARE_ERRORS = -Werror
27+# Compiler warnings are not treated as errors
28+WARNINGS_ARE_ERRORS = -Wno-error
29
30 ifeq ($(USE_CLANG), true)
31 # However we need to clean the code up before we can unrestrictedly enable this option with Clang
diff --git a/recipes-core/openjdk/patches-openjdk-8/1013-hotspot-add-missing-includes-for-shark-build-pt2.patch b/recipes-core/openjdk/patches-openjdk-8/1013-hotspot-add-missing-includes-for-shark-build-pt2.patch
new file mode 100644
index 0000000..a2e4726
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/1013-hotspot-add-missing-includes-for-shark-build-pt2.patch
@@ -0,0 +1,32 @@
1From d497bc0b36be083400d2802019ffdf49f5d5ca94 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Thu, 20 Aug 2020 10:10:55 +0200
4Subject: [PATCH 1013/1013] hotspot: add missing includes for shark build (pt2)
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Pending
10
11Signed-off-by: André Draszik <andre.draszik@jci.com>
12Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
13---
14 src/cpu/zero/vm/entry_zero.hpp | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/hotspot/src/cpu/zero/vm/entry_zero.hpp b/hotspot/src/cpu/zero/vm/entry_zero.hpp
18index 73987f061..c5f50672b 100644
19--- a/hotspot/src/cpu/zero/vm/entry_zero.hpp
20+++ b/hotspot/src/cpu/zero/vm/entry_zero.hpp
21@@ -26,6 +26,8 @@
22 #ifndef CPU_ZERO_VM_ENTRY_ZERO_HPP
23 #define CPU_ZERO_VM_ENTRY_ZERO_HPP
24
25+#include "utilities/globalDefinitions.hpp"
26+#include "utilities/exceptions.hpp"
27 #include "interpreter/cppInterpreter.hpp"
28
29 class ZeroEntry {
30--
312.26.2
32
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-missing-return-values.patch b/recipes-core/openjdk/patches-openjdk-8/1201-hotspot-aarch32-fix-missing-return-values.patch
index bedc448..d4294d2 100644
--- a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-missing-return-values.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1201-hotspot-aarch32-fix-missing-return-values.patch
@@ -1,19 +1,21 @@
1From 658adc5b6567e9a6df56beabb8d226a9b4d8e762 Mon Sep 17 00:00:00 2001 1From f4d687a4d6ddb08cae3bcce46257ea57544294c0 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Thu, 16 Aug 2018 02:27:44 +0100 3Date: Thu, 16 Aug 2018 02:27:44 +0100
4Subject: [PATCH] hotspot/aarch32: fix missing return values 4Subject: [PATCH 1201/1202] hotspot/aarch32: fix missing return values
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
8 8
9Upstream-Status: Pending
9Signed-off-by: André Draszik <andre.draszik@jci.com> 10Signed-off-by: André Draszik <andre.draszik@jci.com>
11Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
10--- 12---
11 hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp | 3 +++ 13 src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp | 3 +++
12 hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp | 1 + 14 src/cpu/aarch32/vm/relocInfo_aarch32.cpp | 1 +
13 2 files changed, 4 insertions(+) 15 2 files changed, 4 insertions(+)
14 16
15diff --git a/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp b/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp 17diff --git a/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp b/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp
16index cd291bf2..4ba98c68 100644 18index 8aae15af2..76b6f1fe9 100644
17--- a/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp 19--- a/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp
18+++ b/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp 20+++ b/hotspot/src/cpu/aarch32/vm/c1_LIRAssembler_aarch32.cpp
19@@ -158,16 +158,19 @@ static Register as_reg(LIR_Opr op) { 21@@ -158,16 +158,19 @@ static Register as_reg(LIR_Opr op) {
@@ -37,7 +39,7 @@ index cd291bf2..4ba98c68 100644
37 39
38 Address LIR_Assembler::as_Address(LIR_Address* addr, Register tmp, Address::InsnDataType type) { 40 Address LIR_Assembler::as_Address(LIR_Address* addr, Register tmp, Address::InsnDataType type) {
39diff --git a/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp b/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp 41diff --git a/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp b/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp
40index 979d53c9..c0b1a4c7 100644 42index 979d53c98..c0b1a4c7a 100644
41--- a/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp 43--- a/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp
42+++ b/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp 44+++ b/hotspot/src/cpu/aarch32/vm/relocInfo_aarch32.cpp
43@@ -87,6 +87,7 @@ address Relocation::pd_call_destination(address orig_addr) { 45@@ -87,6 +87,7 @@ address Relocation::pd_call_destination(address orig_addr) {
@@ -49,5 +51,5 @@ index 979d53c9..c0b1a4c7 100644
49 51
50 void Relocation::pd_set_call_destination(address x) { 52 void Relocation::pd_set_call_destination(address x) {
51-- 53--
522.18.0 542.26.2
53 55
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-remaining-musl-fixes.patch b/recipes-core/openjdk/patches-openjdk-8/1202-hotspot-aarch32-remaining-musl-fixes.patch
index 1140887..12137c1 100644
--- a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-remaining-musl-fixes.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1202-hotspot-aarch32-remaining-musl-fixes.patch
@@ -1,7 +1,7 @@
1From 4bab4a4468a59e303e8d05a409a07a24c2342452 Mon Sep 17 00:00:00 2001 1From 4726119a39e937ab1a70335a6bc89645742d44fd Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 20 Aug 2018 12:38:38 +0100 3Date: Mon, 20 Aug 2018 12:38:38 +0100
4Subject: [PATCH] hotspot: remaining musl fixes (aarch32) 4Subject: [PATCH 1202/1202] hotspot/aarch32: remaining musl fixes
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -14,12 +14,13 @@ Content-Transfer-Encoding: 8bit
14 14
15Upstream-Status: Inappropriate [OE specific] 15Upstream-Status: Inappropriate [OE specific]
16Signed-off-by: André Draszik <andre.draszik@jci.com> 16Signed-off-by: André Draszik <andre.draszik@jci.com>
17Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
17--- 18---
18 hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp | 1 - 19 src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp | 1 -
19 1 file changed, 1 deletion(-) 20 1 file changed, 1 deletion(-)
20 21
21diff --git a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp 22diff --git a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp
22index 052a423c..93a315e4 100644 23index 2883fc17f..162504301 100644
23--- a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp 24--- a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp
24+++ b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp 25+++ b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp
25@@ -75,7 +75,6 @@ 26@@ -75,7 +75,6 @@
@@ -31,5 +32,5 @@ index 052a423c..93a315e4 100644
31 #define REG_FP 29 32 #define REG_FP 29
32 #define SPELL_REG_SP "sp" 33 #define SPELL_REG_SP "sp"
33-- 34--
342.11.0 352.26.2
35 36
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-Fix-further-functions-with-a-missing.patch b/recipes-core/openjdk/patches-openjdk-8/1401-hotspot-aarch64-Add-missing-return-value-to-LIR_Asse.patch
index 0216c68..e4aa48f 100644
--- a/recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-Fix-further-functions-with-a-missing.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1401-hotspot-aarch64-Add-missing-return-value-to-LIR_Asse.patch
@@ -1,8 +1,8 @@
1From 3dffe06da016a959f1d8c3afc292ab92a9d4d137 Mon Sep 17 00:00:00 2001 1From 2e611155c42352c1a0c15078681c6712711f6c01 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Mon, 13 Aug 2018 17:03:56 +0100 3Date: Mon, 13 Aug 2018 17:03:56 +0100
4Subject: [PATCH] hotspot/aarch64: Fix further functions with a missing return 4Subject: [PATCH 1401/1402] hotspot/aarch64: Add missing return value to
5 value. 5 LIR_Assembler::as_Address
6MIME-Version: 1.0 6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8 7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit 8Content-Transfer-Encoding: 8bit
@@ -15,17 +15,19 @@ Content-Transfer-Encoding: 8bit
15|# Parent 3ade0115344b77e6d00462044e0cf68722685bfe 15|# Parent 3ade0115344b77e6d00462044e0cf68722685bfe
16PR3519: Fix further functions with a missing return value. 16PR3519: Fix further functions with a missing return value.
17 17
18Signed-off-by: André Draszik <andre.draszik@jci.com>
19Upstream-Status: Backport 18Upstream-Status: Backport
19
20Signed-off-by: André Draszik <andre.draszik@jci.com>
21Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
20--- 22---
21 hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp | 1 + 23 src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp | 1 +
22 1 file changed, 1 insertion(+) 24 1 file changed, 1 insertion(+)
23 25
24diff --git a/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp b/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp 26diff --git a/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp b/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp
25index 4e98cb39..bbc81b4a 100644 27index 7b85119c3..074e71a7d 100644
26--- a/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp 28--- a/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp
27+++ b/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp 29+++ b/hotspot/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp
28@@ -205,6 +205,7 @@ Address LIR_Assembler::as_Address(LIR_Address* addr, Register tmp) { 30@@ -207,6 +207,7 @@ Address LIR_Assembler::as_Address(LIR_Address* addr, Register tmp) {
29 return Address(base, tmp, Address::lsl(addr->scale())); 31 return Address(base, tmp, Address::lsl(addr->scale()));
30 } 32 }
31 } 33 }
@@ -34,5 +36,5 @@ index 4e98cb39..bbc81b4a 100644
34 36
35 Address LIR_Assembler::as_Address_hi(LIR_Address* addr) { 37 Address LIR_Assembler::as_Address_hi(LIR_Address* addr) {
36-- 38--
372.18.0 392.26.2
38 40
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-remaining-musl-fixes.patch b/recipes-core/openjdk/patches-openjdk-8/1402-hotspot-aarch64-remaining-musl-fixes.patch
index 436f012..2aafd82 100644
--- a/recipes-core/openjdk/patches-openjdk-8/aarch64-hotspot-remaining-musl-fixes.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/1402-hotspot-aarch64-remaining-musl-fixes.patch
@@ -1,7 +1,7 @@
1From 8e8e79c136fe56db119fd9a76fb881e96727c840 Mon Sep 17 00:00:00 2001 1From 033183cd3598ff8ba4a40ef529dfad89c6226ca6 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 15:33:17 +0000 3Date: Tue, 27 Feb 2018 15:33:17 +0000
4Subject: [PATCH] hotspot: remaining musl fixes (aarch64) 4Subject: [PATCH 1402/1402] hotspot/aarch64: remaining musl fixes
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -12,24 +12,26 @@ Content-Transfer-Encoding: 8bit
12| ^~~~~~~~~~~~~~~ 12| ^~~~~~~~~~~~~~~
13 13
14Upstream-Status: Inappropriate [OE specific] 14Upstream-Status: Inappropriate [OE specific]
15
15Signed-off-by: André Draszik <andre.draszik@jci.com> 16Signed-off-by: André Draszik <andre.draszik@jci.com>
17Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
16--- 18---
17 hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp | 2 +- 19 src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-) 20 1 file changed, 1 insertion(+), 1 deletion(-)
19 21
20diff --git a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp 22diff --git a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
21index 8b985693..23f196cd 100644 23index 27dcbfa97..33779ae57 100644
22--- a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp 24--- a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
23+++ b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp 25+++ b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
24@@ -75,7 +75,7 @@ 26@@ -72,7 +72,7 @@
25 # include <pwd.h> 27 # include <pwd.h>
26 # include <poll.h> 28 # include <poll.h>
27 # include <ucontext.h> 29 # include <ucontext.h>
28-# include <fpu_control.h> 30-# include <fpu_control.h>
29+# include <linux/types.h> /* provides __u64 */ 31+# include <linux/types.h> /* provides __u64 */
30 32
31 #ifdef BUILTIN_SIM 33 #define REG_FP 29
32 #define REG_SP REG_RSP 34
33-- 35--
342.16.1 362.26.2
35 37
diff --git a/recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch b/recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch
index 38d3019..244d2b4 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2001-jdk-comparison-between-pointer-and-integer.patch
@@ -1,7 +1,7 @@
1From 46ea1c28b53bf5fd2be03fa1d78936f6a1e70fc4 Mon Sep 17 00:00:00 2001 1From dcf3e46758fa5e77ce6fb4b3f51867bb5186f8f0 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Fri, 2 Mar 2018 11:13:08 +0000 3Date: Fri, 2 Mar 2018 11:13:08 +0000
4Subject: [PATCH 2001/2008] jdk: comparison between pointer and integer 4Subject: [PATCH] jdk: comparison between pointer and integer
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -21,14 +21,15 @@ Upstream-Status: Backport [http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/90c64359
21 21
22Signed-off-by: André Draszik <andre.draszik@jci.com> 22Signed-off-by: André Draszik <andre.draszik@jci.com>
23Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 23Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
24
24--- 25---
25 src/share/native/java/net/net_util.c | 15 +++++++-------- 26 jdk/src/share/native/java/net/net_util.c | 15 +++++++--------
26 src/share/native/java/net/net_util.h | 8 ++++---- 27 jdk/src/share/native/java/net/net_util.h | 8 ++++----
27 src/solaris/native/java/net/Inet6AddressImpl.c | 4 ++-- 28 .../solaris/native/java/net/Inet6AddressImpl.c | 4 ++--
28 3 files changed, 13 insertions(+), 14 deletions(-) 29 3 files changed, 13 insertions(+), 14 deletions(-)
29 30
30diff --git a/jdk/src/share/native/java/net/net_util.c b/jdk/src/share/native/java/net/net_util.c 31diff --git a/jdk/src/share/native/java/net/net_util.c b/jdk/src/share/native/java/net/net_util.c
31index b1b8223a6..2eee6261a 100644 32index b1b8223a..2eee6261 100644
32--- a/jdk/src/share/native/java/net/net_util.c 33--- a/jdk/src/share/native/java/net/net_util.c
33+++ b/jdk/src/share/native/java/net/net_util.c 34+++ b/jdk/src/share/native/java/net/net_util.c
34@@ -108,7 +108,7 @@ jobject getInet6Address_scopeifname(JNIEnv *env, jobject iaObj) { 35@@ -108,7 +108,7 @@ jobject getInet6Address_scopeifname(JNIEnv *env, jobject iaObj) {
@@ -99,7 +100,7 @@ index b1b8223a6..2eee6261a 100644
99 int scope; 100 int scope;
100 101
101diff --git a/jdk/src/share/native/java/net/net_util.h b/jdk/src/share/native/java/net/net_util.h 102diff --git a/jdk/src/share/native/java/net/net_util.h b/jdk/src/share/native/java/net/net_util.h
102index c8a5e68c4..176ca586e 100644 103index c8a5e68c..176ca586 100644
103--- a/jdk/src/share/native/java/net/net_util.h 104--- a/jdk/src/share/native/java/net/net_util.h
104+++ b/jdk/src/share/native/java/net/net_util.h 105+++ b/jdk/src/share/native/java/net/net_util.h
105@@ -64,12 +64,12 @@ JNIEXPORT void JNICALL initInetAddressIDs(JNIEnv *env); 106@@ -64,12 +64,12 @@ JNIEXPORT void JNICALL initInetAddressIDs(JNIEnv *env);
@@ -120,7 +121,7 @@ index c8a5e68c4..176ca586e 100644
120 extern void setInetAddress_addr(JNIEnv *env, jobject iaObj, int address); 121 extern void setInetAddress_addr(JNIEnv *env, jobject iaObj, int address);
121 extern void setInetAddress_family(JNIEnv *env, jobject iaObj, int family); 122 extern void setInetAddress_family(JNIEnv *env, jobject iaObj, int family);
122diff --git a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c 123diff --git a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c
123index 0a51a365f..dcc348cf1 100644 124index 0a51a365..dcc348cf 100644
124--- a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c 125--- a/jdk/src/solaris/native/java/net/Inet6AddressImpl.c
125+++ b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c 126+++ b/jdk/src/solaris/native/java/net/Inet6AddressImpl.c
126@@ -392,7 +392,7 @@ Java_java_net_Inet6AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this, 127@@ -392,7 +392,7 @@ Java_java_net_Inet6AddressImpl_lookupAllHostAddr(JNIEnv *env, jobject this,
@@ -141,6 +142,3 @@ index 0a51a365f..dcc348cf1 100644
141 ret = NULL; 142 ret = NULL;
142 goto cleanupAndReturn; 143 goto cleanupAndReturn;
143 } 144 }
144--
1452.24.1
146
diff --git a/recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch b/recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch
index 4d1df8a..5f8981d 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2002-jdk-Allow-using-a-system-installed-libjpeg.patch
@@ -1,7 +1,7 @@
1From aef9a3f955f6e189b2a24b9f79ccb396275d4fa3 Mon Sep 17 00:00:00 2001 1From a1a63e85513aa3501588b02940e4f0e93e992e89 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 13:36:53 +0000 3Date: Tue, 27 Feb 2018 13:36:53 +0000
4Subject: [PATCH 2002/2008] jdk: Allow using a system-installed libjpeg 4Subject: [PATCH] jdk: Allow using a system-installed libjpeg
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -21,8 +21,9 @@ Issues fixed on top of debian patch:
21Upstream-Status: Backport 21Upstream-Status: Backport
22Signed-off-by: André Draszik <andre.draszik@jci.com> 22Signed-off-by: André Draszik <andre.draszik@jci.com>
23Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 23Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
24
24--- 25---
25 make/lib/Awt2dLibraries.gmk | 69 +++++++++++++------ 26 jdk/make/lib/Awt2dLibraries.gmk | 69 +++++++++++++------
26 .../imageio/plugins/jpeg/JPEGImageReader.java | 2 +- 27 .../imageio/plugins/jpeg/JPEGImageReader.java | 2 +-
27 .../imageio/plugins/jpeg/JPEGImageWriter.java | 2 +- 28 .../imageio/plugins/jpeg/JPEGImageWriter.java | 2 +-
28 .../sun/awt/image/JPEGImageDecoder.java | 2 +- 29 .../sun/awt/image/JPEGImageDecoder.java | 2 +-
@@ -30,10 +31,10 @@ Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
30 5 files changed, 51 insertions(+), 26 deletions(-) 31 5 files changed, 51 insertions(+), 26 deletions(-)
31 32
32diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk 33diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk
33index a06bfd6db..12b9da11d 100644 34index 9368a9d5..7fffcafc 100644
34--- a/jdk/make/lib/Awt2dLibraries.gmk 35--- a/jdk/make/lib/Awt2dLibraries.gmk
35+++ b/jdk/make/lib/Awt2dLibraries.gmk 36+++ b/jdk/make/lib/Awt2dLibraries.gmk
36@@ -695,21 +695,24 @@ $(BUILD_LIBLCMS): $(BUILD_LIBAWT) 37@@ -702,21 +702,24 @@ $(BUILD_LIBLCMS): $(BUILD_LIBAWT)
37 38
38 ########################################################################################## 39 ##########################################################################################
39 40
@@ -64,7 +65,7 @@ index a06bfd6db..12b9da11d 100644
64 # Suppress gcc warnings like "variable might be clobbered by 'longjmp' 65 # Suppress gcc warnings like "variable might be clobbered by 'longjmp'
65 # or 'vfork'": this warning indicates that some variable is placed to 66 # or 'vfork'": this warning indicates that some variable is placed to
66 # a register by optimized compiler and it's value might be lost on longjmp(). 67 # a register by optimized compiler and it's value might be lost on longjmp().
67@@ -721,37 +724,50 @@ endif 68@@ -728,37 +731,50 @@ endif
68 # $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \ 69 # $(shell $(EXPR) $(CC_MAJORVER) \> 4 \| \
69 # \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) ) 70 # \( $(CC_MAJORVER) = 4 \& $(CC_MINORVER) \>= 3 \) )
70 # ifeq ($(CC_43_OR_NEWER), 1) 71 # ifeq ($(CC_43_OR_NEWER), 1)
@@ -129,7 +130,7 @@ index a06bfd6db..12b9da11d 100644
129 130
130 ########################################################################################## 131 ##########################################################################################
131 132
132@@ -1142,6 +1158,13 @@ ifndef BUILD_HEADLESS_ONLY 133@@ -1149,6 +1165,13 @@ ifndef BUILD_HEADLESS_ONLY
133 GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib 134 GIFLIB_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/giflib
134 endif 135 endif
135 136
@@ -143,7 +144,7 @@ index a06bfd6db..12b9da11d 100644
143 ifneq ($(OPENJDK_TARGET_OS), macosx) 144 ifneq ($(OPENJDK_TARGET_OS), macosx)
144 LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen 145 LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen
145 else 146 else
146@@ -1198,11 +1221,13 @@ ifndef BUILD_HEADLESS_ONLY 147@@ -1205,11 +1228,13 @@ ifndef BUILD_HEADLESS_ONLY
147 EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \ 148 EXCLUDE_FILES := imageioJPEG.c jpegdecoder.c pngtest.c, \
148 LANG := C, \ 149 LANG := C, \
149 OPTIMIZATION := LOW, \ 150 OPTIMIZATION := LOW, \
@@ -160,7 +161,7 @@ index a06bfd6db..12b9da11d 100644
160 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ 161 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
161 RC_FLAGS := $(RC_FLAGS) \ 162 RC_FLAGS := $(RC_FLAGS) \
162diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java 163diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java
163index 8f58f5b3e..fcbab8260 100644 164index 8f58f5b3..fcbab826 100644
164--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java 165--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java
165+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java 166+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageReader.java
166@@ -89,7 +89,7 @@ public class JPEGImageReader extends ImageReader { 167@@ -89,7 +89,7 @@ public class JPEGImageReader extends ImageReader {
@@ -173,7 +174,7 @@ index 8f58f5b3e..fcbab8260 100644
173 } 174 }
174 }); 175 });
175diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java 176diff --git a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
176index 6a33bd5a1..dca189ed8 100644 177index 6a33bd5a..dca189ed 100644
177--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java 178--- a/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
178+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java 179+++ b/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
179@@ -177,7 +177,7 @@ public class JPEGImageWriter extends ImageWriter { 180@@ -177,7 +177,7 @@ public class JPEGImageWriter extends ImageWriter {
@@ -186,7 +187,7 @@ index 6a33bd5a1..dca189ed8 100644
186 } 187 }
187 }); 188 });
188diff --git a/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java b/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java 189diff --git a/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java b/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java
189index 872ffc019..5965a186b 100644 190index 872ffc01..5965a186 100644
190--- a/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java 191--- a/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java
191+++ b/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java 192+++ b/jdk/src/share/classes/sun/awt/image/JPEGImageDecoder.java
192@@ -56,7 +56,7 @@ public class JPEGImageDecoder extends ImageDecoder { 193@@ -56,7 +56,7 @@ public class JPEGImageDecoder extends ImageDecoder {
@@ -199,7 +200,7 @@ index 872ffc019..5965a186b 100644
199 } 200 }
200 }); 201 });
201diff --git a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c 202diff --git a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c
202index 7e1d8c99d..8cac61da3 100644 203index 7e1d8c99..8cac61da 100644
203--- a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c 204--- a/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c
204+++ b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c 205+++ b/jdk/src/share/native/sun/awt/image/jpeg/imageioJPEG.c
205@@ -51,7 +51,7 @@ 206@@ -51,7 +51,7 @@
@@ -211,6 +212,3 @@ index 7e1d8c99d..8cac61da3 100644
211 212
212 #undef MAX 213 #undef MAX
213 #define MAX(a,b) ((a) > (b) ? (a) : (b)) 214 #define MAX(a,b) ((a) > (b) ? (a) : (b))
214--
2152.24.1
216
diff --git a/recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch b/recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch
index 13d3045..dbc714e 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2003-jdk-Allow-using-a-system-installed-libpng.patch
@@ -1,7 +1,7 @@
1From bdf8cb302ab7c8f11b676f93da482cd4a9405ce4 Mon Sep 17 00:00:00 2001 1From ce26d6cbb550039516432993894d65660b7c9e06 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 13:43:04 +0000 3Date: Tue, 27 Feb 2018 13:43:04 +0000
4Subject: [PATCH 2003/2008] jdk: Allow using a system-installed libpng 4Subject: [PATCH] jdk: Allow using a system-installed libpng
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -18,16 +18,17 @@ Issues fixed on top of debian patch:
18Upstream-Status: Backport 18Upstream-Status: Backport
19Signed-off-by: André Draszik <andre.draszik@jci.com> 19Signed-off-by: André Draszik <andre.draszik@jci.com>
20Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 20Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
21
21--- 22---
22 make/lib/Awt2dLibraries.gmk | 12 +++++++++--- 23 jdk/make/lib/Awt2dLibraries.gmk | 12 +++++++++---
23 .../native/sun/awt/splashscreen/splashscreen_png.c | 3 +-- 24 .../native/sun/awt/splashscreen/splashscreen_png.c | 3 +--
24 2 files changed, 10 insertions(+), 5 deletions(-) 25 2 files changed, 10 insertions(+), 5 deletions(-)
25 26
26diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk 27diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk
27index 12b9da11d..cd8b94cd8 100644 28index 7fffcafc..7f42e09c 100644
28--- a/jdk/make/lib/Awt2dLibraries.gmk 29--- a/jdk/make/lib/Awt2dLibraries.gmk
29+++ b/jdk/make/lib/Awt2dLibraries.gmk 30+++ b/jdk/make/lib/Awt2dLibraries.gmk
30@@ -1148,7 +1148,6 @@ endif 31@@ -1155,7 +1155,6 @@ endif
31 ifndef BUILD_HEADLESS_ONLY 32 ifndef BUILD_HEADLESS_ONLY
32 LIBSPLASHSCREEN_DIRS := \ 33 LIBSPLASHSCREEN_DIRS := \
33 $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \ 34 $(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg \
@@ -35,7 +36,7 @@ index 12b9da11d..cd8b94cd8 100644
35 $(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen 36 $(JDK_TOPDIR)/src/share/native/sun/awt/splashscreen
36 37
37 ifeq ($(USE_EXTERNAL_LIBGIF), true) 38 ifeq ($(USE_EXTERNAL_LIBGIF), true)
38@@ -1165,6 +1164,13 @@ ifndef BUILD_HEADLESS_ONLY 39@@ -1172,6 +1171,13 @@ ifndef BUILD_HEADLESS_ONLY
39 LIBJPEG_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg 40 LIBJPEG_CFLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/jpeg
40 endif 41 endif
41 42
@@ -49,7 +50,7 @@ index 12b9da11d..cd8b94cd8 100644
49 ifneq ($(OPENJDK_TARGET_OS), macosx) 50 ifneq ($(OPENJDK_TARGET_OS), macosx)
50 LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen 51 LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/awt/splashscreen
51 else 52 else
52@@ -1222,12 +1228,12 @@ ifndef BUILD_HEADLESS_ONLY 53@@ -1229,12 +1235,12 @@ ifndef BUILD_HEADLESS_ONLY
53 LANG := C, \ 54 LANG := C, \
54 OPTIMIZATION := LOW, \ 55 OPTIMIZATION := LOW, \
55 CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) \ 56 CFLAGS := $(LIBSPLASHSCREEN_CFLAGS) $(CFLAGS_JDKLIB) \
@@ -65,7 +66,7 @@ index 12b9da11d..cd8b94cd8 100644
65 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ 66 VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
66 RC_FLAGS := $(RC_FLAGS) \ 67 RC_FLAGS := $(RC_FLAGS) \
67diff --git a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c 68diff --git a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c
68index 3599433e4..5bf002ea1 100644 69index 3599433e..5bf002ea 100644
69--- a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c 70--- a/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c
70+++ b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c 71+++ b/jdk/src/share/native/sun/awt/splashscreen/splashscreen_png.c
71@@ -25,8 +25,7 @@ 72@@ -25,8 +25,7 @@
@@ -78,6 +79,3 @@ index 3599433e4..5bf002ea1 100644
78 #include <setjmp.h> 79 #include <setjmp.h>
79 80
80 #define SIG_BYTES 8 81 #define SIG_BYTES 8
81--
822.24.1
83
diff --git a/recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch b/recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch
index 365b4d6..91ec91f 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2004-jdk-use-correct-include-for-poll.patch
@@ -1,7 +1,7 @@
1From 48d7384387394820f2f5e8bdc2982c242568b548 Mon Sep 17 00:00:00 2001 1From 44512cfca65ea5b7b6d1732560d8aa2cd221de22 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 09:28:06 +0000 3Date: Tue, 27 Feb 2018 09:28:06 +0000
4Subject: [PATCH 2004/2008] jdk: use correct include for poll 4Subject: [PATCH] jdk: use correct include for poll
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -25,24 +25,25 @@ the following command:
25Upstream-Status: Pending 25Upstream-Status: Pending
26Signed-off-by: André Draszik <andre.draszik@jci.com> 26Signed-off-by: André Draszik <andre.draszik@jci.com>
27Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 27Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
28
28--- 29---
29 src/aix/native/java/net/aix_close.c | 2 +- 30 jdk/src/aix/native/java/net/aix_close.c | 2 +-
30 src/aix/native/sun/nio/ch/AixPollPort.c | 2 +- 31 jdk/src/aix/native/sun/nio/ch/AixPollPort.c | 2 +-
31 src/solaris/native/java/net/PlainSocketImpl.c | 2 +- 32 jdk/src/solaris/native/java/net/PlainSocketImpl.c | 2 +-
32 src/solaris/native/java/net/bsd_close.c | 2 +- 33 jdk/src/solaris/native/java/net/bsd_close.c | 2 +-
33 src/solaris/native/java/net/linux_close.c | 2 +- 34 jdk/src/solaris/native/java/net/linux_close.c | 2 +-
34 src/solaris/native/java/net/net_util_md.h | 2 +- 35 jdk/src/solaris/native/java/net/net_util_md.h | 2 +-
35 src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c | 2 +- 36 jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c | 2 +-
36 src/solaris/native/sun/nio/ch/Net.c | 2 +- 37 jdk/src/solaris/native/sun/nio/ch/Net.c | 2 +-
37 src/solaris/native/sun/nio/fs/LinuxWatchService.c | 2 +- 38 jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c | 2 +-
38 src/solaris/transport/socket/socket_md.c | 2 +- 39 jdk/src/solaris/transport/socket/socket_md.c | 2 +-
39 10 files changed, 10 insertions(+), 10 deletions(-) 40 10 files changed, 10 insertions(+), 10 deletions(-)
40 41
41diff --git a/jdk/src/aix/native/java/net/aix_close.c b/jdk/src/aix/native/java/net/aix_close.c 42diff --git a/jdk/src/aix/native/java/net/aix_close.c b/jdk/src/aix/native/java/net/aix_close.c
42index 8c070e4b7..126f4d7d4 100644 43index 90d57b42..fbeb73ef 100644
43--- a/jdk/src/aix/native/java/net/aix_close.c 44--- a/jdk/src/aix/native/java/net/aix_close.c
44+++ b/jdk/src/aix/native/java/net/aix_close.c 45+++ b/jdk/src/aix/native/java/net/aix_close.c
45@@ -51,7 +51,7 @@ 46@@ -54,7 +54,7 @@
46 #include <unistd.h> 47 #include <unistd.h>
47 #include <errno.h> 48 #include <errno.h>
48 49
@@ -52,7 +53,7 @@ index 8c070e4b7..126f4d7d4 100644
52 /* 53 /*
53 * Stack allocated by thread when doing blocking operation 54 * Stack allocated by thread when doing blocking operation
54diff --git a/jdk/src/aix/native/sun/nio/ch/AixPollPort.c b/jdk/src/aix/native/sun/nio/ch/AixPollPort.c 55diff --git a/jdk/src/aix/native/sun/nio/ch/AixPollPort.c b/jdk/src/aix/native/sun/nio/ch/AixPollPort.c
55index 70064b890..c10c602b6 100644 56index 70064b89..c10c602b 100644
56--- a/jdk/src/aix/native/sun/nio/ch/AixPollPort.c 57--- a/jdk/src/aix/native/sun/nio/ch/AixPollPort.c
57+++ b/jdk/src/aix/native/sun/nio/ch/AixPollPort.c 58+++ b/jdk/src/aix/native/sun/nio/ch/AixPollPort.c
58@@ -34,7 +34,7 @@ 59@@ -34,7 +34,7 @@
@@ -65,7 +66,7 @@ index 70064b890..c10c602b6 100644
65 #include <fcntl.h> 66 #include <fcntl.h>
66 #include <stddef.h> 67 #include <stddef.h>
67diff --git a/jdk/src/solaris/native/java/net/PlainSocketImpl.c b/jdk/src/solaris/native/java/net/PlainSocketImpl.c 68diff --git a/jdk/src/solaris/native/java/net/PlainSocketImpl.c b/jdk/src/solaris/native/java/net/PlainSocketImpl.c
68index 71cbdf8ce..170957e73 100644 69index 373c5e36..9aafbc09 100644
69--- a/jdk/src/solaris/native/java/net/PlainSocketImpl.c 70--- a/jdk/src/solaris/native/java/net/PlainSocketImpl.c
70+++ b/jdk/src/solaris/native/java/net/PlainSocketImpl.c 71+++ b/jdk/src/solaris/native/java/net/PlainSocketImpl.c
71@@ -28,7 +28,7 @@ 72@@ -28,7 +28,7 @@
@@ -78,10 +79,10 @@ index 71cbdf8ce..170957e73 100644
78 #include <netinet/tcp.h> /* Defines TCP_NODELAY, needed for 2.6 */ 79 #include <netinet/tcp.h> /* Defines TCP_NODELAY, needed for 2.6 */
79 #include <netinet/in.h> 80 #include <netinet/in.h>
80diff --git a/jdk/src/solaris/native/java/net/bsd_close.c b/jdk/src/solaris/native/java/net/bsd_close.c 81diff --git a/jdk/src/solaris/native/java/net/bsd_close.c b/jdk/src/solaris/native/java/net/bsd_close.c
81index af57cef30..64d040887 100644 82index 89a20707..511ab845 100644
82--- a/jdk/src/solaris/native/java/net/bsd_close.c 83--- a/jdk/src/solaris/native/java/net/bsd_close.c
83+++ b/jdk/src/solaris/native/java/net/bsd_close.c 84+++ b/jdk/src/solaris/native/java/net/bsd_close.c
84@@ -36,7 +36,7 @@ 85@@ -38,7 +38,7 @@
85 #include <sys/uio.h> 86 #include <sys/uio.h>
86 #include <unistd.h> 87 #include <unistd.h>
87 #include <errno.h> 88 #include <errno.h>
@@ -91,10 +92,10 @@ index af57cef30..64d040887 100644
91 /* 92 /*
92 * Stack allocated by thread when doing blocking operation 93 * Stack allocated by thread when doing blocking operation
93diff --git a/jdk/src/solaris/native/java/net/linux_close.c b/jdk/src/solaris/native/java/net/linux_close.c 94diff --git a/jdk/src/solaris/native/java/net/linux_close.c b/jdk/src/solaris/native/java/net/linux_close.c
94index 98e1ce098..85fba135f 100644 95index eacc2afd..159ca132 100644
95--- a/jdk/src/solaris/native/java/net/linux_close.c 96--- a/jdk/src/solaris/native/java/net/linux_close.c
96+++ b/jdk/src/solaris/native/java/net/linux_close.c 97+++ b/jdk/src/solaris/native/java/net/linux_close.c
97@@ -34,7 +34,7 @@ 98@@ -36,7 +36,7 @@
98 #include <sys/uio.h> 99 #include <sys/uio.h>
99 #include <unistd.h> 100 #include <unistd.h>
100 #include <errno.h> 101 #include <errno.h>
@@ -104,7 +105,7 @@ index 98e1ce098..85fba135f 100644
104 /* 105 /*
105 * Stack allocated by thread when doing blocking operation 106 * Stack allocated by thread when doing blocking operation
106diff --git a/jdk/src/solaris/native/java/net/net_util_md.h b/jdk/src/solaris/native/java/net/net_util_md.h 107diff --git a/jdk/src/solaris/native/java/net/net_util_md.h b/jdk/src/solaris/native/java/net/net_util_md.h
107index a48446de9..8915b68aa 100644 108index a48446de..8915b68a 100644
108--- a/jdk/src/solaris/native/java/net/net_util_md.h 109--- a/jdk/src/solaris/native/java/net/net_util_md.h
109+++ b/jdk/src/solaris/native/java/net/net_util_md.h 110+++ b/jdk/src/solaris/native/java/net/net_util_md.h
110@@ -33,7 +33,7 @@ 111@@ -33,7 +33,7 @@
@@ -117,7 +118,7 @@ index a48446de9..8915b68aa 100644
117 118
118 119
119diff --git a/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c b/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c 120diff --git a/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c b/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c
120index 6860a167b..20849dabc 100644 121index 6860a167..20849dab 100644
121--- a/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c 122--- a/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c
122+++ b/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c 123+++ b/jdk/src/solaris/native/sun/nio/ch/DevPollArrayWrapper.c
123@@ -28,7 +28,7 @@ 124@@ -28,7 +28,7 @@
@@ -130,7 +131,7 @@ index 6860a167b..20849dabc 100644
130 #include <sys/time.h> 131 #include <sys/time.h>
131 132
132diff --git a/jdk/src/solaris/native/sun/nio/ch/Net.c b/jdk/src/solaris/native/sun/nio/ch/Net.c 133diff --git a/jdk/src/solaris/native/sun/nio/ch/Net.c b/jdk/src/solaris/native/sun/nio/ch/Net.c
133index 73560ad6c..a3720055c 100644 134index 73560ad6..a3720055 100644
134--- a/jdk/src/solaris/native/sun/nio/ch/Net.c 135--- a/jdk/src/solaris/native/sun/nio/ch/Net.c
135+++ b/jdk/src/solaris/native/sun/nio/ch/Net.c 136+++ b/jdk/src/solaris/native/sun/nio/ch/Net.c
136@@ -23,7 +23,7 @@ 137@@ -23,7 +23,7 @@
@@ -143,7 +144,7 @@ index 73560ad6c..a3720055c 100644
143 #include <sys/socket.h> 144 #include <sys/socket.h>
144 #include <string.h> 145 #include <string.h>
145diff --git a/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c b/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c 146diff --git a/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c b/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c
146index 375aaa485..7606e9ba8 100644 147index 375aaa48..7606e9ba 100644
147--- a/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c 148--- a/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c
148+++ b/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c 149+++ b/jdk/src/solaris/native/sun/nio/fs/LinuxWatchService.c
149@@ -32,7 +32,7 @@ 150@@ -32,7 +32,7 @@
@@ -156,7 +157,7 @@ index 375aaa485..7606e9ba8 100644
156 157
157 #include "sun_nio_fs_LinuxWatchService.h" 158 #include "sun_nio_fs_LinuxWatchService.h"
158diff --git a/jdk/src/solaris/transport/socket/socket_md.c b/jdk/src/solaris/transport/socket/socket_md.c 159diff --git a/jdk/src/solaris/transport/socket/socket_md.c b/jdk/src/solaris/transport/socket/socket_md.c
159index 33e062e08..819fcabdb 100644 160index 33e062e0..819fcabd 100644
160--- a/jdk/src/solaris/transport/socket/socket_md.c 161--- a/jdk/src/solaris/transport/socket/socket_md.c
161+++ b/jdk/src/solaris/transport/socket/socket_md.c 162+++ b/jdk/src/solaris/transport/socket/socket_md.c
162@@ -37,7 +37,7 @@ 163@@ -37,7 +37,7 @@
@@ -168,6 +169,3 @@ index 33e062e08..819fcabdb 100644
168 #endif 169 #endif
169 170
170 #include "socket_md.h" 171 #include "socket_md.h"
171--
1722.24.1
173
diff --git a/recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch b/recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch
index 32bde99..b38dcb3 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2005-jdk-use-correct-include-for-signal.patch
@@ -1,7 +1,7 @@
1From 606c807be8e01a4cc99a02b50717d9bce141e8a2 Mon Sep 17 00:00:00 2001 1From ddcec385593175ee01b9f000457a34b3d7ab5ab4 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Tue, 27 Feb 2018 09:28:06 +0000 3Date: Tue, 27 Feb 2018 09:28:06 +0000
4Subject: [PATCH 2005/2008] jdk: use correct include for signal 4Subject: [PATCH] jdk: use correct include for signal
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -26,15 +26,16 @@ the following command:
26Upstream-Status: Pending 26Upstream-Status: Pending
27Signed-off-by: André Draszik <andre.draszik@jci.com> 27Signed-off-by: André Draszik <andre.draszik@jci.com>
28Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 28Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
29
29--- 30---
30 src/aix/native/sun/nio/ch/AixNativeThread.c | 2 +- 31 jdk/src/aix/native/sun/nio/ch/AixNativeThread.c | 2 +-
31 src/macosx/javavm/export/jvm_md.h | 2 +- 32 jdk/src/macosx/javavm/export/jvm_md.h | 2 +-
32 src/solaris/javavm/export/jvm_md.h | 2 +- 33 jdk/src/solaris/javavm/export/jvm_md.h | 2 +-
33 src/solaris/native/sun/nio/ch/NativeThread.c | 2 +- 34 jdk/src/solaris/native/sun/nio/ch/NativeThread.c | 2 +-
34 4 files changed, 4 insertions(+), 4 deletions(-) 35 4 files changed, 4 insertions(+), 4 deletions(-)
35 36
36diff --git a/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c b/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c 37diff --git a/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c b/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c
37index c0d585796..c4abb7ae5 100644 38index c0d58579..c4abb7ae 100644
38--- a/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c 39--- a/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c
39+++ b/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c 40+++ b/jdk/src/aix/native/sun/nio/ch/AixNativeThread.c
40@@ -32,7 +32,7 @@ 41@@ -32,7 +32,7 @@
@@ -47,7 +48,7 @@ index c0d585796..c4abb7ae5 100644
47 /* Also defined in src/aix/native/java/net/aix_close.c */ 48 /* Also defined in src/aix/native/java/net/aix_close.c */
48 #define INTERRUPT_SIGNAL (SIGRTMAX - 1) 49 #define INTERRUPT_SIGNAL (SIGRTMAX - 1)
49diff --git a/jdk/src/macosx/javavm/export/jvm_md.h b/jdk/src/macosx/javavm/export/jvm_md.h 50diff --git a/jdk/src/macosx/javavm/export/jvm_md.h b/jdk/src/macosx/javavm/export/jvm_md.h
50index 012bb1bab..0b5757683 100644 51index 012bb1ba..0b575768 100644
51--- a/jdk/src/macosx/javavm/export/jvm_md.h 52--- a/jdk/src/macosx/javavm/export/jvm_md.h
52+++ b/jdk/src/macosx/javavm/export/jvm_md.h 53+++ b/jdk/src/macosx/javavm/export/jvm_md.h
53@@ -60,7 +60,7 @@ 54@@ -60,7 +60,7 @@
@@ -60,7 +61,7 @@ index 012bb1bab..0b5757683 100644
60 /* O Flags */ 61 /* O Flags */
61 62
62diff --git a/jdk/src/solaris/javavm/export/jvm_md.h b/jdk/src/solaris/javavm/export/jvm_md.h 63diff --git a/jdk/src/solaris/javavm/export/jvm_md.h b/jdk/src/solaris/javavm/export/jvm_md.h
63index 5c681914b..62415ee25 100644 64index 5c681914..62415ee2 100644
64--- a/jdk/src/solaris/javavm/export/jvm_md.h 65--- a/jdk/src/solaris/javavm/export/jvm_md.h
65+++ b/jdk/src/solaris/javavm/export/jvm_md.h 66+++ b/jdk/src/solaris/javavm/export/jvm_md.h
66@@ -65,7 +65,7 @@ 67@@ -65,7 +65,7 @@
@@ -73,7 +74,7 @@ index 5c681914b..62415ee25 100644
73 /* O Flags */ 74 /* O Flags */
74 75
75diff --git a/jdk/src/solaris/native/sun/nio/ch/NativeThread.c b/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 76diff --git a/jdk/src/solaris/native/sun/nio/ch/NativeThread.c b/jdk/src/solaris/native/sun/nio/ch/NativeThread.c
76index 5e2a78b7a..204f0441a 100644 77index 5e2a78b7..204f0441 100644
77--- a/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 78--- a/jdk/src/solaris/native/sun/nio/ch/NativeThread.c
78+++ b/jdk/src/solaris/native/sun/nio/ch/NativeThread.c 79+++ b/jdk/src/solaris/native/sun/nio/ch/NativeThread.c
79@@ -34,7 +34,7 @@ 80@@ -34,7 +34,7 @@
@@ -85,6 +86,3 @@ index 5e2a78b7a..204f0441a 100644
85 /* Also defined in net/linux_close.c */ 86 /* Also defined in net/linux_close.c */
86 #define INTERRUPT_SIGNAL (__SIGRTMAX - 2) 87 #define INTERRUPT_SIGNAL (__SIGRTMAX - 2)
87 #elif __solaris__ 88 #elif __solaris__
88--
892.24.1
90
diff --git a/recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch b/recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch
index dd5e051..4773f20 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2006-jdk-disable-backtrace-musl-build-fix.patch
@@ -1,7 +1,7 @@
1From 86de5eb9d031e7f8d241725d5eeaa7030cf2ce2b Mon Sep 17 00:00:00 2001 1From f27d54f62c5a5667c04b78ea1434a5db36358261 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com> 2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.draszik@jci.com>
3Date: Fri, 2 Mar 2018 13:58:07 +0000 3Date: Fri, 2 Mar 2018 13:58:07 +0000
4Subject: [PATCH 2006/2008] jdk: disable backtrace() (musl build fix) 4Subject: [PATCH] jdk: disable backtrace() (musl build fix)
5MIME-Version: 1.0 5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8 6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit 7Content-Transfer-Encoding: 8bit
@@ -15,12 +15,13 @@ to fix the build on musl.
15Upstream-Status: Pending 15Upstream-Status: Pending
16Signed-off-by: André Draszik <andre.draszik@jci.com> 16Signed-off-by: André Draszik <andre.draszik@jci.com>
17Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 17Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
18
18--- 19---
19 src/solaris/native/sun/xawt/XToolkit.c | 4 ++-- 20 jdk/src/solaris/native/sun/xawt/XToolkit.c | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-) 21 1 file changed, 2 insertions(+), 2 deletions(-)
21 22
22diff --git a/jdk/src/solaris/native/sun/xawt/XToolkit.c b/jdk/src/solaris/native/sun/xawt/XToolkit.c 23diff --git a/jdk/src/solaris/native/sun/xawt/XToolkit.c b/jdk/src/solaris/native/sun/xawt/XToolkit.c
23index 2425bf43a..1c8ebdb42 100644 24index 95d2baff..41dfa992 100644
24--- a/jdk/src/solaris/native/sun/xawt/XToolkit.c 25--- a/jdk/src/solaris/native/sun/xawt/XToolkit.c
25+++ b/jdk/src/solaris/native/sun/xawt/XToolkit.c 26+++ b/jdk/src/solaris/native/sun/xawt/XToolkit.c
26@@ -27,7 +27,7 @@ 27@@ -27,7 +27,7 @@
@@ -32,7 +33,7 @@ index 2425bf43a..1c8ebdb42 100644
32 #include <execinfo.h> 33 #include <execinfo.h>
33 #endif 34 #endif
34 35
35@@ -803,7 +803,7 @@ JNIEXPORT jstring JNICALL Java_sun_awt_X11_XToolkit_getEnv 36@@ -796,7 +796,7 @@ JNIEXPORT jstring JNICALL Java_sun_awt_X11_XToolkit_getEnv
36 return ret; 37 return ret;
37 } 38 }
38 39
@@ -41,6 +42,3 @@ index 2425bf43a..1c8ebdb42 100644
41 void print_stack(void) 42 void print_stack(void)
42 { 43 {
43 void *array[10]; 44 void *array[10];
44--
452.24.1
46
diff --git a/recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch b/recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch
index 8f3d134..d205ae5 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2007-jdk-no-genx11-in-headless.patch
@@ -1,15 +1,16 @@
1From 0708dd8e56c1f28c2215561ba3035c8c538acef6 Mon Sep 17 00:00:00 2001 1From 095da0fd8597f0ed8d95d226300e8d6661ac2383 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:25:12 +0100 3Date: Thu, 2 Jan 2020 13:25:12 +0100
4Subject: [PATCH 2007/2008] jdk: no genx11 in headless 4Subject: [PATCH] jdk: no genx11 in headless
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 make/GenerateSources.gmk | 8 +++++--- 9 jdk/make/GenerateSources.gmk | 8 +++++---
9 1 file changed, 5 insertions(+), 3 deletions(-) 10 1 file changed, 5 insertions(+), 3 deletions(-)
10 11
11diff --git a/jdk/make/GenerateSources.gmk b/jdk/make/GenerateSources.gmk 12diff --git a/jdk/make/GenerateSources.gmk b/jdk/make/GenerateSources.gmk
12index ba443f7da..2170150ac 100644 13index ba443f7d..2170150a 100644
13--- a/jdk/make/GenerateSources.gmk 14--- a/jdk/make/GenerateSources.gmk
14+++ b/jdk/make/GenerateSources.gmk 15+++ b/jdk/make/GenerateSources.gmk
15@@ -73,9 +73,11 @@ ifneq ($(OPENJDK_TARGET_OS), windows) 16@@ -73,9 +73,11 @@ ifneq ($(OPENJDK_TARGET_OS), windows)
@@ -27,6 +28,3 @@ index ba443f7da..2170150ac 100644
27 endif 28 endif
28 endif 29 endif
29 30
30--
312.24.1
32
diff --git a/recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch b/recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch
index e725bf9..115914a 100644
--- a/recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch
+++ b/recipes-core/openjdk/patches-openjdk-8/2008-jdk-no-unused-deps.patch
@@ -1,18 +1,19 @@
1From 0bb17a5083efcfd02e96ef034e51a190ea678f15 Mon Sep 17 00:00:00 2001 1From bc6450aaa4b7652ee034423f1d04cb439152eaf6 Mon Sep 17 00:00:00 2001
2From: Jens Rehsack <rehsack@gmail.com> 2From: Jens Rehsack <rehsack@gmail.com>
3Date: Thu, 2 Jan 2020 13:26:42 +0100 3Date: Thu, 2 Jan 2020 13:26:42 +0100
4Subject: [PATCH 2008/2008] jdk: no unused deps 4Subject: [PATCH] jdk: no unused deps
5 5
6Signed-off-by: Richard Leitner <richard.leitner@skidata.com> 6Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
7
7--- 8---
8 make/CompileNativeLibraries.gmk | 2 ++ 9 jdk/make/CompileNativeLibraries.gmk | 2 ++
9 make/lib/Awt2dLibraries.gmk | 30 +++++++++++++++++------ 10 jdk/make/lib/Awt2dLibraries.gmk | 30 ++++++++++++++-----
10 src/solaris/native/sun/awt/jawt.c | 2 +- 11 jdk/src/solaris/native/sun/awt/jawt.c | 2 +-
11 src/solaris/native/sun/awt/utility/rect.h | 2 +- 12 jdk/src/solaris/native/sun/awt/utility/rect.h | 2 +-
12 4 files changed, 26 insertions(+), 10 deletions(-) 13 4 files changed, 26 insertions(+), 10 deletions(-)
13 14
14diff --git a/jdk/make/CompileNativeLibraries.gmk b/jdk/make/CompileNativeLibraries.gmk 15diff --git a/jdk/make/CompileNativeLibraries.gmk b/jdk/make/CompileNativeLibraries.gmk
15index c23b958b0..2984302f0 100644 16index c23b958b..2984302f 100644
16--- a/jdk/make/CompileNativeLibraries.gmk 17--- a/jdk/make/CompileNativeLibraries.gmk
17+++ b/jdk/make/CompileNativeLibraries.gmk 18+++ b/jdk/make/CompileNativeLibraries.gmk
18@@ -85,7 +85,9 @@ include lib/ServiceabilityLibraries.gmk 19@@ -85,7 +85,9 @@ include lib/ServiceabilityLibraries.gmk
@@ -26,7 +27,7 @@ index c23b958b0..2984302f0 100644
26 # Include the corresponding custom file, if present. 27 # Include the corresponding custom file, if present.
27 -include $(CUSTOM_MAKE_DIR)/CompileNativeLibraries.gmk 28 -include $(CUSTOM_MAKE_DIR)/CompileNativeLibraries.gmk
28diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk 29diff --git a/jdk/make/lib/Awt2dLibraries.gmk b/jdk/make/lib/Awt2dLibraries.gmk
29index cd8b94cd8..8d9c37246 100644 30index 7f42e09c..10232b61 100644
30--- a/jdk/make/lib/Awt2dLibraries.gmk 31--- a/jdk/make/lib/Awt2dLibraries.gmk
31+++ b/jdk/make/lib/Awt2dLibraries.gmk 32+++ b/jdk/make/lib/Awt2dLibraries.gmk
32@@ -232,6 +232,10 @@ ifeq ($(OPENJDK_TARGET_OS), aix) 33@@ -232,6 +232,10 @@ ifeq ($(OPENJDK_TARGET_OS), aix)
@@ -40,7 +41,7 @@ index cd8b94cd8..8d9c37246 100644
40 LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES \ 41 LIBAWT_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES \
41 $(X_CFLAGS) \ 42 $(X_CFLAGS) \
42 $(foreach dir, $(LIBAWT_DIRS), -I$(dir)) 43 $(foreach dir, $(LIBAWT_DIRS), -I$(dir))
43@@ -801,17 +805,28 @@ ifeq ($(BUILD_HEADLESS), true) 44@@ -808,17 +812,28 @@ ifeq ($(BUILD_HEADLESS), true)
44 -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \ 45 -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/jdga \
45 $(foreach dir, $(LIBAWT_HEADLESS_DIRS), -I$(dir)) 46 $(foreach dir, $(LIBAWT_HEADLESS_DIRS), -I$(dir))
46 47
@@ -74,7 +75,7 @@ index cd8b94cd8..8d9c37246 100644
74 OGLBlitLoops.c \ 75 OGLBlitLoops.c \
75 OGLBufImgOps.c \ 76 OGLBufImgOps.c \
76 OGLContext.c \ 77 OGLContext.c \
77@@ -824,10 +839,9 @@ ifeq ($(BUILD_HEADLESS), true) 78@@ -831,10 +846,9 @@ ifeq ($(BUILD_HEADLESS), true)
78 OGLSurfaceData.c \ 79 OGLSurfaceData.c \
79 OGLTextRenderer.c \ 80 OGLTextRenderer.c \
80 OGLVertexCache.c \ 81 OGLVertexCache.c \
@@ -88,7 +89,7 @@ index cd8b94cd8..8d9c37246 100644
88 LIBAWT_HEADLESS_REORDER := 89 LIBAWT_HEADLESS_REORDER :=
89 ifeq ($(OPENJDK_TARGET_OS), solaris) 90 ifeq ($(OPENJDK_TARGET_OS), solaris)
90diff --git a/jdk/src/solaris/native/sun/awt/jawt.c b/jdk/src/solaris/native/sun/awt/jawt.c 91diff --git a/jdk/src/solaris/native/sun/awt/jawt.c b/jdk/src/solaris/native/sun/awt/jawt.c
91index 64284bc6e..b3584c7ef 100644 92index 64284bc6..b3584c7e 100644
92--- a/jdk/src/solaris/native/sun/awt/jawt.c 93--- a/jdk/src/solaris/native/sun/awt/jawt.c
93+++ b/jdk/src/solaris/native/sun/awt/jawt.c 94+++ b/jdk/src/solaris/native/sun/awt/jawt.c
94@@ -33,7 +33,7 @@ 95@@ -33,7 +33,7 @@
@@ -101,7 +102,7 @@ index 64284bc6e..b3584c7ef 100644
101 return JNI_FALSE; 102 return JNI_FALSE;
102 #else 103 #else
103diff --git a/jdk/src/solaris/native/sun/awt/utility/rect.h b/jdk/src/solaris/native/sun/awt/utility/rect.h 104diff --git a/jdk/src/solaris/native/sun/awt/utility/rect.h b/jdk/src/solaris/native/sun/awt/utility/rect.h
104index ceea38f43..8d85782ba 100644 105index ceea38f4..8d85782b 100644
105--- a/jdk/src/solaris/native/sun/awt/utility/rect.h 106--- a/jdk/src/solaris/native/sun/awt/utility/rect.h
106+++ b/jdk/src/solaris/native/sun/awt/utility/rect.h 107+++ b/jdk/src/solaris/native/sun/awt/utility/rect.h
107@@ -28,7 +28,7 @@ 108@@ -28,7 +28,7 @@
@@ -113,6 +114,3 @@ index ceea38f43..8d85782ba 100644
113 #include <X11/Xlib.h> 114 #include <X11/Xlib.h>
114 typedef XRectangle RECT_T; 115 typedef XRectangle RECT_T;
115 #else 116 #else
116--
1172.24.1
118
diff --git a/recipes-core/openjdk/patches-openjdk-8/2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch b/recipes-core/openjdk/patches-openjdk-8/2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch
new file mode 100644
index 0000000..3c7dc24
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/2009-jdk-make-use-gcc-instead-of-ld-for-genSocketOptionRe.patch
@@ -0,0 +1,26 @@
1From 83d3b8427c8996f3a0359d218f174b46fe9120c8 Mon Sep 17 00:00:00 2001
2From: Richard Leitner <richard.leitner@skidata.com>
3Date: Thu, 20 Aug 2020 11:24:40 +0200
4Subject: [PATCH] jdk: make: use gcc instead of ld for genSocketOptionRegistry
5
6Upstream-Status: Pending
7
8Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
9
10---
11 jdk/make/gensrc/GensrcMisc.gmk | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/jdk/make/gensrc/GensrcMisc.gmk b/jdk/make/gensrc/GensrcMisc.gmk
15index 9db5c9d6..84a3c27e 100644
16--- a/jdk/make/gensrc/GensrcMisc.gmk
17+++ b/jdk/make/gensrc/GensrcMisc.gmk
18@@ -76,7 +76,7 @@ $(eval $(call SetupNativeCompilation,BUILD_GENSRC_SOR_EXE, \
19 INCLUDE_FILES := $(GENSRC_SOR_SRC_FILE), \
20 LANG := C, \
21 CC := $(BUILD_CC), \
22- LDEXE := $(BUILD_LD), \
23+ LDEXE := $(BUILD_CC), \
24 OBJECT_DIR := $(GENSRC_SOR_BIN), \
25 OUTPUT_DIR := $(GENSRC_SOR_BIN), \
26 PROGRAM := genSocketOptionRegistry))
diff --git a/recipes-core/openjdk/patches-openjdk-8/2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch b/recipes-core/openjdk/patches-openjdk-8/2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch
deleted file mode 100644
index e35d0eb..0000000
--- a/recipes-core/openjdk/patches-openjdk-8/2009-jdk-use-gcc-instead-of-ld-to-link-genSocketOptionRegistry.patch
+++ /dev/null
@@ -1,13 +0,0 @@
1Index: jdk8u-jdk8u242-ga/jdk/make/gensrc/GensrcMisc.gmk
2===================================================================
3--- jdk8u-jdk8u242-ga.orig/jdk/make/gensrc/GensrcMisc.gmk
4+++ jdk8u-jdk8u242-ga/jdk/make/gensrc/GensrcMisc.gmk
5@@ -76,7 +76,7 @@ $(eval $(call SetupNativeCompilation,BUI
6 INCLUDE_FILES := $(GENSRC_SOR_SRC_FILE), \
7 LANG := C, \
8 CC := $(BUILD_CC), \
9- LDEXE := $(BUILD_LD), \
10+ LDEXE := $(BUILD_CC), \
11 OBJECT_DIR := $(GENSRC_SOR_BIN), \
12 OUTPUT_DIR := $(GENSRC_SOR_BIN), \
13 PROGRAM := genSocketOptionRegistry))
diff --git a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-shark-build-pt2.patch b/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-shark-build-pt2.patch
deleted file mode 100644
index b09745c..0000000
--- a/recipes-core/openjdk/patches-openjdk-8/aarch32-hotspot-fix-shark-build-pt2.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- hotspot/src/cpu/zero/vm/entry_zero.hpp
2+++ hotspot/src/cpu/zero/vm/entry_zero.hpp
3@@ -26,6 +26,8 @@
4 #ifndef CPU_ZERO_VM_ENTRY_ZERO_HPP
5 #define CPU_ZERO_VM_ENTRY_ZERO_HPP
6
7+#include "utilities/globalDefinitions.hpp"
8+#include "utilities/exceptions.hpp"
9 #include "interpreter/cppInterpreter.hpp"
10
11 class ZeroEntry {
diff --git a/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build-pt2.patch b/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build-pt2.patch
deleted file mode 100644
index b09745c..0000000
--- a/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-shark-build-pt2.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- hotspot/src/cpu/zero/vm/entry_zero.hpp
2+++ hotspot/src/cpu/zero/vm/entry_zero.hpp
3@@ -26,6 +26,8 @@
4 #ifndef CPU_ZERO_VM_ENTRY_ZERO_HPP
5 #define CPU_ZERO_VM_ENTRY_ZERO_HPP
6
7+#include "utilities/globalDefinitions.hpp"
8+#include "utilities/exceptions.hpp"
9 #include "interpreter/cppInterpreter.hpp"
10
11 class ZeroEntry {
diff --git a/recipes-core/rhino/rhino_1.7r4.bb b/recipes-core/rhino/rhino_1.7r4.bb
index 4242005..d645e8a 100644
--- a/recipes-core/rhino/rhino_1.7r4.bb
+++ b/recipes-core/rhino/rhino_1.7r4.bb
@@ -2,7 +2,7 @@ SUMMARY = "Lexical analyzer generator for Java"
2LICENSE = "MPL-2.0" 2LICENSE = "MPL-2.0"
3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8e2372bdbf22c99279ae4599a13cc458" 3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=8e2372bdbf22c99279ae4599a13cc458"
4 4
5DEPENDS_class-native += "classpath-native" 5DEPENDS:class-native += "classpath-native"
6 6
7BBCLASSEXTEND = "native" 7BBCLASSEXTEND = "native"
8 8
@@ -10,19 +10,20 @@ PACKAGE_ARCH = "${TUNE_PKGARCH}"
10 10
11inherit java-library 11inherit java-library
12 12
13SRCREV = "82ffb8f3e09e77e3b1f5782c35b621e7ca742b58"
13SRC_URI = "\ 14SRC_URI = "\
14 https://github.com/downloads/mozilla/rhino/rhino1_7R4.zip \ 15 git://github.com/mozilla/rhino;protocol=https;branch=master \
15 file://rhino \ 16 file://rhino \
16 file://rhino-jsc \ 17 file://rhino-jsc \
17 " 18 "
18 19
19S = "${WORKDIR}/rhino1_7R4" 20S = "${WORKDIR}/git"
20 21
21PACKAGES = "${JPN} rhino" 22PACKAGES = "${JPN} rhino"
22 23
23FILES_${PN} = "${bindir}/rhino ${bindir}/rhino-jsc" 24FILES:${PN} = "${bindir}/rhino ${bindir}/rhino-jsc"
24RDEPENDS_${PN} = "java2-runtime ${JPN}" 25RDEPENDS:${PN} = "java2-runtime ${JPN}"
25RDEPENDS_${PN}_class-native = "" 26RDEPENDS:${PN}:class-native = ""
26 27
27do_compile() { 28do_compile() {
28 mkdir -p build 29 mkdir -p build
@@ -39,12 +40,9 @@ do_compile() {
39 fastjar cfm ${JARFILENAME} ${S}/src/manifest -C build . 40 fastjar cfm ${JARFILENAME} ${S}/src/manifest -C build .
40} 41}
41 42
42do_install_append() { 43do_install:append() {
43 install -d ${D}${bindir} 44 install -d ${D}${bindir}
44 45
45 install -m 0755 ${WORKDIR}/rhino ${D}${bindir} 46 install -m 0755 ${WORKDIR}/rhino ${D}${bindir}
46 install -m 0755 ${WORKDIR}/rhino-jsc ${D}${bindir} 47 install -m 0755 ${WORKDIR}/rhino-jsc ${D}${bindir}
47} 48}
48
49SRC_URI[md5sum] = "ad67a3dff135e3a70f0c3528a2d6edf2"
50SRC_URI[sha256sum] = "9eb08f85bbe7c8e0b9eaffb1cf4984b31fb679f3c8a682acc3bb8ac20626c61e"
diff --git a/recipes-core/servlet-api/jsp2.0_5.5.26.bb b/recipes-core/servlet-api/jsp2.0_5.5.26.bb
index 286d6d5..ac8617c 100644
--- a/recipes-core/servlet-api/jsp2.0_5.5.26.bb
+++ b/recipes-core/servlet-api/jsp2.0_5.5.26.bb
@@ -10,7 +10,7 @@ S = "${WORKDIR}/apache-tomcat-${PV}-src/servletapi/jsr152"
10inherit java-library 10inherit java-library
11 11
12DEPENDS = "servlet2.4" 12DEPENDS = "servlet2.4"
13RDEPENDS_${PN} = "libservlet2.4-java" 13RDEPENDS:${PN} = "libservlet2.4-java"
14 14
15# Value of implementation.revision in build.xml 15# Value of implementation.revision in build.xml
16IMPL_REVISION = "public_draft" 16IMPL_REVISION = "public_draft"
diff --git a/recipes-core/xalan-j/xalan-j_2.7.1.bb b/recipes-core/xalan-j/xalan-j_2.7.1.bb
index ad985cb..5e72a34 100644
--- a/recipes-core/xalan-j/xalan-j_2.7.1.bb
+++ b/recipes-core/xalan-j/xalan-j_2.7.1.bb
@@ -13,7 +13,7 @@ DEPENDS = "xerces-j regexp jlex cup jaxp1.3 bcel"
13 13
14SRC_URI = "\ 14SRC_URI = "\
15 http://archive.apache.org/dist/xml/${BPN}/${BPN}_2_7_1-src.tar.gz;name=archive \ 15 http://archive.apache.org/dist/xml/${BPN}/${BPN}_2_7_1-src.tar.gz;name=archive \
16 http://archive.apache.org/dist/jakarta/bsf/source/bsf-src-2.4.0.tar.gz;name=bsf \ 16 https://dlcdn.apache.org/commons/bsf/source/bsf-src-2.4.0.tar.gz;name=bsf \
17 " 17 "
18 18
19S = "${WORKDIR}/${BPN}_2_7_1" 19S = "${WORKDIR}/${BPN}_2_7_1"
@@ -47,14 +47,14 @@ do_compile() {
47 fastjar cf serializer-${PV}.jar -C build-serializer . 47 fastjar cf serializer-${PV}.jar -C build-serializer .
48} 48}
49 49
50do_install_append() { 50do_install:append() {
51 oe_jarinstall serializer-${PV}.jar serializer.jar 51 oe_jarinstall serializer-${PV}.jar serializer.jar
52} 52}
53 53
54 54
55PACKAGES = "libxalan2-serializer-java ${JPN}" 55PACKAGES = "libxalan2-serializer-java ${JPN}"
56 56
57FILES_libxalan2-serializer-java = "${datadir_java}/serializer*.jar" 57FILES:libxalan2-serializer-java = "${datadir_java}/serializer*.jar"
58 58
59SRC_URI[archive.md5sum] = "fc805051f0fe505c7a4b1b5c8db9b9e3" 59SRC_URI[archive.md5sum] = "fc805051f0fe505c7a4b1b5c8db9b9e3"
60SRC_URI[archive.sha256sum] = "fa52aa629bb882335d45d67401d270c3f21b5131aaea005ac0d4590f2ce8b043" 60SRC_URI[archive.sha256sum] = "fa52aa629bb882335d45d67401d270c3f21b5131aaea005ac0d4590f2ce8b043"
diff --git a/recipes-core/xerces-j/xerces-j_2.11.0.bb b/recipes-core/xerces-j/xerces-j_2.11.0.bb
index 98ef32f..45d3c43 100644
--- a/recipes-core/xerces-j/xerces-j_2.11.0.bb
+++ b/recipes-core/xerces-j/xerces-j_2.11.0.bb
@@ -12,7 +12,13 @@ LIC_FILES_CHKSUM = " \
12 file://LICENSE.serializer.txt;md5=d229da563da18fe5d58cd95a6467d584 \ 12 file://LICENSE.serializer.txt;md5=d229da563da18fe5d58cd95a6467d584 \
13 " 13 "
14 14
15SRC_URI = "http://archive.apache.org/dist/xerces/j/Xerces-J-src.${PV}.tar.gz" 15SRC_URI = "http://archive.apache.org/dist/xerces/j/source/Xerces-J-src.${PV}.tar.gz"
16
17# CVE only applies to some Oracle Java SE and Red Hat Enterprise Linux versions.
18# Already fixed with updates and closed.
19# https://access.redhat.com/security/cve/CVE-2018-2799
20# https://bugzilla.redhat.com/show_bug.cgi?id=1567542
21CVE_STATUS[CVE-2018-2799] = "not-applicable-platform: Issue only applies on some Oracle Java SE and Red Hat Enterprise Linux versions"
16 22
17S = "${WORKDIR}/xerces-2_11_0" 23S = "${WORKDIR}/xerces-2_11_0"
18 24
@@ -22,8 +28,8 @@ JPN = "libxerces2-java"
22 28
23DEPENDS = "fastjar-native jaxp1.3 xml-commons-resolver1.1" 29DEPENDS = "fastjar-native jaxp1.3 xml-commons-resolver1.1"
24 30
25RDEPENDS_${PN} = "libjaxp1.3-java libxml-commons-resolver1.1-java" 31RDEPENDS:${PN} = "libjaxp1.3-java libxml-commons-resolver1.1-java"
26RDEPENDS_${PN}_class-native = "" 32RDEPENDS:${PN}:class-native = ""
27 33
28do_unpackpost[dirs] = "${B}" 34do_unpackpost[dirs] = "${B}"
29do_unpackpost() { 35do_unpackpost() {
diff --git a/recipes-core/xml-commons/dom4j_1.6.1.bb b/recipes-core/xml-commons/dom4j_1.6.1.bb
index ee46dfd..0ba3f0e 100644
--- a/recipes-core/xml-commons/dom4j_1.6.1.bb
+++ b/recipes-core/xml-commons/dom4j_1.6.1.bb
@@ -1,6 +1,6 @@
1SUMMARY = "A simple and flexible library for working with XML, XPath and XSLT" 1SUMMARY = "A simple and flexible library for working with XML, XPath and XSLT"
2DESCRIPTION = "dom4j is a simple and flexible Java library for working with XML, XPath and XSLT" 2DESCRIPTION = "dom4j is a simple and flexible Java library for working with XML, XPath and XSLT"
3LICENSE = "BSD" 3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3f752b663f2a821c3b32482fc6aece3c" 4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3f752b663f2a821c3b32482fc6aece3c"
5 5
6HOMEPAGE = "http://dom4j.github.io" 6HOMEPAGE = "http://dom4j.github.io"
diff --git a/recipes-core/xml-commons/jaxen_1.1.6.bb b/recipes-core/xml-commons/jaxen_1.1.6.bb
index 2741f2c..13f5fdc 100644
--- a/recipes-core/xml-commons/jaxen_1.1.6.bb
+++ b/recipes-core/xml-commons/jaxen_1.1.6.bb
@@ -4,7 +4,7 @@ DOM, XOM, dom4j, and JDOM. Is it also possible to write adapters that \
4treat non-XML trees such as compiled Java byte code or Java beans as XML, \ 4treat non-XML trees such as compiled Java byte code or Java beans as XML, \
5thus enabling you to query these trees with XPath too.\ 5thus enabling you to query these trees with XPath too.\
6" 6"
7LICENSE = "BSD" 7LICENSE = "BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a2e66c2e2482aa23c11342f1469fa3b6" 8LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a2e66c2e2482aa23c11342f1469fa3b6"
9 9
10HOMEPAGE = "http://jaxen.org/" 10HOMEPAGE = "http://jaxen.org/"
@@ -15,7 +15,7 @@ DEPENDS = "fastjar-native virtual/javac-native xerces-j xom"
15SRCREV = "7d7755ac8b19daa2ff6f319f432b864cc72d89b6" 15SRCREV = "7d7755ac8b19daa2ff6f319f432b864cc72d89b6"
16 16
17SRC_URI = "\ 17SRC_URI = "\
18 git://github.com/codehaus/${BPN} \ 18 git://github.com/codehaus/${BPN};protocol=https;branch=master \
19 http://www.jdom.org/dist/binary/archive/jdom-1.1.tar.gz;name=jdom \ 19 http://www.jdom.org/dist/binary/archive/jdom-1.1.tar.gz;name=jdom \
20" 20"
21SRC_URI[jdom.md5sum] = "22745cbaaddb12884ed8ee09083d8fe2" 21SRC_URI[jdom.md5sum] = "22745cbaaddb12884ed8ee09083d8fe2"
diff --git a/recipes-core/xml-commons/jaxme_0.5.2.bb b/recipes-core/xml-commons/jaxme_0.5.2.bb
deleted file mode 100644
index b563cc6..0000000
--- a/recipes-core/xml-commons/jaxme_0.5.2.bb
+++ /dev/null
@@ -1,77 +0,0 @@
1SUMMARY = "Implementation of the JAXB API"
2LICENSE = "Apache-2.0"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
4AUTHOR = "Apache Software Foundation"
5HOMEPAGE = "http://ws.apache.org/jaxme"
6
7SRC_URI = "\
8 http://apache.org/dist/ws/jaxme/source/ws-${P}-src.tar.gz;name=archive \
9 http://ftp.hosting-studio.de/pub/linux/apache/ant/source/apache-ant-1.7.1-src.tar.bz2;name=ant \
10 "
11
12# do_compile:
13# 2. ERROR in src/jaxme/org/apache/ws/jaxme/generator/XJCTask.java (at line 30)
14# import org.apache.ws.jaxme.generator.sg.SGFactoryChain;
15# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16# The import org.apache.ws.jaxme.generator.sg.SGFactoryChain cannot be resolved
17# ----------
18# 3. ERROR in src/jaxme/org/apache/ws/jaxme/generator/XJCTask.java (at line 1055)
19# if (!SGFactoryChain.class.isAssignableFrom(c)) {
20# ^^^^^^^^^^^^^^
21# SGFactoryChain cannot be resolved to a type
22# ----------
23# ... and many more
24PNBLACKLIST[jaxme] ?= "BROKEN: do_compile fails"
25
26S = "${WORKDIR}/ws-${P}"
27
28inherit java-library
29
30DEPENDS = "fastjar-native log4j1.2 xerces-j xalan-j commons-codec hsqldb antlr antlr-native"
31
32do_compile() {
33 oe_makeclasspath cp -s log4j-1.2 xercesImpl xalan2 commons-codec hsqldb antlr
34 cp=build-api:build-jaxme:build-js:build-xs:build-pm:$cp
35
36 jaxme_build src/api build-api $cp jaxmeapi-${PV}.jar
37
38 runantlr -o src/js/org/apache/ws/jaxme/js/jparser src/js/org/apache/ws/jaxme/js/jparser/java15.g
39 jaxme_build src/js build-js $cp jaxmejs-${PV}.jar
40
41 jaxme_build src/xs build-xs $cp jaxmexs-${PV}.jar
42
43 jaxme_build src/jaxme build-jaxme $cp ${JARFILENAME}
44
45# jaxme_build src/pm build-pm $cp jaxmepm-${PV}.jar
46}
47
48do_install_append() {
49 oe_jarinstall jaxmeapi-${PV}.jar jaxmeapi.jar
50 oe_jarinstall jaxmejs-${PV}.jar jaxmejs.jar
51 oe_jarinstall jaxmexs-${PV}.jar jaxmexs.jar
52 oe_jarinstall jaxmepm-${PV}.jar jaxmepm.jar
53}
54
55# Compile helper
56# 1 - source dir
57# 2 - dest dir
58# 3 - classpath
59# 4 - jar file name
60jaxme_build() {
61 mkdir -p $2
62
63 ant_sourcepath=${WORKDIR}/apache-ant-1.7.1/src/main
64
65 echo "javac -sourcepath $ant_sourcepath:$1 -cp $3 -d $2 \`find $1 -name "*.java"\`"
66 javac -sourcepath $ant_sourcepath:$1 -cp $3 -d $2 `find $1 -name "*.java" -and -not \( -wholename "*junit*" -or -wholename "*examples*" \) `
67 (cd $1 && find . -name "*.properties" -exec cp {} ${S}/$2/{} \;)
68
69 rm -rf $2/org/apache/tools
70
71 fastjar -C $2 -c -f $4 .
72}
73
74SRC_URI[archive.md5sum] = "084ebfe4a816058f8ff6bd731fa70df4"
75SRC_URI[archive.sha256sum] = "0415d721259acf95c564fb84606bb17f6227c1cc444e89b78d1cd9903c1c88dc"
76SRC_URI[ant.md5sum] = "0d68db4a1ada5c91bcbf53cefd0c2fd7"
77SRC_URI[ant.sha256sum] = "4dc49a7260ef90a6dc6611b7e96b9f047d507589736d4a2ad6efbe3edfc6fba6"
diff --git a/recipes-core/xml-commons/jdom_1.1.3.bb b/recipes-core/xml-commons/jdom_1.1.3.bb
index df9125d..acd2ae1 100644
--- a/recipes-core/xml-commons/jdom_1.1.3.bb
+++ b/recipes-core/xml-commons/jdom_1.1.3.bb
@@ -1,7 +1,7 @@
1SUMMARY = "Parses, manipulates, and outputs XML using standard Java constructs" 1SUMMARY = "Parses, manipulates, and outputs XML using standard Java constructs"
2DESCRIPTION = "JDOM aims to provide a complete, Java-based solution for \ 2DESCRIPTION = "JDOM aims to provide a complete, Java-based solution for \
3accessing, manipulating, and outputting XML data from Java code." 3accessing, manipulating, and outputting XML data from Java code."
4LICENSE = "BSD" 4LICENSE = "BSD-4-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=897c700e4c122d8f4ef8f6d253a6f744" 5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=897c700e4c122d8f4ef8f6d253a6f744"
6 6
7HOMEPAGE = "http://jdom.org/" 7HOMEPAGE = "http://jdom.org/"
diff --git a/recipes-core/xml-commons/xom_1.2.10.bb b/recipes-core/xml-commons/xom_1.2.10.bb
index 8b43c39..9b09e4d 100644
--- a/recipes-core/xml-commons/xom_1.2.10.bb
+++ b/recipes-core/xml-commons/xom_1.2.10.bb
@@ -14,7 +14,7 @@ PV_jaxen = "1.1.6"
14 14
15SRC_URI = "\ 15SRC_URI = "\
16 http://www.cafeconleche.org/XOM/${P}-src.tar.gz;name=archive \ 16 http://www.cafeconleche.org/XOM/${P}-src.tar.gz;name=archive \
17 git://github.com/codehaus/${SRCNAME_jaxen};name=jaxen \ 17 git://github.com/codehaus/${SRCNAME_jaxen};name=jaxen;branch=master;protocol=https \
18 file://04_remove_sun_import.patch \ 18 file://04_remove_sun_import.patch \
19" 19"
20SRC_URI[archive.md5sum] = "9f3a2ae827a9f6826fe76e4b7b0c22b3" 20SRC_URI[archive.md5sum] = "9f3a2ae827a9f6826fe76e4b7b0c22b3"
@@ -36,7 +36,7 @@ do_move_jaxen() {
36 36
37} 37}
38 38
39addtask move_jaxen after do_removebinaries before do_patch 39addtask move_jaxen after do_deletebinaries before do_patch
40 40
41do_compile() { 41do_compile() {
42 mkdir -p build 42 mkdir -p build
diff --git a/recipes-core/xml-commons/xpp2_2.1.10.bb b/recipes-core/xml-commons/xpp2_2.1.10.bb
index 6fc81a2..a76cc4e 100644
--- a/recipes-core/xml-commons/xpp2_2.1.10.bb
+++ b/recipes-core/xml-commons/xpp2_2.1.10.bb
@@ -1,5 +1,5 @@
1SUMMARY = "Streaming pull XML parser for java" 1SUMMARY = "Streaming pull XML parser for java"
2LICENSE = "BSD-like" 2LICENSE = "BSD-4-Clause"
3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d40c660a53e36a103a35c170d38d0ef6" 3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d40c660a53e36a103a35c170d38d0ef6"
4HOMEPAGE = "http://www.extreme.indiana.edu/xgws/xsoap/xpp/" 4HOMEPAGE = "http://www.extreme.indiana.edu/xgws/xsoap/xpp/"
5 5
diff --git a/recipes-core/xml-commons/xpp3_1.1.3.4.O.bb b/recipes-core/xml-commons/xpp3_1.1.3.4.O.bb
index 1f02cb7..09ef1f1 100644
--- a/recipes-core/xml-commons/xpp3_1.1.3.4.O.bb
+++ b/recipes-core/xml-commons/xpp3_1.1.3.4.O.bb
@@ -1,5 +1,5 @@
1SUMMARY = "Streaming pull XML parser for Java (3rd edition)" 1SUMMARY = "Streaming pull XML parser for Java (3rd edition)"
2LICENSE = "BSD-like" 2LICENSE = "BSD-4-Clause"
3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=35235e1ea47db355da0627f8d93e3a6c" 3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=35235e1ea47db355da0627f8d93e3a6c"
4 4
5HOMEPAGE = "http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1" 5HOMEPAGE = "http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1"
@@ -39,11 +39,11 @@ do_compile() {
39 fastjar -C build-xpath -c -f xpp3-xpath-${PV}.jar . 39 fastjar -C build-xpath -c -f xpp3-xpath-${PV}.jar .
40} 40}
41 41
42do_install_append() { 42do_install:append() {
43 oe_jarinstall xpp3-xpath-${PV}.jar xpp3-xpath.jar 43 oe_jarinstall xpp3-xpath-${PV}.jar xpp3-xpath.jar
44} 44}
45 45
46FILES_libxpp3-xpath-java = "${datadir}/java/xpp3-xpath*" 46FILES:libxpp3-xpath-java = "${datadir}/java/xpp3-xpath*"
47 47
48 48
49SRC_URI[md5sum] = "e1b6aeaad1cd06e64568aae1a507d5c6" 49SRC_URI[md5sum] = "e1b6aeaad1cd06e64568aae1a507d5c6"
diff --git a/recipes-extended/dbus/dbus-java_2.7.bb b/recipes-extended/dbus/dbus-java_2.7.bb
index dfd2ff1..0e5ae92 100644
--- a/recipes-extended/dbus/dbus-java_2.7.bb
+++ b/recipes-extended/dbus/dbus-java_2.7.bb
@@ -1,15 +1,15 @@
1SUMMARY = "A pure Java D-Bus Implementation" 1SUMMARY = "A pure Java D-Bus Implementation"
2SUMMARY_${PN}-viewer = "${SUMMARY} (DBusViewer Binary)" 2SUMMARY:${PN}-viewer = "${SUMMARY} (DBusViewer Binary)"
3SUMMARY_${PN}-bin = "${SUMMARY} (Binaries)" 3SUMMARY:${PN}-bin = "${SUMMARY} (Binaries)"
4AUTHOR = "Matthew Johnson <dbus@matthew.ath.cx>" 4AUTHOR = "Matthew Johnson <dbus@matthew.ath.cx>"
5HOMEPAGE = "http://dbus.freedesktop.org/doc/dbus-java" 5HOMEPAGE = "http://dbus.freedesktop.org/doc/dbus-java"
6SECTION = "libs" 6SECTION = "libs"
7LICENSE = "LGPL-2.1 & AFL-2.1" 7LICENSE = "LGPL-2.1 & AFL-2.1"
8 8
9DEPENDS = "libmatthew gettext-native fastjar-native" 9DEPENDS = "libmatthew gettext-native fastjar-native"
10RDEPENDS_${PN}-viewer = "java2-runtime libunixsocket-java ${PN}-bin libmatthew-debug-java ${JPN}" 10RDEPENDS:${PN}-viewer = "java2-runtime libunixsocket-java ${PN}-bin libmatthew-debug-java ${JPN}"
11RDEPENDS_${PN}-bin = "java2-runtime libunixsocket-java libmatthew-debug-java ${JPN}" 11RDEPENDS:${PN}-bin = "java2-runtime libunixsocket-java libmatthew-debug-java ${JPN}"
12RSUGGESTS_${JPN} = "libunixsocket-java" 12RSUGGESTS:${JPN} = "libunixsocket-java"
13 13
14PR = "r1" 14PR = "r1"
15 15
@@ -25,6 +25,8 @@ S = "${WORKDIR}/dbus-java-${PV}"
25 25
26inherit java-library 26inherit java-library
27 27
28include recipes-core/classpath/classpath-features-check.inc
29
28# jamvm-native unfortunately contains non-generificed java/lang/reflect classes 30# jamvm-native unfortunately contains non-generificed java/lang/reflect classes
29# which are accessed in this package. Work around this by setting the bootclasspath 31# which are accessed in this package. Work around this by setting the bootclasspath
30# explicitly. 32# explicitly.
@@ -73,5 +75,5 @@ do_install () {
73# and dbus-bin*.jar 75# and dbus-bin*.jar
74PACKAGES = "${PN}-viewer ${PN}-bin ${JPN}" 76PACKAGES = "${PN}-viewer ${PN}-bin ${JPN}"
75 77
76FILES_${PN}-viewer = "${datadir}/java/dbus-java-viewer*.jar ${bindir}/DBusViewer" 78FILES:${PN}-viewer = "${datadir}/java/dbus-java-viewer*.jar ${bindir}/DBusViewer"
77FILES_${PN}-bin = "${datadir}/java/dbus-java-bin*.jar ${bindir}" 79FILES:${PN}-bin = "${datadir}/java/dbus-java-bin*.jar ${bindir}"
diff --git a/recipes-extended/rxtx/rxtx_2.2.0.bb b/recipes-extended/rxtx/rxtx_2.2.0.bb
index 87d84a8..27935bc 100644
--- a/recipes-extended/rxtx/rxtx_2.2.0.bb
+++ b/recipes-extended/rxtx/rxtx_2.2.0.bb
@@ -27,7 +27,7 @@ SRC_URI[sha256sum] = "3c30373e760f444def3650c76c5a00ae12fb1d860ec008750d084f4880
27 27
28S = "${WORKDIR}/rxtx-2.2pre2" 28S = "${WORKDIR}/rxtx-2.2pre2"
29 29
30INSANE_SKIP_${JPN} += "dev-so" 30INSANE_SKIP:${JPN} += "dev-so"
31 31
32PACKAGE_ARCH = "${TUNE_PKGARCH}" 32PACKAGE_ARCH = "${TUNE_PKGARCH}"
33inherit autotools-brokensep java-library remove-libtool 33inherit autotools-brokensep java-library remove-libtool
@@ -36,7 +36,7 @@ JARFILENAME = "RXTXcomm.jar"
36EXTRA_OEMAKE += "RXTX_PATH=${D}${libdir_jni} \ 36EXTRA_OEMAKE += "RXTX_PATH=${D}${libdir_jni} \
37 JHOME=${D}${datadir_java}/ext" 37 JHOME=${D}${datadir_java}/ext"
38 38
39do_configure_prepend() { 39do_configure:prepend() {
40 # Ugly but don't complain to me, but upstream ;-) 40 # Ugly but don't complain to me, but upstream ;-)
41 sed -e 's,bin/javah,bin/gjavah,g' \ 41 sed -e 's,bin/javah,bin/gjavah,g' \
42 -e 's,bin/jar,bin/fastjar,g' \ 42 -e 's,bin/jar,bin/fastjar,g' \
@@ -47,16 +47,16 @@ do_configure_prepend() {
47 ${S}/ltmain.sh 47 ${S}/ltmain.sh
48} 48}
49 49
50do_install_prepend() { 50do_install:prepend() {
51 install -d ${D}${libdir_jni} 51 install -d ${D}${libdir_jni}
52 install -d ${D}${datadir_java}/ext 52 install -d ${D}${datadir_java}/ext
53} 53}
54 54
55PACKAGES_remove = "${PN}" 55PACKAGES:remove = "${PN}"
56 56
57FILES_${JPN} += "${libdir_jni}" 57FILES:${JPN} += "${libdir_jni}"
58RPROVIDES_${JPN} = "${PN}" 58RPROVIDES:${JPN} = "${PN}"
59RCONFLICTS_${JPN} = "${PN}" 59RCONFLICTS:${JPN} = "${PN}"
60RREPLACES_${JPN} = "${PN}" 60RREPLACES:${JPN} = "${PN}"
61 61
62FILES_${PN}-dbg += "${libdir_jni}/.debug" 62FILES:${PN}-dbg += "${libdir_jni}/.debug"
diff --git a/recipes-images/images/openjdk-7-test-image.bb b/recipes-images/images/openjdk-7-test-image.bb
index 1e6d734..4251da3 100644
--- a/recipes-images/images/openjdk-7-test-image.bb
+++ b/recipes-images/images/openjdk-7-test-image.bb
@@ -1,3 +1,3 @@
1IMAGE_INSTALL_append = " openjdk-7-jdk " 1IMAGE_INSTALL:append = " openjdk-7-jdk "
2 2
3inherit openjdk-test-image 3inherit openjdk-test-image
diff --git a/recipes-images/images/openjdk-8-test-image.bb b/recipes-images/images/openjdk-8-test-image.bb
index d2eb040..3216040 100644
--- a/recipes-images/images/openjdk-8-test-image.bb
+++ b/recipes-images/images/openjdk-8-test-image.bb
@@ -1,3 +1,3 @@
1IMAGE_INSTALL_append = " openjdk-8 " 1IMAGE_INSTALL:append = " openjdk-8 "
2 2
3inherit openjdk-test-image 3inherit openjdk-test-image
diff --git a/recipes-images/images/openjre-7-test-image.bb b/recipes-images/images/openjre-7-test-image.bb
index 2616255..ced320b 100644
--- a/recipes-images/images/openjre-7-test-image.bb
+++ b/recipes-images/images/openjre-7-test-image.bb
@@ -1,3 +1,3 @@
1IMAGE_INSTALL_append = " openjdk-7-jre " 1IMAGE_INSTALL:append = " openjdk-7-jre "
2 2
3inherit openjre-test-image 3inherit openjre-test-image
diff --git a/recipes-images/images/openjre-8-test-image.bb b/recipes-images/images/openjre-8-test-image.bb
index e722ec3..f95098b 100644
--- a/recipes-images/images/openjre-8-test-image.bb
+++ b/recipes-images/images/openjre-8-test-image.bb
@@ -1,3 +1,3 @@
1IMAGE_INSTALL_append = " openjre-8 " 1IMAGE_INSTALL:append = " openjre-8 "
2 2
3inherit openjre-test-image 3inherit openjre-test-image