Bug 194689 - ports-mgmt/pkg: pkg needs a stand-alone equivalent to portupgrade's "pkg_sort".
Summary: ports-mgmt/pkg: pkg needs a stand-alone equivalent to portupgrade's "pkg_sort".
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Many People
Assignee: freebsd-pkg (Nobody)
Keywords: easy, feature
Depends on:
Reported: 2014-10-29 16:29 UTC by roberthuff
Modified: 2021-05-30 17:11 UTC (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description roberthuff 2014-10-29 16:29:58 UTC
The functionality already exists; it needs to be directly exposed.  In a private exchange Baptisse (bapt@) has said it wouldn't be hard, but there are higher priorities.

I am submitting this pr so it gets on the TODO list.
Comment 1 Baptiste Daroussin freebsd_committer 2014-10-29 16:35:17 UTC
Can you detail what is pkg_sort?
Comment 2 roberthuff 2014-10-29 16:55:50 UTC
"pkg_sort" inputs a list of ports - with or without origins or exact versions - and outputs a list of those ports sorted in dependency (if any) order.  I believe this exists withing pkg - referred to as the "working list", yes?

Input can be from stdin or a file; output is to stdout, in a format suitable for piping directly to {portmaster, portupgrade, etc.}.

Does this answer the question?
Comment 3 Baptiste Daroussin freebsd_committer 2014-10-29 16:57:35 UTC
yes :)
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-12 22:53:03 UTC