New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #12204 (closed defect: fixed)

Opened 3 years ago

Last modified 3 months ago

port outdated fails with non-numeric revisions

Reported by: ehainry@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.6
Component: base Version: 1.4.42
Keywords: Cc: ehainry@…, ryandesign@…, afb@…, pguyot@…
Port:

Description

I have MPlayer @1.0rc1_try3 installed but port outdated reports it as being Mplayer 1.0rc1_ and hence thinks it is older than the current 1.0rc1_try3:

$ port installed MPlayer
The following ports are currently installed:
MPlayer @1.0rc1_try3+binary_codecs+caca+darwin_8+darwin_powerpc+macosx+osd+x11+xvid (active)

$ port -v outdated MPlayer
The following installed ports are outdated:
MPlayer                        1.0rc1_ < 1.0rc1_try3

Either there is a bug in outdated code, either the use of alphabetic characters in revision should be forbidden.

Change History

Changed 3 years ago by ryandesign@…

  • cc ehainry@…, ryandesign@… added

The use of non-integer values in the revision field should be forbidden.

Changed 3 years ago by nox@…

  • priority changed from Expected to Normal
  • milestone set to MacPorts base bugs

Changed 2 years ago by ryandesign@…

  • cc afb@…, pguyot@… added
  • summary changed from port outdated fails with non-numerical revision to port outdated fails with non-numeric revisions

So as I said above, it is an error for the revision to be non-numeric.

The MPlayer port's revision was fixed in r27329.

port lint was updated to check for non-numeric revisions (among other things) in r29028.

I checked with

grep -E '^revision[[:space:]]+.*[^[:space:][:digit:]].*$' */*/Portfile

to see if there are any other ports that have non-numeric revisions. The only one is libffi. This came about as a result of r32900. Once Paul fixes that, we can close this ticket.

Changed 2 years ago by pguyot@…

  • status changed from new to closed
  • resolution set to fixed

Changed 15 months ago by toby@…

  • milestone changed from MacPorts base bugs to MacPorts Future

Milestone MacPorts base bugs deleted

Changed 3 months ago by jmr@…

  • milestone changed from MacPorts Future to MacPorts 1.6
Note: See TracTickets for help on using tickets.