Opened 7 years ago

Closed 6 years ago

#54414 closed defect (wontfix)

port search will show multiple versions of a port from different repos if versions are different

Reported by: kencu (Ken) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.4.1
Keywords: Cc: raimue (Rainer Müller)
Port:

Description

I have a local repo /opt/myports, and in there have libsdl2 @2.0.3.

$ port search libsdl2
libsdl2 @2.0.3 (devel, multimedia)
   Cross-platform multi-media development API

libsdl2 @2.0.5_1 (devel, multimedia)
   Cross-platform multi-media development API
$ port file libsdl2
/opt/myports/devel/libsdl2/Portfile

with local repo disabled:

$ port search libsdl2
libsdl2 @2.0.5_1 (devel, multimedia)
   Cross-platform multi-media development API
$ port file libsdl2
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/libsdl2/Portfile

Comment from Raimue:

Hm, indeed. That happens when the ports have different versions. Otherwise the list is made unique in the port client before printing which effectively hides the problem.

I would consider this a bug in 'port search', as libsdl2 as a port argument will always refer to the first one, so it does not make sense to print additional results.

Could you please file a ticket in Trac for that?

Rainer

Change History (4)

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

This is very much intended behaviour AIUI; the mportsearch code goes to extra trouble to return all results.

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

Also contrast with #21725.

comment:3 Changed 6 years ago by kencu (Ken)

Indeed, this certainly could be considered a 'feature'.

I think the reason this came up like this was port outdated kept showing one shadowed port as being outdated, but sudo port -v upgrade outdated never updated anything. Took me a bit to figure out what was happening.

As per 21725, showing the repo for dups would make it clear, although it's obviously a very low priority deal.

I'm fine with closing this ticket.

comment:4 Changed 6 years ago by kencu (Ken)

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.