Skip to content

Commit

Permalink
AL: Fix gcc version check when unset
Browse files Browse the repository at this point in the history
  • Loading branch information
lutkerd committed Jul 3, 2023
1 parent 21d4377 commit 0696400
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion installers/linux/al2/spec/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ task inflateRpmSpec(type: Copy) {
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [ experimental_feature: project.findProperty("corretto.experimental_feature") ?: "%{nil}" ])
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [ additional_configure_options: project.findProperty("corretto.additional_configure_options") ?: "%{nil}"])
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [ zlib_option: project.findProperty("corretto.zlib_option") ?: "system"])
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [ use_gcc_ver: project.findProperty("corretto.use_gcc_ver") ?: ""])
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [ use_gcc_ver: project.findProperty("corretto.use_gcc_ver") ?: "%{nil}"])
}
into buildRoot
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
%if 0%{?additional_configure_options:1} == 1 && "%{additional_configure_options}" == "%{nil}"
%undefine additional_configure_options
%endif

%if 0%{?use_gcc_ver:1} == 1 && "%{use_gcc_ver}" == "%{nil}"
%undefine use_gcc_ver
%endif
# Higher numbers win for the alternatives program.
# AL2 has chosen java-1.7.0-openjdk to be default (priority 17000)
# with java-1.8.0-openjdk as second (priority 1800)
Expand Down

0 comments on commit 0696400

Please sign in to comment.