Skip to content

Commit

Permalink
Fix incorrect bootjdk version for AL builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cost0much authored and lutkerd committed Aug 7, 2024
1 parent a087b48 commit 32c4225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions installers/linux/al2/spec/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ task inflateRpmSpec {
version_opt : versionOpt,
debug_level : correttoDebugLevel,
boot_jdk_major_version : version.major.toInteger() - 1,
boot_jdk_major_v_backup : version.major.toInteger() - 2,
experimental_feature: project.findProperty("corretto.experimental_feature") ?: "%{nil}",
additional_configure_options: project.findProperty("corretto.additional_configure_options") ?: "%{nil}",
zlib_option: project.findProperty("corretto.zlib_option") ?: "system",
Expand Down
3 changes: 2 additions & 1 deletion installers/linux/al2/spec/java-amazon-corretto.spec.template
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
# %global release_ext 1

%global boot_jdk_major_version $boot_jdk_major_version
%global boot_jdk_major_v_backup $boot_jdk_major_v_backup

%global java_home %{_jvmdir}/%{name}.%{_arch}
%global java_lib %{java_home}/lib
Expand Down Expand Up @@ -146,7 +147,7 @@ BuildRequires: pkgconfig
BuildRequires: xorg-x11-proto-devel

%if %{with bootjdk}
BuildRequires: java-${boot_jdk_major_version}-devel
BuildRequires: (java-${boot_jdk_major_version}-devel or java-${boot_jdk_major_v_backup}-devel)
%endif

Requires: libX11
Expand Down

0 comments on commit 32c4225

Please sign in to comment.