[MacPorts] #28084: Registry error for ports with underscore ('_') in version

MacPorts noreply at macports.org
Fri Jan 21 15:50:53 PST 2011


#28084: Registry error for ports with underscore ('_') in version
---------------------------------+------------------------------------------
 Reporter:  ken@…                |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.9.2                                
 Keywords:  registry version     |        Port:                                       
---------------------------------+------------------------------------------
 If a port has an underscore ('_') in its version, then any attempt to
 install it will result in a registry error:

 {{{
 Error: Target org.macports.activate returned: Registry error: No port of
 <port> installed.
 }}}

 Examples include aspell-dict-it, whose version is 2.2_20050523-0, and
 aspell-dict-pl, whose version is 6.0_20061121-0.

 I have worked around this problem by editing the Portfile to a) manually
 substitute the original value of version into the distname, and b)
 changing the underscore in the version to a dash ('-').

 I suspect that something in the registry lookup is scanning for the
 "_${revision}" that's appended to the port version, but it is scanning
 forward for the underscore starting at the beginning of the string instead
 of scanning backward from the end.

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


More information about the macports-tickets mailing list