<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/12ea9a95962b028ae2ed6a9cf38d68c496f64934">https://github.com/macports/macports-ports/commit/12ea9a95962b028ae2ed6a9cf38d68c496f64934</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 12ea9a9  bazel: protect reinplace with file existance check
</span>12ea9a9 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 12ea9a95962b028ae2ed6a9cf38d68c496f64934
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sat May 18 20:59:06 2019 +0100

<span style='display:block; white-space:pre;color:#404040;'>    bazel: protect reinplace with file existance check
</span>---
 devel/bazel/Portfile | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

<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 d753609..13f371b 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;'>@@ -123,14 +123,16 @@ build {
</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 } {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            foreach cmd {ar nm strip libtool ld objdump} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                reinplace -q "s|/usr/bin/${cmd}|${prefix}/bin/${cmd}|g" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            if {[file exists ${f}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                foreach cmd {ar nm strip libtool ld objdump} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    reinplace -q "s|/usr/bin/${cmd}|${prefix}/bin/${cmd}|g" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                reinplace -q "s|/usr/bin/clang|${configure.cc}|g"       ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                reinplace -q "s|\"clang\"|\"${configure.cc}\"|g"        ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                reinplace -q "s| clang | ${configure.cc} |g"            ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                reinplace -q "s|/usr/local/include|${prefix}/include|g" ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                reinplace -q "s|std=c++0x|std=c++11|g"                  ${f}
</span>             }
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            reinplace -q "s|/usr/bin/clang|${configure.cc}|g"       ${f}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            reinplace -q "s|\"clang\"|\"${configure.cc}\"|g"        ${f}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            reinplace -q "s| clang | ${configure.cc} |g"            ${f}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            reinplace -q "s|/usr/local/include|${prefix}/include|g" ${f}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            reinplace -q "s|std=c++0x|std=c++11|g"                  ${f}
</span>         }
     }
 
</pre><pre style='margin:0'>

</pre>