[98435] trunk/dports/devel/boost/Portfile
adfernandes at macports.org
adfernandes at macports.org
Fri Oct 5 10:03:09 PDT 2012
Revision: 98435
http://trac.macports.org//changeset/98435
Author: adfernandes at macports.org
Date: 2012-10-05 10:03:08 -0700 (Fri, 05 Oct 2012)
Log Message:
-----------
devel/boost: add support for python33, py3* conflicts with openmpi, distable distcc and ccache since they build incorrect code
Modified Paths:
--------------
trunk/dports/devel/boost/Portfile
Modified: trunk/dports/devel/boost/Portfile
===================================================================
--- trunk/dports/devel/boost/Portfile 2012-10-05 17:02:14 UTC (rev 98434)
+++ trunk/dports/devel/boost/Portfile 2012-10-05 17:03:08 UTC (rev 98435)
@@ -68,26 +68,15 @@
configure.universal_args
-post-configure {
+# It turns out that ccache and distcc can produce boost libraries that, although they
+# compile without warning, have all sorts of runtime errors especially with pointer corruption.
+# Since most people will now use MacPorts' pre-compiled boost, this should not be a problem.
+configure.ccache no
+configure.distcc no
+post-configure {
reinplace -E "s|-install_name \"|&${prefix}/lib/|" \
${worksrcpath}/tools/build/v2/tools/darwin.jam
-
- # Modified from 'portconfigure.tcl':
- # set pre-compiler filter to use (ccache/distcc), if any.
- if {[tbool configure.ccache] && [tbool configure.distcc]} {
- set filter "ccache "
- ui_msg "Warning: boost does not support distcc with ccache"
- } elseif {[tbool configure.ccache]} {
- set filter "ccache "
- } elseif {[tbool configure.distcc]} {
- set filter "distcc "
- } else {
- set filter ""
- }
- # should support different SDKs (https://trac.macports.org/ticket/33085)
- write_jam "using darwin : : ${filter}${configure.cxx} ;"
-
}
# Although bjam can supposedly use parallel builds, it has random failures. See #28878 and #23531.
@@ -138,7 +127,7 @@
}
}
-set pythons_suffixes {25 26 27 31 32}
+set pythons_suffixes {25 26 27 31 32 33}
set pythons_ports {}
foreach s ${pythons_suffixes} {
@@ -161,8 +150,10 @@
set v [string index ${s} 0].[string index ${s} 1]
set i [lsearch -exact ${pythons_ports} ${p}]
set c [lreplace ${pythons_ports} ${i} ${i}]
+ # python 3k conflicts with openmpi (https://svn.boost.org/trac/boost/ticket/4657)
+ if { ${s} > 30 } { set o "openmpi" } else { set o "" }
eval [subst {
- variant ${p} description "Build Boost.Python for Python ${v}" conflicts ${c} debug {
+ variant ${p} description "Build Boost.Python for Python ${v}" conflicts ${c} ${o} debug {
# There is a conflict with python and debug support, so we should really change the 'variant' line above
# to end with "conflicts ${c} debug" above. However, we leave it enabled for those who want to try it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121005/fcdfeefb/attachment-0001.html>
More information about the macports-changes
mailing list