<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/996680527ba3d17d53ff6c7cde16da68b4a2bccf">https://github.com/macports/macports-ports/commit/996680527ba3d17d53ff6c7cde16da68b4a2bccf</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 9966805  py-tensorflow: detect if gcc is 'port selected' and error out, as this causes build failures. Closes: https://trac.macports.org/ticket/58679
</span>9966805 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 996680527ba3d17d53ff6c7cde16da68b4a2bccf
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Wed Jul 3 16:55:46 2019 +0100

<span style='display:block; white-space:pre;color:#404040;'>    py-tensorflow: detect if gcc is 'port selected' and error out, as this causes build failures.
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/58679
</span>---
 python/py-tensorflow/Portfile | 11 +++++++++++
 1 file changed, 11 insertions(+)

<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 da0b3b4..380982e 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;'>@@ -134,6 +134,17 @@ if {${name} ne ${subport}} {
</span>     }
 
     build {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # tensorflow(via bazel) cannot be built if gcc is 'port selected'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # https://trac.macports.org/ticket/58569
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # https://trac.macports.org/ticket/58679
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # Until it can be figured out how to stop bazel finding and using macports gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # just detect when this situation arises and error out...
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if { [file exists ${prefix}/bin/gcc] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ui_error "${subport} cannot be built with 'port select gcc' active."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ui_error "Please run 'sudo port select gcc none' and try again."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ui_error "Once the build is complete, you can safely re-select your preferred gcc."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            return -code error "build error"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span>         # Build using the wonderful bazel build system ...
         set tf_bazel_cmd "bazel --max_idle_secs=60 --output_user_root=${workpath}"
         set tf_bazel_build_opts "-s -c opt --config=opt"
</pre><pre style='margin:0'>

</pre>