<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8844a116e9682b10ac3c4893aef12d044047a4be">https://github.com/macports/macports-ports/commit/8844a116e9682b10ac3c4893aef12d044047a4be</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 8844a11  py-tensorflow{1}: Check configure.sdkroot exists before passing version to bazel
</span>8844a11 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 8844a116e9682b10ac3c4893aef12d044047a4be
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Fri May 22 12:11:57 2020 +0100

<span style='display:block; white-space:pre;color:#404040;'>    py-tensorflow{1}: Check configure.sdkroot exists before passing version to bazel
</span>---
 python/py-tensorflow/Portfile  | 7 ++++++-
 python/py-tensorflow1/Portfile | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-tensorflow/Portfile b/python/py-tensorflow/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 190e620..5d75577 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-tensorflow/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-tensorflow/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -176,7 +176,12 @@ if {${name} ne ${subport}} {
</span>         set tf_bazel_cmd "bazel --max_idle_secs=60 --output_user_root=${workpath}"
         set tf_bazel_build_opts "-s -c opt --verbose_failures --config=opt"
         # Explicitly pass SDK https://github.com/bazelbuild/rules_go/issues/1554
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        set tf_bazel_build_opts "${tf_bazel_build_opts} --macos_sdk_version=${configure.sdk_version}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # Check SDK actually exists... https://trac.macports.org/ticket/60317
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {[file exists ${configure.sdkroot}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            set tf_bazel_build_opts "${tf_bazel_build_opts} --macos_sdk_version=${configure.sdk_version}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ui_warn "configure.sdkroot '${configure.sdkroot}' does not exist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span>         # hack to try and transfer MP c, c++ and ld options to bazel...
         foreach opt [list {*}${configure.cflags} ] {
             set tf_bazel_build_opts "${tf_bazel_build_opts} --conlyopt '${opt}'"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-tensorflow1/Portfile b/python/py-tensorflow1/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 691679c..2a76fbb 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-tensorflow1/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-tensorflow1/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -176,7 +176,12 @@ if {${name} ne ${subport}} {
</span>         set tf_bazel_cmd "bazel --max_idle_secs=60 --output_user_root=${workpath}"
         set tf_bazel_build_opts "-s -c opt --config=opt"
         # Explicitly pass SDK https://github.com/bazelbuild/rules_go/issues/1554
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        set tf_bazel_build_opts "${tf_bazel_build_opts} --macos_sdk_version=${configure.sdk_version}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # Check SDK actually exists... https://trac.macports.org/ticket/60317
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {[file exists ${configure.sdkroot}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            set tf_bazel_build_opts "${tf_bazel_build_opts} --macos_sdk_version=${configure.sdk_version}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ui_warn "configure.sdkroot '${configure.sdkroot}' does not exist"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span>         # hack to try and transfer MP c, c++ and ld options to bazel...
         foreach opt [list {*}${configure.cflags} ] {
             set tf_bazel_build_opts "${tf_bazel_build_opts} --conlyopt '${opt}'"
</pre><pre style='margin:0'>

</pre>