Ticket #11873 (assigned defect)
Need alternate floating point version comparison function for perl5 portgroup ports
| Reported by: | vinc17@… | Owned by: | eridius@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts base bugs |
| Component: | base | Version: | |
| Keywords: | Cc: | vinc17@…, eridius@…, boeyms@…, ryandesign@… | |
| Port: |
Description
"port outdated" doesn't list p5-xml-libxml, though the latest version isn't installed:
prunille:~> port outdated The following installed ports are outdated: goffice 0.3.5_0 < 0.3.8_0 pango 1.16.2_0 < 1.16.4_0 sqlite3 3.3.16_0 < 3.3.17_0 wormux 0.8alpha1_0 < 0.7.9_0 prunille:~> port installed p5-xml-libxml The following ports are currently installed: p5-xml-libxml @1.62001_0 (active) prunille:~> port list p5-xml-libxml p5-xml-libxml @1.63 perl/p5-xml-libxml p5-xml-libxml @1.62001 perl/p5-xml-libxml prunille:~> port info p5-xml-libxml Warning: Found 2 port p5-xml-libxml definitions, displaying first one. p5-xml-libxml 1.63, perl/p5-xml-libxml (Variants: universal) http://search.cpan.org/~msergeant/XML-LibXML-1.63/ [...]
and the primary PortIndex file says that the version is 1.63.
I wonder if "port outdated" doesn't list p5-xml-libxml because 62001 > 63. Instead, the comparison should be done on floating-point numbers 1.63 and 1.62001 (AFAIK, this is the rule for Perl).
Change History
Note: See
TracTickets for help on using
tickets.

