<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a5935f1fd89e02a43832bd9914766729b76ca792">https://github.com/macports/macports-ports/commit/a5935f1fd89e02a43832bd9914766729b76ca792</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new a5935f1fd89 java-1.0: temporarily skip version check on Big Sur
</span>a5935f1fd89 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit a5935f1fd89e02a43832bd9914766729b76ca792
</span>Author: Aaron Madlon-Kay <aaron@madlon-kay.com>
AuthorDate: Mon Nov 16 00:03:28 2020 +0900
<span style='display:block; white-space:pre;color:#404040;'> java-1.0: temporarily skip version check on Big Sur
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See https://trac.macports.org/ticket/61445
</span>---
_resources/port1.0/group/java-1.0.tcl | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/java-1.0.tcl b/_resources/port1.0/group/java-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index bc0e00ef494..9f59fe5cbf3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/java-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/java-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -34,8 +34,16 @@ pre-fetch {
</span> java_set_env
# If still not present, error out
if { ${java_version_not_found} } {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_error "${name} requires Java ${java.version} but no such installation could be found."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return -code error "missing required Java version"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global os.platform os.major
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.platform} eq "darwin" && ${os.major} == 20} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The following check is broken on macOS 11 Big Sur so we
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # temporarily give up on ensuring an exact Java version. See
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/61445
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_warn "Failed to confirm that required Java was installed; see https://trac.macports.org/ticket/61445"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "${name} requires Java ${java.version} but no such installation could be found."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "missing required Java version"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
}
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,7 +55,7 @@ proc find_java_home {} {
</span> # Default setting to found, until proved otherwise below
global java_version_not_found
set java_version_not_found no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> global java.version java.fallback
if { ${java.version} ne "" } {
if { [catch {set val [exec "/usr/libexec/java_home" "-f" "-v" ${java.version}]}] } {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -57,7 +65,7 @@ proc find_java_home {} {
</span> set java_version_not_found yes
} else {
set home_value $val
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ui_debug "Discovered JAVA_HOME via /usr/libexec/java_home: $home_value"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_debug "Discovered JAVA_HOME via /usr/libexec/java_home -f -v: $home_value"
</span> }
}
</pre><pre style='margin:0'>
</pre>