Compare commits
26 Commits
Author | SHA256 | Date | |
---|---|---|---|
80b249e794 | |||
6d118212d9 | |||
a268d390a2 | |||
fca9b266fe | |||
3e758d8736 | |||
0023d2daad | |||
0f217f2067 | |||
c827a3d4a2 | |||
fb70fd79b3 | |||
95ec8bb731 | |||
33e367e690 | |||
43f26226c3 | |||
88bac497ef | |||
ece5a47e01 | |||
4e97e98a1b | |||
459ee6dc8c | |||
9e57003478 | |||
e4e96ca72d | |||
f2579a7bac | |||
ec9d39a9e6 | |||
b0c4b41c98 | |||
ed129ec788 | |||
6a32a44336 | |||
f3e5179cf6 | |||
9af644916e | |||
2891051e84 |
3
017819f167cbcedd175a3f20e1112992bf4ecc1e.zip
Normal file
3
017819f167cbcedd175a3f20e1112992bf4ecc1e.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ce487319d8a3598a19af2b8f46e9630c23d932e3d779151df84c69917982112c
|
||||
size 29652806
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:38371f6ef59ba89f89135dd5579d0952cc4d28adb452c25c194a248da70dc5fc
|
||||
size 29265781
|
3
266a8c6f5b6d202e4aaa09e19ce0d956605f27fd.zip
Normal file
3
266a8c6f5b6d202e4aaa09e19ce0d956605f27fd.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9aa1212a44d24857597b91e4c5d46aa3ce8e4d1da08d2ef67a659b6ae01611f6
|
||||
size 11239872
|
3
34b4be01e57751ebe966db36c72fd2af11d00736.zip
Normal file
3
34b4be01e57751ebe966db36c72fd2af11d00736.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:598dfd7619e74e1017b9961c0f51dd592cd396d83ddea6c6a3d2ea7c70b506b7
|
||||
size 171295821
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ddda8eef9dbf5a90ebff67a5ec7bf54c63b2b3ee664ca7da146c9d53bafad23d
|
||||
size 169255945
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:31b067d16c7c9538d99db1fb9aee79d0e208a0173f1c5deb93aaaf96e66c5cca
|
||||
size 11172351
|
30
bootcycle.patch
Normal file
30
bootcycle.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
--- a/closed/OpenJ9.gmk
|
||||
+++ b/closed/OpenJ9.gmk
|
||||
@@ -252,7 +252,7 @@ CMAKE_ARGS := \
|
||||
-C $(OPENJ9_TOPDIR)/runtime/cmake/caches/$(patsubst %_cross,%,$(OPENJ9_BUILDSPEC)).cmake \
|
||||
-DBOOT_JDK="$(BOOT_JDK)" \
|
||||
-DBUILD_ID=$(BUILD_ID) \
|
||||
- -DCMAKE_TOOLCHAIN_FILE="$(OUTPUTDIR)/toolchain.cmake" \
|
||||
+ -DCMAKE_TOOLCHAIN_FILE="$(TOOLCHAIN_CMAKE_FILE)" \
|
||||
-DJ9VM_OMR_DIR="$(OPENJ9OMR_TOPDIR)" \
|
||||
-DJAVA_SPEC_VERSION=$(VERSION_FEATURE) \
|
||||
-DOMR_DDR=$(OPENJ9_ENABLE_DDR) \
|
||||
--- a/make/autoconf/bootcycle-spec.gmk.in
|
||||
+++ b/make/autoconf/bootcycle-spec.gmk.in
|
||||
@@ -49,3 +49,4 @@ JAVA_FLAGS_BIG := @BOOTCYCLE_JVM_ARGS_BIG@
|
||||
# settings for CDS.
|
||||
JAVA_FLAGS := $(filter-out -XX:SharedArchiveFile% -Xshare%, $(JAVA_FLAGS))
|
||||
|
||||
+TOOLCHAIN_CMAKE_FILE := $(OLD_OUTPUTDIR)/toolchain.cmake
|
||||
diff --git a/make/autoconf/spec.gmk.in b/make/autoconf/spec.gmk.in
|
||||
index 807ba27589b..6906f7cf735 100644
|
||||
--- a/make/autoconf/spec.gmk.in
|
||||
+++ b/make/autoconf/spec.gmk.in
|
||||
@@ -966,5 +966,7 @@ JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
|
||||
define IncludeCustomExtension
|
||||
endef
|
||||
|
||||
+TOOLCHAIN_CMAKE_FILE := $(OUTPUTDIR)/toolchain.cmake
|
||||
+
|
||||
# Include the custom-spec.gmk file if it exists
|
||||
-include $(dir @SPEC@)/custom-spec.gmk
|
@@ -1,3 +1,92 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 26 20:54:18 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to OpenJDK 17.0.16 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:57:18 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to OpenJDK 17.0.15 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 06:41:05 UTC 2025 - Simon Lees <sflees@suse.de>
|
||||
|
||||
- export CMAKE_POLICY_VERSION_MINIMUM="3.5" to ignore cmakes
|
||||
minimum version warnings
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 18 16:23:13 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Added patch:
|
||||
* openj9-nasm-noexecstack.patch
|
||||
+ fix wrong execstack flag in libj9jit (bsc#1235844)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 7 16:57:24 UTC 2025 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to OpenJDK 17.0.14 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 5 12:25:50 UTC 2025 - Stefan Dirsch <sndirsch@suse.com>
|
||||
|
||||
- removed unneeded xorg-x11-proto-devel BuildRequires (bsc#1236804)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 6 08:24:25 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package java-17-openj9
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# 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 17
|
||||
%global interimver 0
|
||||
%global updatever 12
|
||||
%global buildver 7
|
||||
%global updatever 16
|
||||
%global buildver 8
|
||||
%global root_repository https://github.com/ibmruntimes/openj9-openjdk-jdk17/archive
|
||||
%global root_revision 784bd66222d3a9569eff3335f33b48b5e611b518
|
||||
%global root_branch v0.46.0-release
|
||||
%global root_revision 34b4be01e57751ebe966db36c72fd2af11d00736
|
||||
%global root_branch v0.53.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 266a8c6f5b6d202e4aaa09e19ce0d956605f27fd
|
||||
%global omr_branch v0.53.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 017819f167cbcedd175a3f20e1112992bf4ecc1e
|
||||
%global openj9_branch v0.53.0-release
|
||||
%global openj9_tag openj9-0.53.0
|
||||
# priority must be 6 digits in total
|
||||
%if 0%{?suse_version} > 1500 || 0%{?java_bootstrap}
|
||||
%global priority 2701
|
||||
@@ -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
|
||||
@@ -105,27 +109,26 @@ 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 version of 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
|
||||
#
|
||||
Patch32: stringop-overflow.patch
|
||||
Patch30: aarch64.patch
|
||||
#
|
||||
# OpenJDK specific patches
|
||||
#
|
||||
Patch302: disable-doclint-by-default.patch
|
||||
Patch300: disable-doclint-by-default.patch
|
||||
#
|
||||
Patch400: bootcycle.patch
|
||||
#
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: autoconf
|
||||
@@ -138,6 +141,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
|
||||
@@ -162,7 +167,6 @@ BuildRequires: openssl-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: unzip
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: xorg-x11-proto-devel
|
||||
BuildRequires: xprop
|
||||
BuildRequires: zip
|
||||
BuildConflicts: java-devel >= 18
|
||||
@@ -211,13 +215,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
|
||||
@@ -360,22 +357,23 @@ 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 31 -p1
|
||||
%patch -P 32 -p1
|
||||
%patch -P 30 -p1
|
||||
|
||||
%patch -P 302 -p1
|
||||
%patch -P 300 -p1
|
||||
|
||||
%patch -P 400 -p1
|
||||
|
||||
cat %{SOURCE100} \
|
||||
| sed "s/@OPENJ9_SHA@/`expr substr '%{openj9_revision}' 1 7`/g" \
|
||||
@@ -396,9 +394,12 @@ for file in %{SOURCE11} ; do
|
||||
done
|
||||
|
||||
%build
|
||||
# Remove cmake4 error due to not setting
|
||||
# min cmake version - sflees.de
|
||||
export CMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||
export ARCH_DATA_MODEL=64
|
||||
|
||||
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 -std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse"
|
||||
|
||||
%ifarch ppc64le
|
||||
@@ -406,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-%{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-zlib=system \
|
||||
@@ -515,6 +519,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}
|
||||
@@ -743,6 +751,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
|
||||
@@ -755,6 +764,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
|
||||
@@ -805,6 +815,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
|
||||
@@ -841,11 +853,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
|
||||
@@ -855,6 +869,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,19 +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)
|
||||
+ SOURCE_REVISION += OpenJCEPlus:@OPENJCEPLUS_SHA@
|
||||
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