[MacPorts] #40042: R: Inconsistent variant specification: R variant +x11 is required by at least one of +cairo +accelerate +gcc47 +recommended, but specified -x11 (was: port clean all fails at R with variants)

MacPorts noreply at macports.org
Wed Aug 7 21:20:06 PDT 2013


#40042: R: Inconsistent variant specification: R variant +x11 is required by at
least one of +cairo +accelerate +gcc47 +recommended, but specified -x11
-------------------------+---------------------------
  Reporter:  c.herbig@…  |      Owner:  kjell.konis@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.2.0
Resolution:              |   Keywords:
      Port:  R           |
-------------------------+---------------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => kjell.konis@…
 * component:  base => ports
 * port:   => R


Comment:

 I don't think we need to make any changes to base. This is simply a bug in
 the way R is specifying its default variants.

 R specifies that +cairo and +x11 are default variants, and +cairo requires
 +x11. So logically when the user has specified -x11, there will be an
 error when MacPorts attempts to then select +cairo. R should only make
 +cairo a default variant if the user has not already specified that they
 want to disable x11.

 {{{
 default_variants +x11
 if {[variant_isset x11]} {
     default_variants +cairo
 }
 }}}

 But the fact that +cairo requires +x11 is weird in and of itself, since
 the cairo port does not require x11 (it merely enables that option by
 default, but the user could disable it). If R requires that cairo be
 installed with its +x11 variant, then it should enforce that requirement
 using the active_variants 1.1 portgroup. And if it does not require that,
 then its +cairo variant should not require its +x11 variant.

-- 
Ticket URL: <https://trac.macports.org/ticket/40042#comment:2>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list