[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 19:26:24 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:
-------------------------------------+--------------------------------------
Comment(by arno+macports@…):
I've looked into this further and it's not an issue with '0's, but with
how the version string is being manipulated.
As near as I can tell, the code is meant to split a version string into
groups of 3 digits. 1.123456 would turn into 1.123.456. Unfortunately it's
turning 1.1234 into 1.123.400 instead of 1.123.004. At least, I assume
that 1.123.004 is the intended value. I'm not really sure why this version
manipulation is required. Hopefully JMR can comment there.
The relevant code is the 'perl5_convert_version' method of
[https://trac.macports.org/browser/trunk/dports/_resources/port1.0/group/perl5-1.0.tcl].
I started modifying this to prepend '0's instead of appending them, but
the return uses 'scan' which strips out the leading '0's anyway. Again,
it'll be up to JMR to decide whether the scan should be dropped or if the
version alteration is needed at all.
--
Ticket URL: <https://trac.macports.org/ticket/30833#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list