[MacPorts] #22419: variant_isset does not work for default_variants
MacPorts
noreply at macports.org
Sun Nov 8 05:29:21 PST 2009
#22419: variant_isset does not work for default_variants
----------------------------------+-----------------------------------------
Reporter: takeshi@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 1.8.1
Keywords: | Port:
----------------------------------+-----------------------------------------
When using the default variants set by platform
it seems that one should write
{{{
if {[variant_isset gcc42] || (${os.platform}=="darwin" &&
${os.major}>=10)} {
# zap
}
# zap
platform darwin 10 {}
if {[variant_isset darwin_10]} {
default_variants +gcc42
}
}}}
I would expect default_variants set by platform is valid
when variant_isset is called so variant_isset should be true
without the second condition on a machine running Snow Leopard.
Thus
}}}
in place of
{{{
if {[variant_isset gcc42]} {
# zap
}
}}}
should be sufficient.
The default variant appears to be selected so variant_isset needs fixing.
--
Ticket URL: <http://trac.macports.org/ticket/22419>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list