passing variants to dependencies; pre-activate check
Joshua Root
jmr at macports.org
Tue Oct 13 19:35:41 PDT 2015
On 2015-10-14 13:04 , David Strubbe wrote:
> > - Why is pre-activate code executed twice?
>
> It isn't, two pre-activate procedures have been registered and they are
> each executed once.
>
>
> Well, I only put one block of code in active variants, as below. Why
> does it end up in two different pre-activate procedures?
>
> active_variants-1.1.tcl:
>>
>> +pre-activate {
>> + ui_warn "checking active variants"
>> + _check_require_active_variants archivefetch
>> +}
Looking at the portfile, it uses the compilers portgroup as well as
active_variants. Looking at compilers, it uses active_variants itself.
So active_variants is included twice.
- Josh
More information about the macports-dev
mailing list