<pre style='margin:0'>
MarcusCalhoun-Lopez pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4f0ad86ebda2af22d4aef1f4aa15369ce04d2aa9">https://github.com/macports/macports-ports/commit/4f0ad86ebda2af22d4aef1f4aa15369ce04d2aa9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4f0ad86ebda2af22d4aef1f4aa15369ce04d2aa9
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Fri Feb 3 03:05:41 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> gcc6 & gcc7: allow clang to use GCC header files
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes https://trac.macports.org/ticket/53329
</span>---
lang/gcc6/Portfile | 6 ++++++
lang/gcc6/files/patch-float128.diff | 12 ++++++++++++
lang/gcc7/Portfile | 6 ++++++
lang/gcc7/files/patch-float128.diff | 12 ++++++++++++
4 files changed, 36 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 d208cb0..8a11950 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;'>@@ -9,6 +9,9 @@ subport libgcc {}
</span>
epoch 2
version 6.3.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${name} eq ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span> platforms darwin
categories lang
maintainers mww openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -47,6 +50,9 @@ set major [lindex [split ${version} .-] 0]
</span>
platform darwin {
configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00672.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-float128.diff
</span> }
configure.dir ${workpath}/build
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc6/files/patch-float128.diff b/lang/gcc6/files/patch-float128.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..29e5fad
</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-float128.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libstdc++-v3/config.h.in.orig 2016-12-12 10:44:08.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libstdc++-v3/config.h.in 2017-01-14 02:19:10.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -892,7 +892,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef _GLIBCXX_USE_FCHMODAT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Define if __float128 is supported on this host. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef __clang__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef _GLIBCXX_USE_FLOAT128
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Defined if gettimeofday is available. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef _GLIBCXX_USE_GETTIMEOFDAY
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc7/Portfile b/lang/gcc7/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 05ec7a5..583c59c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/gcc7/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc7/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,6 +9,9 @@ subport libgcc-devel {}
</span>
epoch 1
version 7-20170129
<span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${name} eq ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span> platforms darwin
categories lang
maintainers mww openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,6 +49,9 @@ set major [lindex [split ${version} .-] 0]
</span>
platform darwin {
configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://gcc.gnu.org/ml/gcc-patches/2012-05/msg00672.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-float128.diff
</span> }
configure.dir ${workpath}/build
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/gcc7/files/patch-float128.diff b/lang/gcc7/files/patch-float128.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..a5915be
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/gcc7/files/patch-float128.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libstdc++-v3/config.h.in.orig 2016-12-12 10:44:08.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libstdc++-v3/config.h.in 2017-01-14 02:19:10.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -913,7 +913,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef _GLIBCXX_USE_FCHMODAT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Define if __float128 is supported on this host. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef __clang__
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef _GLIBCXX_USE_FLOAT128
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Defined if gettimeofday is available. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef _GLIBCXX_USE_GETTIMEOFDAY
</span></pre><pre style='margin:0'>
</pre>