Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate deprecated ports #138

Open
chrstphrchvz opened this issue Nov 12, 2019 · 1 comment
Open

Indicate deprecated ports #138

chrstphrchvz opened this issue Nov 12, 2019 · 1 comment
Labels
help wanted Extra attention is needed port info Provide more details info about ports

Comments

@chrstphrchvz
Copy link

Similar to how a prominent yellow-box message is displayed obsolete ports, I think it would be nice for a similar message to be displayed for ports that have been marked as deprecated (using the deprecated portgroup), with information similar to as displayed by the port command: details on why it's deprecated (i.e. it is EOL or unmaintained upstream, or because MacPorts has encountered issues maintaining it) and that it could potentially be removed from MacPorts in the future.

(The deprecated portgroup also allows specifying a maximum compatible OS or Xcode version for a port, but I'm not sure those are reasons to display a deprecation message on the port's page, since they do not normally display such a notice during installation on compatible systems.)

@mojca
Copy link
Member

mojca commented Jul 21, 2021

The information about the port being obsolete comes straight from PortIndex whenever there's a replaced_by keyword in it.

I checked the obsolete PG, but not even port info tells you that the port is deprecated (I tested with ruby23).

Nearly all the info about ports comes directly from the PortIndex. Occasionally a bit of extra work is done by parsing something like port variants <portname> to extract descriptions of the variants.

We need to have an easy-to-get way of extracting the deprecation info from the port. How can we do that (other than writing a dedicated tcl script)?

@jmroot

@mojca mojca added help wanted Extra attention is needed port info Provide more details info about ports labels Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed port info Provide more details info about ports
Projects
None yet
Development

No branches or pull requests

2 participants