Bug 194689

Summary: ports-mgmt/pkg: pkg needs a stand-alone equivalent to portupgrade's "pkg_sort".
Product: Ports & Packages Reporter: roberthuff
Component: Individual Port(s)Assignee: freebsd-pkg mailing list <pkg>
Status: New ---    
Severity: Affects Many People CC: bapt, roberthuff, rodrigo.freebsd, w.schwarzenfeld
Priority: Normal Keywords: easy, feature
Version: Latest   
Hardware: Any   
OS: Any   

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
Status?