<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/3f548181baf52f1fa241c93cd645208ef91fa5c7">https://github.com/macports/macports-ports/commit/3f548181baf52f1fa241c93cd645208ef91fa5c7</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 3f54818  bazel: Detect when a gcc port select is active and issue a build error.
</span>3f54818 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 3f548181baf52f1fa241c93cd645208ef91fa5c7
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Fri Jun 7 15:37:00 2019 +0100

<span style='display:block; white-space:pre;color:#404040;'>    bazel: Detect when a gcc port select is active and issue a build error.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes:https://trac.macports.org/ticket/58569
</span>---
 devel/bazel/Portfile | 11 +++++++++++
 1 file changed, 11 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/bazel/Portfile b/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f405700..bbe3235 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/bazel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -132,6 +132,17 @@ variant bash description {Enable bash completion support} {
</span> 
 build {
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    # 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;'>+    # 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><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     if {[vercmp ${xcodeversion} ${bazel_min_xcode}] < 0} {
         # Patch build files to enforce correct compiler
         foreach f { scripts/bootstrap/compile.sh tools/osx/crosstool/CROSSTOOL.tpl src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/CROSSTOOL tools/cpp/unix_cc_configure.bzl tools/cpp/CROSSTOOL third_party/zlib/configure src/test/java/com/google/devtools/build/lib/analysis/mock/MOCK_CROSSTOOL tools/cpp/cc_toolchain_config.bzl tools/osx/crosstool/cc_toolchain_config.bzl.tpl } {
</pre><pre style='margin:0'>

</pre>