<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/741c65c2c276ba221d7450e2194ae1513a7db974">https://github.com/macports/macports-ports/commit/741c65c2c276ba221d7450e2194ae1513a7db974</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 741c65c2c276ba221d7450e2194ae1513a7db974
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Wed Oct 25 04:22:54 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> qt5[5-7]: keep configure.cxxflags empty
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Attempting to mix and match MacPorts settings and Qt settings
</span><span style='display:block; white-space:pre;color:#404040;'> has lead to difficulty in the past.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This change is only needed on older versions of Qt because
</span><span style='display:block; white-space:pre;color:#404040;'> they are the only ones that build on older OS versions.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> No revbump since port either builds successfully or not at all.
</span>---
_resources/port1.0/group/cxx11-1.1.tcl | 5 ++++-
aqua/qt55/Portfile | 10 +++++++++-
aqua/qt56/Portfile | 10 +++++++++-
aqua/qt57/Portfile | 10 +++++++++-
4 files changed, 31 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/cxx11-1.1.tcl b/_resources/port1.0/group/cxx11-1.1.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 598e442..cfda054 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/cxx11-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/cxx11-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,7 +46,7 @@ if {${cxx_stdlib} eq "libstdc++" } {
</span>
proc register_gcc_dependents {} {
global os.major
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # see https://trac.macports.org/ticket/54766
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-delete port:libgcc
</span> depends_lib-append port:libgcc
# ensure desired compiler flags are present
if { ${os.major} < 13 } {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -70,6 +70,9 @@ if {${cxx_stdlib} eq "libstdc++" } {
</span> compiler.whitelist macports-clang-5.0
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # see https://trac.macports.org/ticket/54766
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:libgcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if { ${os.major} < 13 } {
# prior to OS X Mavericks, libstdc++ was the default C++ runtime, so
# assume MacPorts libstdc++ must be ABI compatable with system libstdc++
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt55/Portfile b/aqua/qt55/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 769a20a..ac3aabf 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt55/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt55/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -732,9 +732,16 @@ foreach {module module_info} [array get modules] {
</span> }
post-patch {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.cxx_stdlib} eq "macports-libstdc++" && ${os.major} < 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_abi " -D_GLIBCXX_USE_CXX11_ABI=0"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_abi ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # respect configure.cxx_stdlib
reinplace \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- "s|__MACPORTS_CXX_STDLIB__|${configure.cxx_stdlib}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|__MACPORTS_CXX_STDLIB__|${configure.cxx_stdlib}${cxx_abi}|g" \
</span> ${worksrcpath}/mkspecs/common/clang-mac.conf
# respect macosx_deployment_target
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -922,6 +929,7 @@ foreach {module module_info} [array get modules] {
</span> # For consistency, clear MacPorts environment.
#configure.cxx_stdlib
proc portconfigure::should_add_stdlib {} {return false}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ proc register_gcc_dependents {} {}
</span> configure.sdkroot
configure.cc_archflags
configure.cxx_archflags
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt56/Portfile b/aqua/qt56/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ad6a189..7a8cccc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt56/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt56/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -770,9 +770,16 @@ foreach {module module_info} [array get modules] {
</span> }
post-patch {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.cxx_stdlib} eq "macports-libstdc++" && ${os.major} < 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_abi " -D_GLIBCXX_USE_CXX11_ABI=0"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_abi ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # respect configure.cxx_stdlib
reinplace \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- "s|__MACPORTS_CXX_STDLIB__|${configure.cxx_stdlib}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|__MACPORTS_CXX_STDLIB__|${configure.cxx_stdlib}${cxx_abi}|g" \
</span> ${worksrcpath}/mkspecs/common/clang-mac.conf
# respect macosx_deployment_target
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -963,6 +970,7 @@ foreach {module module_info} [array get modules] {
</span> # For consistency, clear MacPorts environment.
#configure.cxx_stdlib
proc portconfigure::should_add_stdlib {} {return false}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ proc register_gcc_dependents {} {}
</span> configure.sdkroot
configure.cc_archflags
configure.cxx_archflags
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/aqua/qt57/Portfile b/aqua/qt57/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1945ddb..785e1b8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/aqua/qt57/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/aqua/qt57/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -821,9 +821,16 @@ foreach {module module_info} [array get modules] {
</span> }
post-patch {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.cxx_stdlib} eq "macports-libstdc++" && ${os.major} < 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_abi " -D_GLIBCXX_USE_CXX11_ABI=0"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set cxx_abi ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # respect configure.cxx_stdlib
reinplace \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- "s|__MACPORTS_CXX_STDLIB__|${configure.cxx_stdlib}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "s|__MACPORTS_CXX_STDLIB__|${configure.cxx_stdlib}${cxx_abi}|g" \
</span> ${worksrcpath}/mkspecs/common/clang-mac.conf
# respect macosx_deployment_target
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1014,6 +1021,7 @@ foreach {module module_info} [array get modules] {
</span> # For consistency, clear MacPorts environment.
#configure.cxx_stdlib
proc portconfigure::should_add_stdlib {} {return false}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ proc register_gcc_dependents {} {}
</span> configure.sdkroot
configure.cc_archflags
configure.cxx_archflags
</pre><pre style='margin:0'>
</pre>