summaryrefslogtreecommitdiffstats
path: root/recipes-core/openjdk
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/openjdk')
-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
55 files changed, 831 insertions, 721 deletions
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 {