Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#12204 closed defect (fixed)

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 (Ryan Carsten Schmidt), afb@…, pguyot (Paul Guyot)
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 (6)

comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ehainry@… ryandesign@… added

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

comment:2 Changed 17 years ago by nox@…

Milestone: MacPorts base bugs
Priority: ExpectedNormal

comment:3 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: afb@… pguyot@… added
Summary: port outdated fails with non-numerical revisionport 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.

comment:4 Changed 17 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

comment:5 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.6
Note: See TracTickets for help on using tickets.