Changeset 98435


Ignore:
Timestamp:
Oct 5, 2012, 5:03:08 PM (12 years ago)
Author:
adfernandes@…
Message:

devel/boost: add support for python33, py3* conflicts with openmpi, distable distcc and ccache since they build incorrect code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/boost/Portfile

    r98344 r98435  
    6969configure.universal_args
    7070
     71# It turns out that ccache and distcc can produce boost libraries that, although they
     72# compile without warning, have all sorts of runtime errors especially with pointer corruption.
     73# Since most people will now use MacPorts' pre-compiled boost, this should not be a problem.
     74configure.ccache    no
     75configure.distcc    no
     76
    7177post-configure {
    72 
    7378    reinplace -E "s|-install_name \"|&${prefix}/lib/|" \
    7479        ${worksrcpath}/tools/build/v2/tools/darwin.jam
    75 
    76     # Modified from 'portconfigure.tcl':
    77     # set pre-compiler filter to use (ccache/distcc), if any.
    78     if {[tbool configure.ccache] && [tbool configure.distcc]} {
    79         set filter "ccache "
    80         ui_msg "Warning: boost does not support distcc with ccache"
    81     } elseif {[tbool configure.ccache]} {
    82         set filter "ccache "
    83     } elseif {[tbool configure.distcc]} {
    84         set filter "distcc "
    85     } else {
    86         set filter ""
    87     }
    88     # should support different SDKs (https://trac.macports.org/ticket/33085)
    89     write_jam "using darwin : : ${filter}${configure.cxx} ;"
    90 
    9180}
    9281
     
    139128}
    140129
    141 set pythons_suffixes {25 26 27 31 32}
     130set pythons_suffixes {25 26 27 31 32 33}
    142131
    143132set pythons_ports {}
     
    162151    set i [lsearch -exact ${pythons_ports} ${p}]
    163152    set c [lreplace ${pythons_ports} ${i} ${i}]
     153    # python 3k conflicts with openmpi (https://svn.boost.org/trac/boost/ticket/4657)
     154    if { ${s} > 30 } { set o "openmpi" } else { set o "" }
    164155    eval [subst {
    165         variant ${p} description "Build Boost.Python for Python ${v}" conflicts ${c} debug {
     156        variant ${p} description "Build Boost.Python for Python ${v}" conflicts ${c} ${o} debug {
    166157
    167158            # There is a conflict with python and debug support, so we should really change the 'variant' line above
Note: See TracChangeset for help on using the changeset viewer.