[MacPorts] #30833: Active version of p5-xml-parser is not 2.400.0_1 but 2.40_1+universal

MacPorts noreply at macports.org
Sun Aug 21 23:40:36 PDT 2011


#30833: Active version of p5-xml-parser is not 2.400.0_1 but 2.40_1+universal
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  macports-tickets@…                   
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:                                       
Component:  ports                    |     Version:  2.0.1                                
 Keywords:                           |        Port:                                       
-------------------------------------+--------------------------------------
Changes (by dports@…):

 * cc: dports@… (added)


Comment:

 What's going on here is that the way the perl portgroup generates version
 numbers changed. (My understanding is that perl version numbers are
 floating point, i.e. 1.123.4 is supposed to be greater than 1.123.399, and
 our normal version comparison does not see it that way. See #11873 for
 more info.)

 But how or why the version numbers changed isn't actually relevant to this
 bug. The problem is that when it comes time to deactivate or uninstall the
 old version, MacPorts finds and runs the copy of the old version's
 portfile that's saved in the registry, to check for post-uninstall/post-
 deactivate hooks. The version number of that portfile ought to match the
 installed port --- and usually it does ---
 but here it doesn't, because it's using the old portfile but the latest
 version of the *portgroup*, and that's where the version conversion
 happens.

 As far as I'm aware, this doesn't actually cause any problems other than
 the ominous-looking error message. But it's sufficiently alarming that I'd
 like to do something about it... but what?

 One option would be to have base save in the registry the corresponding
 version of the portgroups used for the portfile. Another would be to use a
 different version number for the perl5 portgroup, i.e. perl5-1.0 and
 perl5-2.0. Either way, it isn't really clear what to do now, after the
 fact.

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


More information about the macports-tickets mailing list