Compare commits
31 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e33a08b72f | |||
| 2759521b66 | |||
| 6a70ac3b5d | |||
| c656517cde | |||
| 7caa5a4ef5 | |||
| 40e5df314d | |||
| 6f4ad658ad | |||
| 9cd080ccfc | |||
| 5dc0f1d4ac | |||
| 923791cb62 | |||
| 09a2d667d4 | |||
| 2e56e5aabd | |||
| 8c49e2f3f5 | |||
| 8c582addbe | |||
| 44e8db8e74 | |||
| fa22f96744 | |||
| 8858ab87f6 | |||
| 1079f0820f | |||
| ce74df3561 | |||
| aed5c354ff | |||
| 360b34a185 | |||
| c04428218b | |||
| 87cb3da040 | |||
| e293c1ed7e | |||
| aa034f837e | |||
| ae5afcc7fb | |||
| 086d383a44 | |||
| e536cf5ef2 | |||
| 385e5d5000 | |||
| 024658e184 | |||
| d241bc6a47 |
3
14b3b2de26cdbab340416bc6b5d367b6ceb11df0.zip
Normal file
3
14b3b2de26cdbab340416bc6b5d367b6ceb11df0.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:450fc6bca89f409dce47b24158dc02334ecef4838a2d119832e15346a3c80f04
|
||||
size 29832906
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:38371f6ef59ba89f89135dd5579d0952cc4d28adb452c25c194a248da70dc5fc
|
||||
size 29265781
|
||||
3
7a630fb0f55f4f1b8168d2544ebc37f4c8e33fe9.zip
Normal file
3
7a630fb0f55f4f1b8168d2544ebc37f4c8e33fe9.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e967b94f2f1ef2a5c911bbeb15d521ed05cdf7706d605b831db420028ab9783d
|
||||
size 179125144
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ea30bd4711be3b7e1dacfbb2a6fc3b9bf6ead7aaafb6b238a56440dfc5fbbdc4
|
||||
size 177008851
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:31b067d16c7c9538d99db1fb9aee79d0e208a0173f1c5deb93aaaf96e66c5cca
|
||||
size 11172351
|
||||
3
d4c7e3040fb85d68216d7e422014bcf02acf3df5.zip
Normal file
3
d4c7e3040fb85d68216d7e422014bcf02acf3df5.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:480dba1fbdcd243b78b64c99e80df1660ab09736b9a4316a4ddc9e585d5db4c4
|
||||
size 11227637
|
||||
@@ -1 +0,0 @@
|
||||
addFilter("executable-stack")
|
||||
@@ -1,3 +1,109 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 31 08:05:55 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to OpenJDK 21.0.9 with OpenJ9 0.56.0 virtual machine
|
||||
- Including Oracle October 2025 CPU changes
|
||||
* CVE-2025-53057 (bsc#1252414), CVE-2025-53066 (bsc#1252417),
|
||||
CVE-2025-61748 (bsc#1252418)
|
||||
* OpenJ9 changes, see
|
||||
https://www.eclipse.org/openj9/docs/version0.56/
|
||||
- Removed patches:
|
||||
* omr-libdwarf-2.patch
|
||||
* bootcycle.patch
|
||||
+ fixed in this version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 24 07:27:32 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Added patch:
|
||||
* omr-libdwarf-2.patch
|
||||
+ fix build with libdwarf 2.x where the includes are in
|
||||
libdwarf-2 subdirectory
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 26 20:58:33 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to OpenJDK 21.0.8 with OpenJ9 0.53.0 virtual machine
|
||||
- Including Oracle July 2025 CPU changes
|
||||
* CVE-2025-30749 (bsc#1246595), CVE-2025-30754 (bsc#1246598),
|
||||
CVE-2025-50059 (bsc#1246575), CVE-2025-50106 (bsc#1246584)
|
||||
* OpenJ9 changes, see
|
||||
https://www.eclipse.org/openj9/docs/version0.53/
|
||||
- Removed patches:
|
||||
* fix-build-with-gcc15.patch
|
||||
* libdwarf-fix.patch
|
||||
* openj9-noexecstack.patch
|
||||
* stringop-overflow.patch
|
||||
+ fixed in this version
|
||||
- Modified patches:
|
||||
* openj9-nogit.patch.in
|
||||
* openssl-OSSL_LIB_CTX.patch
|
||||
+ rediff to changed context
|
||||
- Added patch:
|
||||
* bootcycle.patch
|
||||
+ fix bootcycle-images target
|
||||
- Enable bootcycle build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 21 10:59:48 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Do not embed rebuild counter (bsc#1246806)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 17 15:58:52 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Add -std=gnu99 to CFLAGS to fix gcc15 compile time error. Since
|
||||
the C++ part is on -std=gnu++98, this is the closest.
|
||||
- Added patch:
|
||||
* fix-build-with-gcc15.patch
|
||||
+ fix a typo in omr that is fatal with gcc15
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 9 19:45:38 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to OpenJDK 21.0.7 with OpenJ9 0.51.0 virtual machine
|
||||
- Including Oracle April 2025 CPU changes
|
||||
* CVE-2025-21587 (bsc#1241274), CVE-2025-30691 (bsc#1241275),
|
||||
CVE-2025-30698 (bsc#1241276)
|
||||
* OpenJ9 changes, see
|
||||
https://www.eclipse.org/openj9/docs/version0.51/
|
||||
- Removed patch:
|
||||
* openj9-nasm-noexecstack.patch
|
||||
+ chosing a better upstream solution
|
||||
- Added patch:
|
||||
* openj9-noexecstack.patch
|
||||
+ better upstream solution to the previous fix
|
||||
- Modified patch:
|
||||
* openssl-OSSL_LIB_CTX.patch
|
||||
+ rediff
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 7 07:26:39 UTC 2025 - Simon Lees <sflees@suse.de>
|
||||
|
||||
- export CMAKE_POLICY_VERSION_MINIMUM="3.5" to ignore cmakes
|
||||
minimum version warnings
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 18 17:33:58 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Added patch:
|
||||
* openj9-nasm-noexecstack.patch
|
||||
+ fix wrong execstack flag in libj9jit (bsc#1235844)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 7 17:43:25 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to OpenJDK 21.0.6 with OpenJ9 0.49.0 virtual machine
|
||||
- Including Oracle October 2024 and January 2025 CPU changes
|
||||
* CVE-2024-21208 (bsc#1231702), CVE-2024-21210 (bsc#1231711),
|
||||
CVE-2024-21217 (bsc#1231716), CVE-2024-21235 (bsc#1231719),
|
||||
CVE-2025-21502 (bsc#1236278)
|
||||
* OpenJ9 changes, see
|
||||
https://www.eclipse.org/openj9/docs/version0.49/
|
||||
- Added patch:
|
||||
* openssl-OSSL_LIB_CTX.patch
|
||||
+ allow building with openssl < 3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 6 08:29:52 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package java-21-openj9
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -31,18 +31,18 @@
|
||||
# Standard JPackage naming and versioning defines.
|
||||
%global featurever 21
|
||||
%global interimver 0
|
||||
%global updatever 4
|
||||
%global buildver 7
|
||||
%global updatever 9
|
||||
%global buildver 10
|
||||
%global root_repository https://github.com/ibmruntimes/openj9-openjdk-jdk21/archive
|
||||
%global root_revision 7d844187b25a8dbb9cf527a7aa7d5c5c29f1e33c
|
||||
%global root_branch v0.46.0-release
|
||||
%global root_revision 7a630fb0f55f4f1b8168d2544ebc37f4c8e33fe9
|
||||
%global root_branch v0.56.0-release
|
||||
%global omr_repository https://github.com/eclipse/openj9-omr/archive
|
||||
%global omr_revision 840a9adba4548aa546e36c97a1150b7306a7e07b
|
||||
%global omr_branch v0.46.0-release
|
||||
%global omr_revision d4c7e3040fb85d68216d7e422014bcf02acf3df5
|
||||
%global omr_branch v0.56.0-release
|
||||
%global openj9_repository https://github.com/eclipse/openj9/archive
|
||||
%global openj9_revision 1a6f6128aa2f639de1e33cae77a31f474ba6b1a9
|
||||
%global openj9_branch v0.46.0-release
|
||||
%global openj9_tag openj9-0.46.0
|
||||
%global openj9_revision 14b3b2de26cdbab340416bc6b5d367b6ceb11df0
|
||||
%global openj9_branch v0.56.0-release
|
||||
%global openj9_tag openj9-0.56.0
|
||||
# priority must be 6 digits in total
|
||||
%if 0%{?suse_version} > 1500 || 0%{?java_bootstrap}
|
||||
%global priority 3101
|
||||
@@ -63,12 +63,13 @@
|
||||
%global cacerts %{_jvmdir}/%{sdkdir}/lib/security/cacerts
|
||||
# real file made by update-ca-certificates
|
||||
%global javacacerts %{_var}/lib/ca-certificates/java-cacerts
|
||||
%global bootcycle 0
|
||||
%global bootcycle 1
|
||||
%if %{debug}
|
||||
%global debugbuild slowdebug
|
||||
%else
|
||||
%global debugbuild release
|
||||
%endif
|
||||
%global docsdir build/%{debugbuild}/images
|
||||
%if %{bootcycle}
|
||||
%global imagesdir build/%{debugbuild}/bootcycle-build/images
|
||||
%global imagestarget bootcycle-images
|
||||
@@ -85,6 +86,9 @@
|
||||
%else
|
||||
%global package_version %{featurever}.%{interimver}.%{updatever}.%{?patchver:%{patchver}}%{!?patchver:0}~%{buildver}
|
||||
%endif
|
||||
%if 0%{?gcc_version} < 7
|
||||
%define with_gcc 7
|
||||
%endif
|
||||
Name: java-%{featurever}-openj9
|
||||
Version: %{package_version}
|
||||
Release: 0
|
||||
@@ -103,31 +107,27 @@ Source14: TestCryptoLevel.java
|
||||
# Ensure ECDSA is working
|
||||
Source15: TestECDSA.java
|
||||
Source100: openj9-nogit.patch.in
|
||||
Source1000: %{name}-rpmlintrc
|
||||
# Restrict access to java-atk-wrapper classes
|
||||
Patch3: java-atk-wrapper-security.patch
|
||||
# Allow building with newer libdwarf
|
||||
Patch4: libdwarf-fix.patch
|
||||
Patch1: java-atk-wrapper-security.patch
|
||||
# Allow multiple initialization of PKCS11 libraries
|
||||
Patch5: multiple-pkcs11-library-init.patch
|
||||
Patch2: multiple-pkcs11-library-init.patch
|
||||
# Fix build with older openssl
|
||||
Patch7: openj9-openssl.patch
|
||||
Patch3: openssl-OSSL_LIB_CTX.patch
|
||||
Patch4: openj9-openssl.patch
|
||||
# Fix: implicit-pointer-decl
|
||||
Patch13: implicit-pointer-decl.patch
|
||||
Patch5: implicit-pointer-decl.patch
|
||||
#
|
||||
Patch15: system-pcsclite.patch
|
||||
Patch10: system-pcsclite.patch
|
||||
#
|
||||
Patch20: loadAssistiveTechnologies.patch
|
||||
#
|
||||
Patch31: aarch64.patch
|
||||
Patch30: aarch64.patch
|
||||
#
|
||||
Patch32: stringop-overflow.patch
|
||||
#
|
||||
Patch33: reproducible-version.patch
|
||||
Patch31: reproducible-version.patch
|
||||
#
|
||||
# OpenJDK specific patches
|
||||
#
|
||||
Patch302: disable-doclint-by-default.patch
|
||||
Patch300: disable-doclint-by-default.patch
|
||||
#
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: autoconf
|
||||
@@ -140,6 +140,8 @@ BuildRequires: desktop-file-utils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: fontconfig-devel
|
||||
BuildRequires: freetype2-devel
|
||||
BuildRequires: gcc%{?with_gcc}
|
||||
BuildRequires: gcc%{?with_gcc}-c++
|
||||
BuildRequires: giflib-devel
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: java-ca-certificates
|
||||
@@ -215,13 +217,6 @@ Provides: jre1.7.x
|
||||
Provides: jre1.8.x
|
||||
Provides: jre1.9.x
|
||||
%endif
|
||||
%if 0%{?suse_version} < 1500
|
||||
BuildRequires: gcc7
|
||||
BuildRequires: gcc7-c++
|
||||
%else
|
||||
BuildRequires: gcc >= 7
|
||||
BuildRequires: gcc-c++ >= 7
|
||||
%endif
|
||||
%if %{with_system_harfbuzz}
|
||||
BuildRequires: harfbuzz-devel
|
||||
%endif
|
||||
@@ -346,7 +341,7 @@ Provides: java-javadoc = %{version}-%{release}
|
||||
The OpenJDK %{featurever} API documentation.
|
||||
|
||||
%prep
|
||||
%setup -q -n openj9-openjdk-jdk21-%{root_revision} -a 1 -a 2
|
||||
%setup -q -n openj9-openjdk-jdk%{featurever}-%{root_revision} -a 1 -a 2
|
||||
|
||||
# Set up the build tree using the subrepository tarballs
|
||||
pwd
|
||||
@@ -363,23 +358,22 @@ rm -rvf src/java.desktop/share/native/libsplashscreen/giflib
|
||||
rm -rvf src/java.desktop/share/native/liblcms/cms*
|
||||
rm -rvf src/java.desktop/share/native/liblcms/lcms2*
|
||||
|
||||
%patch -P 1 -p1
|
||||
%patch -P 2 -p1
|
||||
%patch -P 3 -p1
|
||||
%patch -P 4 -p1
|
||||
%patch -P 5 -p1
|
||||
%patch -P 7 -p1
|
||||
%patch -P 13 -p1
|
||||
|
||||
%if %{with_system_pcsc}
|
||||
%patch -P 15 -p1
|
||||
%patch -P 10 -p1
|
||||
%endif
|
||||
|
||||
%patch -P 20 -p1
|
||||
|
||||
%patch -P 30 -p1
|
||||
%patch -P 31 -p1
|
||||
%patch -P 32 -p1
|
||||
%patch -P 33 -p1
|
||||
|
||||
%patch -P 302 -p1
|
||||
%patch -P 300 -p1
|
||||
|
||||
cat %{SOURCE100} \
|
||||
| sed "s/@OPENJ9_SHA@/`expr substr '%{openj9_revision}' 1 7`/g" \
|
||||
@@ -401,8 +395,11 @@ done
|
||||
|
||||
%build
|
||||
export ARCH_DATA_MODEL=64
|
||||
# Remove cmake4 error due to not setting
|
||||
# min cmake version - sflees@suse.de
|
||||
export CMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||
|
||||
EXTRA_CFLAGS="-Wno-error -Wno-maybe-uninitialized -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||
EXTRA_CFLAGS="-Wno-error -Wno-maybe-uninitialized -std=gnu99 -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||
EXTRA_CPP_FLAGS="-Wno-error -Wno-maybe-uninitialized -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||
|
||||
%ifarch ppc64le
|
||||
@@ -410,18 +407,21 @@ EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
|
||||
%endif
|
||||
|
||||
bash configure \
|
||||
%if 0%{?suse_version} < 1500
|
||||
CPP=cpp-7 \
|
||||
CXX=g++-7 \
|
||||
CC=gcc-7 \
|
||||
NM=gcc-nm-7 \
|
||||
%if 0%{?with_gcc}
|
||||
CPP=cpp-%{with_gcc} \
|
||||
CXX=g++-%{with_gcc} \
|
||||
CC=gcc-%{with_gcc} \
|
||||
NM=gcc-nm-%{with_gcc} \
|
||||
%endif
|
||||
--with-extra-cflags="$EXTRA_CFLAGS" \
|
||||
--with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
|
||||
--with-version-pre="" \
|
||||
--with-version-opt="suse-%{release}-%{_arch}" \
|
||||
--with-version-opt="suse-0%{?suse_version}-%{_arch}" \
|
||||
--disable-warnings-as-errors \
|
||||
--disable-warnings-as-errors-omr \
|
||||
--disable-warnings-as-errors-openj9 \
|
||||
--disable-keep-packaged-modules \
|
||||
--enable-jfr \
|
||||
--with-debug-level=%{debugbuild} \
|
||||
--with-conf-name=%{debugbuild} \
|
||||
--with-libjpeg=system \
|
||||
@@ -520,6 +520,10 @@ pushd %{imagesdir}
|
||||
# Install jmods
|
||||
cp -a jmods %{buildroot}%{_jvmdir}/%{sdkdir}
|
||||
|
||||
popd
|
||||
|
||||
pushd %{docsdir}
|
||||
|
||||
# Install Javadoc documentation.
|
||||
install -d -m 755 %{buildroot}%{_javadocdir}
|
||||
cp -a docs %{buildroot}%{_javadocdir}/%{sdklnk}
|
||||
@@ -751,6 +755,7 @@ fi
|
||||
%dir %{_jvmdir}/%{sdkdir}/lib/desktop
|
||||
%dir %{_jvmdir}/%{sdkdir}/lib/security
|
||||
%dir %{_jvmdir}/%{sdkdir}/lib/j9vm
|
||||
%dir %{_jvmdir}/%{sdkdir}/lib/jfr
|
||||
%dir %{_jvmdir}/%{sdkdir}/conf
|
||||
%dir %{_jvmdir}/%{sdkdir}/conf/security
|
||||
%dir %{_jvmdir}/%{sdkdir}/conf/security/policy
|
||||
@@ -763,6 +768,7 @@ fi
|
||||
|
||||
%{_jvmdir}/%{sdkdir}/release
|
||||
%{_jvmdir}/%{sdkdir}/bin/java
|
||||
%{_jvmdir}/%{sdkdir}/bin/jfr
|
||||
%{_jvmdir}/%{sdkdir}/bin/jitserver
|
||||
%{_jvmdir}/%{sdkdir}/bin/keytool
|
||||
%{_jvmdir}/%{sdkdir}/bin/rmiregistry
|
||||
@@ -814,6 +820,8 @@ fi
|
||||
%{_jvmdir}/%{sdkdir}/lib/desktop/jconsole.desktop
|
||||
%{_jvmdir}/%{sdkdir}/lib/java*.properties
|
||||
%{_jvmdir}/%{sdkdir}/lib/jexec
|
||||
%{_jvmdir}/%{sdkdir}/lib/jfr/default.jfc
|
||||
%{_jvmdir}/%{sdkdir}/lib/jfr/profile.jfc
|
||||
%{_jvmdir}/%{sdkdir}/lib/jrt-fs.jar
|
||||
%{_jvmdir}/%{sdkdir}/lib/jspawnhelper
|
||||
%{_jvmdir}/%{sdkdir}/lib/jvm.cfg
|
||||
@@ -851,11 +859,13 @@ fi
|
||||
%{_jvmdir}/%{sdkdir}/lib/libsyslookup.so
|
||||
%{_jvmdir}/%{sdkdir}/lib/libverify.so
|
||||
%{_jvmdir}/%{sdkdir}/lib/libzip.so
|
||||
%{_jvmdir}/%{sdkdir}/lib/metadata.blob
|
||||
%{_jvmdir}/%{sdkdir}/lib/modules
|
||||
#%{_jvmdir}/%{sdkdir}/lib/openj9-notices.html
|
||||
%{_jvmdir}/%{sdkdir}/lib/options.default
|
||||
%{_jvmdir}/%{sdkdir}/lib/psfontj2d.properties
|
||||
%{_jvmdir}/%{sdkdir}/lib/psfont.properties.ja
|
||||
%{_jvmdir}/%{sdkdir}/lib/schema.xsd
|
||||
%{_jvmdir}/%{sdkdir}/lib/tzdb.dat
|
||||
%{_jvmdir}/%{sdkdir}/lib/*/libjsig.so
|
||||
%{_jvmdir}/%{sdkdir}/lib/*/libjvm.so
|
||||
@@ -865,6 +875,7 @@ fi
|
||||
%{_jvmdir}/%{sdkdir}/lib/security/public_suffix_list.dat
|
||||
|
||||
%{_mandir}/man1/java-%{sdklnk}.1%{?ext_man}
|
||||
%{_mandir}/man1/jfr-%{sdklnk}.1%{?ext_man}
|
||||
%{_mandir}/man1/keytool-%{sdklnk}.1%{?ext_man}
|
||||
%{_mandir}/man1/rmiregistry-%{sdklnk}.1%{?ext_man}
|
||||
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
--- a/omr/ddr/lib/ddr-scanner/dwarf/DwarfScanner.cpp
|
||||
+++ b/omr/ddr/lib/ddr-scanner/dwarf/DwarfScanner.cpp
|
||||
@@ -1497,6 +1497,13 @@ DwarfScanner::traverse_cu_in_debug_section(Symbol_IR *ir)
|
||||
Dwarf_Half addressSize = 0;
|
||||
Dwarf_Unsigned nextCUheader = 0;
|
||||
Dwarf_Error error = NULL;
|
||||
+#ifdef DW_LIBDWARF_VERSION_MAJOR
|
||||
+ Dwarf_Half lengthSize = 0;
|
||||
+ Dwarf_Half extensionSize = 0;
|
||||
+ Dwarf_Sig8 typeSignature;
|
||||
+ Dwarf_Unsigned typeOffset = 0;
|
||||
+ Dwarf_Half nextCUheaderType = 0;
|
||||
+#endif
|
||||
|
||||
/* Go over each cu header. */
|
||||
while (DDR_RC_OK == rc) {
|
||||
@@ -1504,7 +1511,11 @@ DwarfScanner::traverse_cu_in_debug_section(Symbol_IR *ir)
|
||||
_typeOffsetMap.clear();
|
||||
_ir = &newIR;
|
||||
|
||||
+#ifdef DW_LIBDWARF_VERSION_MAJOR
|
||||
+ int ret = dwarf_next_cu_header_d(_debug, true, &cuHeaderLength, &versionStamp, &abbrevOffset, &addressSize, &lengthSize, &extensionSize, &typeSignature, &typeOffset, &nextCUheader, &nextCUheaderType, &error);
|
||||
+#else
|
||||
int ret = dwarf_next_cu_header(_debug, &cuHeaderLength, &versionStamp, &abbrevOffset, &addressSize, &nextCUheader, &error);
|
||||
+#endif
|
||||
if (DW_DLV_ERROR == ret) {
|
||||
ERRMSG("Failed to get next dwarf CU header.");
|
||||
rc = DDR_RC_ERROR;
|
||||
@@ -1518,7 +1529,11 @@ DwarfScanner::traverse_cu_in_debug_section(Symbol_IR *ir)
|
||||
Dwarf_Die childDie = NULL;
|
||||
|
||||
/* Expect the CU to have a single sibling - a DIE */
|
||||
+#ifdef DW_LIBDWARF_VERSION_MAJOR
|
||||
+ if (DW_DLV_ERROR == dwarf_siblingof_b(_debug, NULL, true, &cuDie, &error)) {
|
||||
+#else
|
||||
if (DW_DLV_ERROR == dwarf_siblingof(_debug, NULL, &cuDie, &error)) {
|
||||
+#endif
|
||||
ERRMSG("Getting sibling of CU: %s\n", dwarf_errmsg(error));
|
||||
rc = DDR_RC_ERROR;
|
||||
break;
|
||||
@@ -1617,12 +1632,20 @@ DwarfScanner::scanFile(OMRPortLibrary *portLibrary, Symbol_IR *ir, const char *f
|
||||
}
|
||||
|
||||
if (DDR_RC_OK == rc) {
|
||||
+#ifdef DW_LIBDWARF_VERSION_MAJOR
|
||||
+ unsigned int groupNumber = DW_GROUPNUMBER_ANY;
|
||||
+#else
|
||||
Dwarf_Unsigned access = DW_DLC_READ;
|
||||
+#endif
|
||||
Dwarf_Handler errhand = 0;
|
||||
Dwarf_Ptr errarg = NULL;
|
||||
intptr_t native_fd = omrfile_convert_omrfile_fd_to_native_fd(fd);
|
||||
DwarfScanner::scanFileName = filepath;
|
||||
+#ifdef DW_LIBDWARF_VERSION_MAJOR
|
||||
+ res = dwarf_init_b((int)native_fd, groupNumber, errhand, errarg, &_debug, &error);
|
||||
+#else
|
||||
res = dwarf_init((int)native_fd, access, errhand, errarg, &_debug, &error);
|
||||
+#endif
|
||||
if (DW_DLV_OK != res) {
|
||||
ERRMSG("Failed to initialize libDwarf scanning %s: %s\nExiting...\n", filepath, dwarf_errmsg(error));
|
||||
if (NULL != error) {
|
||||
@@ -1640,7 +1663,11 @@ DwarfScanner::scanFile(OMRPortLibrary *portLibrary, Symbol_IR *ir, const char *f
|
||||
|
||||
DEBUGPRINTF("Unloading libDwarf");
|
||||
|
||||
+#ifdef DW_LIBDWARF_VERSION_MAJOR
|
||||
+ res = dwarf_finish(_debug);
|
||||
+#else
|
||||
res = dwarf_finish(_debug, &error);
|
||||
+#endif
|
||||
if (DW_DLV_OK != res) {
|
||||
ERRMSG("Failed to Unload libDwarf: %s\nExiting...\n", dwarf_errmsg(error));
|
||||
if (NULL != error) {
|
||||
@@ -1681,7 +1708,11 @@ DwarfScanner::getNextSibling(Dwarf_Die *die)
|
||||
Dwarf_Error err = NULL;
|
||||
|
||||
/* Get the next sibling and free the previous one if successful. */
|
||||
+#ifdef DW_LIBDWARF_VERSION_MAJOR
|
||||
+ int ret = dwarf_siblingof_b(_debug, *die, true, &nextSibling, &err);
|
||||
+#else
|
||||
int ret = dwarf_siblingof(_debug, *die, &nextSibling, &err);
|
||||
+#endif
|
||||
if (DW_DLV_ERROR == ret) {
|
||||
ERRMSG("Getting sibling of die:%s\n", dwarf_errmsg(err));
|
||||
} else if (DW_DLV_OK == ret) {
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/closed/OpenJ9.gmk
|
||||
+++ b/closed/OpenJ9.gmk
|
||||
@@ -41,11 +41,11 @@ VersionPairs :=
|
||||
@@ -38,11 +38,11 @@ VersionPairs :=
|
||||
# ----------
|
||||
# $1 - repository display name
|
||||
# $2 - variable name
|
||||
@@ -14,7 +14,7 @@
|
||||
ifneq (,$$($2))
|
||||
VersionLabelWidth := $(shell $(ECHO) "$1" | $(AWK) "{ width = length; print (width > $(VersionLabelWidth) ? width : $(VersionLabelWidth)) }")
|
||||
VersionPairs += "$1" "$$($2)"
|
||||
@@ -61,17 +61,16 @@ define ShowVersions
|
||||
@@ -58,18 +58,18 @@ define ShowVersions
|
||||
@$(PRINTF) " %-$(VersionLabelWidth)s - %s\n" $(VersionPairs)
|
||||
endef # ShowVersions
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
+$(call GetVersion, openjdk, OPENJDK_SHA, @OPENJDK_SHA@, required)
|
||||
+$(call GetVersion, openj9, OPENJ9_SHA, @OPENJ9_SHA@, required)
|
||||
+$(call GetVersion, omr, OPENJ9OMR_SHA, @OPENJ9OMR_SHA@, required)
|
||||
+$(call GetVersion, openssl, OPENSSL_SHA, @OPENSSL_SHA@ )
|
||||
$(call GetVersion, vendor, VENDOR_SHA, $(VENDOR_TOPDIR))
|
||||
|
||||
# Find OpenJ9 tag associated with current commit (suppressing stderr in case there is no such tag).
|
||||
-OPENJ9_TAG := $(shell $(GIT) -C $(OPENJ9_TOPDIR) describe --exact-match HEAD 2>/dev/null)
|
||||
@@ -37,18 +39,3 @@
|
||||
ifeq (,$(OPENJ9_BRANCH))
|
||||
$(error Could not determine OpenJ9 branch)
|
||||
endif
|
||||
--- a/closed/custom/ReleaseFile.gmk
|
||||
+++ b/closed/custom/ReleaseFile.gmk
|
||||
@@ -18,9 +18,9 @@
|
||||
# 2 along with this work; if not, see <http://www.gnu.org/licenses/>.
|
||||
# ===========================================================================
|
||||
|
||||
-SOURCE_REVISION := OpenJDK:$(shell $(GIT) -C $(TOPDIR) rev-parse --short HEAD)
|
||||
-SOURCE_REVISION += OpenJ9:$(shell $(GIT) -C $(OPENJ9_TOPDIR) rev-parse --short HEAD)
|
||||
-SOURCE_REVISION += OMR:$(shell $(GIT) -C $(OPENJ9OMR_TOPDIR) rev-parse --short HEAD)
|
||||
+SOURCE_REVISION := OpenJDK:@OPENJ9_SHA@
|
||||
+SOURCE_REVISION += OpenJ9:@OPENJ9_SHA@
|
||||
+SOURCE_REVISION += OMR:@OPENJ9OMR_SHA@
|
||||
ifeq (true,$(BUILD_OPENJCEPLUS))
|
||||
SOURCE_REVISION += OpenJCEPlus:$(shell $(GIT) -C $(OPENJCEPLUS_TOPDIR) rev-parse --short HEAD)
|
||||
endif
|
||||
|
||||
13
openssl-OSSL_LIB_CTX.patch
Normal file
13
openssl-OSSL_LIB_CTX.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- a/closed/src/java.base/share/native/libjncrypto/NativeCrypto.c
|
||||
+++ b/closed/src/java.base/share/native/libjncrypto/NativeCrypto.c
|
||||
@@ -77,6 +77,10 @@
|
||||
# include <pthread.h>
|
||||
#endif /* defined(WINDOWS) */
|
||||
|
||||
+#if OPENSSL_VERSION_MAJOR < 3
|
||||
+typedef struct ossl_lib_ctx_st OSSL_LIB_CTX;
|
||||
+#endif
|
||||
+
|
||||
/* Header for NativeCrypto loading methods. */
|
||||
static void * find_crypto_symbol(void *handle, const char *symname);
|
||||
static void * find_crypto_library(jboolean traceEnabled, jboolean skipBundled, const char *chomepath);
|
||||
@@ -1,20 +0,0 @@
|
||||
diff -urEbwB openj9-openjdk-jdk17.orig/omr/compiler/optimizer/OMRSimplifierHandlers.cpp openj9-openjdk-jdk17/omr/compiler/optimizer/OMRSimplifierHandlers.cpp
|
||||
--- openj9-openjdk-jdk17.orig/omr/compiler/optimizer/OMRSimplifierHandlers.cpp 2023-03-28 09:18:57.979474249 +0200
|
||||
+++ openj9-openjdk-jdk17/omr/compiler/optimizer/OMRSimplifierHandlers.cpp 2023-03-28 09:49:47.316000333 +0200
|
||||
@@ -22,6 +22,9 @@
|
||||
#ifndef OMR_SIMPLIFIERHANDLERS_INCL
|
||||
#define OMR_SIMPLIFIERHANDLERS_INCL
|
||||
|
||||
+#pragma GCC diagnostic push
|
||||
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
+
|
||||
#include "optimizer/OMRSimplifierHelpers.hpp"
|
||||
#include "optimizer/SimplifierHandlers.hpp"
|
||||
|
||||
@@ -17353,5 +17356,6 @@
|
||||
return node;
|
||||
}
|
||||
|
||||
+#pragma GCC diagnostic pop
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user