[MacPorts] #54414: port search will show multiple versions of a port from different repos if versions are different

MacPorts noreply at macports.org
Mon Jul 3 16:41:56 UTC 2017


#54414: port search will show multiple versions of a port from different repos if
versions are different
--------------------+-------------------
 Reporter:  kencu   |      Owner:
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  base    |    Version:  2.4.1
 Keywords:          |       Port:
--------------------+-------------------
 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

--
Ticket URL: <https://trac.macports.org/ticket/54414>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list