[144927] trunk/dports/python

devans at macports.org devans at macports.org
Thu Jan 21 07:30:25 PST 2016


Revision: 144927
          https://trac.macports.org/changeset/144927
Author:   devans at macports.org
Date:     2016-01-21 07:30:25 -0800 (Thu, 21 Jan 2016)
Log Message:
-----------
py-bob-core, py-bob-io-base: add work around for libstdc++ build failures with boost 1.59 (#49867).

Modified Paths:
--------------
    trunk/dports/python/py-bob-core/Portfile
    trunk/dports/python/py-bob-io-base/Portfile

Modified: trunk/dports/python/py-bob-core/Portfile
===================================================================
--- trunk/dports/python/py-bob-core/Portfile	2016-01-21 14:35:56 UTC (rev 144926)
+++ trunk/dports/python/py-bob-core/Portfile	2016-01-21 15:30:25 UTC (rev 144927)
@@ -72,7 +72,19 @@
           # blacklist older compilers that don't support -std=c++0x (10.6 and earlier)       
        compiler.blacklist  *gcc* {clang < 300}
 
+    # fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
+    # libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
+    # inclusion of <type_traits> which is not libstdc++ compatible
 
+    platform darwin {
+        if {${configure.cxx_stdlib} eq "libstdc++"} {
+            build.env-append \
+                CPPFLAGS=-DBOOST_NO_CXX11_RVALUE_REFERENCES
+            destroot.env-append \
+                CPPFLAGS=-DBOOST_NO_CXX11_RVALUE_REFERENCES
+        }
+    }
+
     #WORKAROUND TO AVOID CONFLICTS WITH ANOTHER BOB PACKAGES (DELETING THE ROOT __INIT_FILES)
 
     post-destroot {

Modified: trunk/dports/python/py-bob-io-base/Portfile
===================================================================
--- trunk/dports/python/py-bob-io-base/Portfile	2016-01-21 14:35:56 UTC (rev 144926)
+++ trunk/dports/python/py-bob-io-base/Portfile	2016-01-21 15:30:25 UTC (rev 144927)
@@ -72,7 +72,19 @@
           # blacklist older compilers that don't support -std=c++0x (10.6 and earlier)       
        compiler.blacklist  *gcc* {clang < 300}
 
+    # fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
+    # libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
+    # inclusion of <type_traits> which is not libstdc++ compatible
 
+    platform darwin {
+        if {${configure.cxx_stdlib} eq "libstdc++"} {
+            build.env-append \
+                CPPFLAGS=-DBOOST_NO_CXX11_RVALUE_REFERENCES
+            destroot.env-append \
+                CPPFLAGS=-DBOOST_NO_CXX11_RVALUE_REFERENCES
+        }
+    }
+
     #WORKAROUND TO AVOID CONFLICTS WITH ANOTHER BOB PACKAGES (DELETING THE ROOT __INIT_FILES)
 
     post-destroot {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160121/0889f6e8/attachment.html>


More information about the macports-changes mailing list