<pre style='margin:0'>
Aaron Madlon-Kay (amake) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/292365f0d2ddc7969e5e91c5201e5b3264924685">https://github.com/macports/macports-ports/commit/292365f0d2ddc7969e5e91c5201e5b3264924685</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 292365f0d2d java-1.0 portgroup: wildcards not supported on Big Sur
</span>292365f0d2d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 292365f0d2ddc7969e5e91c5201e5b3264924685
</span>Author: Aaron Madlon-Kay <amake@macports.org>
AuthorDate: Wed Dec 16 13:17:32 2020 +0900
<span style='display:block; white-space:pre;color:#404040;'> java-1.0 portgroup: wildcards not supported 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 | 13 +++++++++----
1 file changed, 9 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 02a35101537..e9296d7b31e 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;'>@@ -57,12 +57,17 @@ proc find_java_home {} {
</span> #
# Temporarily unset and stash the value here.
#
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Also it seems that wildcard syntax does not work, so we remove them.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span> # See https://trac.macports.org/ticket/61445
global os.platform os.major
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set big_sur_workaround [expr {${os.platform} eq "darwin" && ${os.major} == 20 && [info exists ::env(JAVA_HOME)]}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set big_sur_workaround [expr {${os.platform} eq "darwin" && ${os.major} == 20}]
</span> if {${big_sur_workaround}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set env_java_home $::env(JAVA_HOME)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- unset $::env(JAVA_HOME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set java.version [string map {+ "" * ""} ${java.version}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info exists ::env(JAVA_HOME)]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set env_java_home $::env(JAVA_HOME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ unset $::env(JAVA_HOME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
if { [catch {set val [exec "/usr/libexec/java_home" "-f" "-v" ${java.version}]}] } {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -76,7 +81,7 @@ proc find_java_home {} {
</span> }
# Restore original JAVA_HOME value stashed above
<span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${big_sur_workaround}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${big_sur_workaround} && [info exists env_java_home]} {
</span> set $::env(JAVA_HOME) ${env_java_home}
}
}
</pre><pre style='margin:0'>
</pre>