variants not preserved on upgrade

Jeremy Huddleston jeremyhu at macports.org
Mon Aug 2 02:33:23 PDT 2010


Ah, you're right...


Index: Portfile
===================================================================
--- Portfile	(revision 70213)
+++ Portfile	(working copy)
@@ -114,7 +114,7 @@
     set i [lsearch -exact ${pythons_ports} ${p}]
     set c [lreplace ${pythons_ports} ${i} ${i}]
     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} debug openmpi {
             # Cannot build debug variants with openmpi and python variants as per the following:
             # <http://trac.macports.org/ticket/23667> and <https://svn.boost.org/trac/boost/ticket/4461>
             patchfiles-append   patch-tools-build-v2-tools-python.jam.diff
@@ -143,7 +143,7 @@
     build.args-append   -sICU_PATH=${prefix}
 }
 
-variant openmpi description {Build Boost.MPI} conflicts debug {
+variant openmpi description {Build Boost.MPI} conflicts debug universal {
     # Cannot build debug variants with openmpi and python variants as per the following:
     # <http://trac.macports.org/ticket/23667> and <https://svn.boost.org/trac/boost/ticket/4461>
     depends_lib-append  port:openmpi



On Aug 2, 2010, at 01:15, Rainer Müller wrote:

> On 2010-08-02 07:48 , Jeremy Huddleston wrote:
>> From the Portfile:
>> 
>> foreach s ${pythons_suffixes} {
>>    set p python${s}
>>    set v [string index ${s} 0].[string index ${s} 1] 
>>    set i [lsearch -exact ${pythons_ports} ${p}]  
>>    set c [lreplace ${pythons_ports} ${i} ${i}]
>>    eval [subst {
>>        variant ${p} description "Build Boost.Python for Python ${v}" conflicts ${c} debug {
>>            # Cannot build debug variants with openmpi and python variants as per the following:
>>            # <http://trac.macports.org/ticket/23667> and <https://svn.boost.org/trac/boost/ticket/4461>
> 
> That only marks each +pythonXY as conflicting with the other python
> variants and additionally with +debug, but not +openmpi.
> 
> --- snip ---
> 
> $ port variants boost
> boost has the variants:
>   debug: Builds debug versions of the libraries as well
>     * conflicts with openmpi
> ...
>   openmpi: Build Boost.MPI
>     * conflicts with debug
> ...
>   python26: Build Boost.Python for Python 2.6
>     * conflicts with debug python24 python25 python27 python31
> 
> --- snap ---
> 
> No conflict between +openmpi and +python26, so I think port behaves
> correctly at this point.
> 
> Rainer



More information about the macports-dev mailing list