Bug 245497 - [NEW PORT] ports-mgmt/nakedports: Utility for finding unmaintained ports
Summary: [NEW PORT] ports-mgmt/nakedports: Utility for finding unmaintained ports
Status: Closed Not Accepted
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Eric Melville
URL:
Keywords: feature, needs-patch, needs-qa
: 245498 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-04-10 01:36 UTC by eric
Modified: 2020-04-29 06:11 UTC (History)
1 user (show)

See Also:
koobs: maintainer-feedback? (eric)


Attachments
port content (2.45 KB, patch)
2020-04-10 01:36 UTC, eric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eric 2020-04-10 01:36:18 UTC
Created attachment 213238 [details]
port content

Quick listing of installed ports that are unmaintained, to help them find a home and help potential maintainers find something they may be interested in.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2020-04-10 02:23:18 UTC
*** Bug 245498 has been marked as a duplicate of this bug. ***
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2020-04-10 02:27:53 UTC
Review items:

- Should probably use DISTVERSIONPREFIX=v
- Installs .py script but does not USES=python
- Set USES=python:<version-spec> to the versions this script supports
- Use USE_PYTHON=concurrent [1]
- pkg-descr: WWW URL is 404

[1] https://wiki.freebsd.org/Python/PortsPolicy#concurrent


Triage: Reporter is committer, assign accordingly
Comment 3 Tobias Kortkamp freebsd_committer freebsd_triage 2020-04-10 05:55:00 UTC
The script is super simple and can basically be replaced with a one liner:

pkg query -e '%m = "ports@FreeBSD.org"' '%o (%w)'

I wonder if it would not be better to just add it as a new alias
to /usr/local/etc/pkg.conf instead (called `pkg unmaintained` maybe).
Comment 4 eric 2020-04-10 08:36:58 UTC
I would be fine with an alias. All I wanted was an easy way to get this list without typing in a chaotic command that average users would never remember. After all, my intent was to make it easier for average users to contribute to the project, and picking up unmaintained ports seems like a good way to do that.

The external script does give the flexibility to query the entire repository database instead of only locally installed, or compensate for future changes like an additional attribute or maintainer address being used to denote unmaintained ports. That does not make this script essential, but it is something to consider.
Comment 5 Tobias Kortkamp freebsd_committer freebsd_triage 2020-04-10 08:49:07 UTC
(In reply to eric from comment #4)
> The external script does give the flexibility to query the entire
> repository database instead of only locally installed,

Using 'pkg rquery' instead of 'pkg query' would do the same.

> compensate for future changes like an additional attribute or
> maintainer address being used to denote unmaintained ports.

I think this is unlikely, but if that would happen pkg would surely
get the appropriate new option to query for that.
Comment 6 eric 2020-04-10 13:33:43 UTC
Fine by me.

Where is the source for that, though? I scoured src/ and ports/ and have nothing so far.
Comment 7 Tobias Kortkamp freebsd_committer freebsd_triage 2020-04-10 13:56:24 UTC
The pkg repository is here: https://github.com/freebsd/pkg

Aliases are defined in src/pkg.conf.sample
Comment 8 eric 2020-04-10 16:03:41 UTC
Oh, being in a different repository should would explain that. Filed PR-1826 over there, feel free to close this.
Comment 9 Tobias Kortkamp freebsd_committer freebsd_triage 2020-04-29 06:11:29 UTC
Thanks. I think you should give that PR a better title and better summary
because it might not be immediately obvious to the pkg maintainers what
it does at the moment.