<pre style='margin:0'>
Jeremy Huddleston Sequoia (jeremyhu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cf112633e8b5237c5b9873ec91d2784a0dd56fd4">https://github.com/macports/macports-ports/commit/cf112633e8b5237c5b9873ec91d2784a0dd56fd4</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 cf11263 gcc6: Fix build failure with stricter C++ compilers
</span>cf11263 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cf112633e8b5237c5b9873ec91d2784a0dd56fd4
</span>Author: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
AuthorDate: Sun Jun 25 13:36:26 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> gcc6: Fix build failure with stricter C++ compilers
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@macports.org>
</span>---
lang/gcc6/Portfile | 3 +++
lang/gcc6/files/patch-darwin-driver.c.as.cxx | 15 +++++++++++++++
2 files changed, 18 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc6/Portfile b/lang/gcc6/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 748c8b6..10347c2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc6/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -53,6 +53,9 @@ platform darwin {
</span>
# see https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00672.html
patchfiles-append patch-float128.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # gcc started compiling darwin-driver.c as C++, so make it valid
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-darwin-driver.c.as.cxx
</span> }
configure.dir ${workpath}/build
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc6/files/patch-darwin-driver.c.as.cxx b/lang/gcc6/files/patch-darwin-driver.c.as.cxx
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..05dcd55
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc6/files/patch-darwin-driver.c.as.cxx
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gcc/config/darwin-driver.c.orig 2017-06-25 13:25:11.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gcc/config/darwin-driver.c 2017-06-25 13:25:48.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -299,10 +299,10 @@ darwin_driver_init (unsigned int *decode
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (vers_string != NULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *asm_major = NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- char *first_period = strchr(vers_string, '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const char *first_period = strchr(vers_string, '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (first_period != NULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- char *second_period = strchr(first_period+1, '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const char *second_period = strchr(first_period+1, '.');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (second_period != NULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ asm_major = xstrndup (vers_string, second_period-vers_string);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span></pre><pre style='margin:0'>
</pre>