[MacPorts] #18359: Guide has wrong advice about variants

MacPorts noreply at macports.org
Thu Feb 5 16:52:49 PST 2009


#18359: Guide has wrong advice about variants
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  markd@…                
     Type:  defect                   |      Status:  new                    
 Priority:  Normal                   |   Milestone:  Website & Documentation
Component:  guide                    |     Version:  1.7.0                  
 Keywords:                           |        Port:                         
-------------------------------------+--------------------------------------

Comment(by ryandesign@…):

 True, platform variants are auto-selected by MacPorts regardless of what
 port command is being run, and that includes running the portindex. And
 users may have variants set in their variants.conf so that they are auto-
 selected. So the kinds of things you should not do directly in a variant
 or directly in a portfile are:

  * output a message
  * return an error code
  * run a program that is in the port's dependencies

 If you need to do these things, do them in a phase (be it inside a variant
 or not). Otherwise they run even at times when you don't want them to,
 such as portindex or port info.

-- 
Ticket URL: <http://trac.macports.org/ticket/18359#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list