[MacPorts] #13410: Add mysql5-devel variant to py25-mysql

MacPorts trac at macosforge.org
Sat Feb 2 14:29:37 PST 2008


#13410: Add mysql5-devel variant to py25-mysql
--------------------------------+-------------------------------------------
  Reporter:  ebgssth at gmail.com  |       Owner:  stechert at macports.org
      Type:  enhancement        |      Status:  reopened             
  Priority:  Normal             |   Milestone:  Port Enhancements    
 Component:  ports              |     Version:  1.5.2                
Resolution:                     |    Keywords:  python mysql         
--------------------------------+-------------------------------------------
Changes (by ryandesign at macports.org):

 * cc: stechert at macports.org (removed)
 * cc: ryandesign at macports.org (added)
  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 This was not a good change. First, hyphens are illegal in variant names
 (#14141, #14147). Second, there should not be variants that depend on
 *-devel versions of ports if the regular version would also work. Rather,
 the port should depend on the normal version of the port in such a way
 that if the corresponding *-devel version is already installed, it will be
 used instead. This is not yet documented because I'm bringing it up on
 macports-dev first.

 I am modifying mysql5-devel so that it installs files into the same place
 as mysql5; see #14142. Then (if it does not already) it should work as a
 drop-in replacement for mysql5.

 I will attach a new patch which makes the following changes:

  * Fixes patchfile names to match guidelines
  * Adds variant descriptions
  * Removes mysql5-devel variant and adds mysql5 variant which depends on
 ${prefix}/bin/mysql_config5 so that the mysql5-devel port would also
 satisfy the dependency
  * Makes mysql5 the default variant, if mysql3 or mysql4 have not been
 selected
  * Fixes mysql3 variant (was broken because it depended on mysql port
 which does not exist; port is called mysql3)
  * Issues a warning if none of mysql3, mysql4 or mysql5 are selected (user
 would have to go out of their way to make this happen)

 If you have any questions let me know.

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13410#comment:4>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list