-
Notifications
You must be signed in to change notification settings - Fork 162
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
ports-mgmt/portgraph generated visualizations could be helpful. #1136
Comments
As I'm involved in the poudriere activity and the author of portgraph, I allow myself to intervene in this proposal. Firstly, thank you for the interest in this tool. Your proposal aligns with the reason why I created this tool in the first place. Originally, it was to address a "bug": why did a database package need to install Qt? This led me to discover the option that installed Qt and propose an alternative. Subsequently, it became about the interest in visualizing dependencies between ports. I had plans to create a website akin to freshports or something similar to better visualize these dependencies, but time flies and life sometimes has other priorities. The software was left as it was for a few years (the documentation indicates py36...), but recently Kenneth Raplee did a good refactor, and I'll be releasing a new version in a few days. All of this is to say that portgraph serves this purpose, but... Behind it, you should see that portgraph is essentially just Furthermore, portgraph is written in Python, which would require installing Python with poudriere. Personally, this isn't a problem for me as I use it regularly, but I understand that it might not be feasible here. I would even say it should be rejected. I've considered rewriting it in shell multiple times to avoid this Python dependency. In a sense, I would say keep the idea - but perhaps more towards FreshPorts - but it would need to be rewritten in shell. |
Prerequisites
What is your proposal?
Add an option to support ports-mgmt/portgraph in the web interface of poudriere, which might, say, make the Package column a clickable element to instigate generation of the graph into an accessible sub-directory and then load that file into a new tab in the browser, or, perhaps add a column in the ports lists like the log file, say "graph" that would say "generate" and, if generated, change to "show."I like the visualization. Others might find it useful too.
What is the existing behavior, if any?
The current Dependency Graph is a fine text file, but lacks the graphic panache of portgraph, which produces very nice svg files that are fully compatible with modern browsers.What is the motivation / use case for the change?
I would find it helpful in tracking down port dependencies in browser and for quickly validating port option changes that might add or subtract dependencies.Did you consider any alternatives?
Loading the Dependency Graph text file into an editor like VSCodium is a usable solution for tracking down dependencies in pairwise fashion, but far slower than simply seeing them mapped out in a lovely graph.Is this really a ports feature request?
It is a presentation layer request, somewhat superficial but pretty coolio.Example
On the other hand, it does have a lot of dependencies, so it is not a "light" addition, but pretty cool that you can easily see how that is true.
Additional context
It is perhaps a somewhat superfluous request, but it is a nice visualization and the live-linking of nodes to freshports is pretty snazzy.
The text was updated successfully, but these errors were encountered: