enhancement: quickdepopt (??) command that resolves isinst Optional: dependencies #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(I would send an email but i think it will not get through.)
Regarding your "automatic build and include all Optional: dependencies" that i rejected as "not a thing for me".
It even seems the code already exists (and did by then), called "soft dependencies", as i know see!
What i would really love to see is that if i call "quickdep" or, as envisioned above, a dedicated command, i get an unfolded list of all hard- as well as all installed soft dependencies.
This is something that is impossible to do today.
Then i can as before "simply" install the soft dependencies that i want, and can correctly include those in the dependency tree when rebuilding!
(But to me that "simply turn soft to hard dependencies" isn't it, as sometimes the resulting list is .. more than just immense.)
Thank you! (Also for fixing vorbis-tools build with gcc 14)
Hi @sdaoden and thanks for your feedback!
Using the master branch of this repo, I tested "prt-get quickdep ffmpeg", both with and without the resolution of optional dependencies. Here are the results with optional dependency resolution disabled:
Here are the results with optional dependency resolution enabled:
The second command obviously generates a bigger list, but the list does not include all optional dependencies, only the ones that are presently installed. For example, the quickdep list omits libsoxr, rubberband, and svt-av1, even though they appear among the optional dependencies in the ffmpeg Pkgfile.
Toggling optional dependency resolution can be done at the command line (using the --softdeps switch as shown above), or in the prt-get config file. However, if you enable this feature in the config file, then the only way to override it at the command line is with the awkward option "--config-set='softdeps no'". In the future I might consider adding a less cumbersome command-line switch to temporarily disable optional dependency resolution.
Oh yes? It seems i looked overly superficially and had your posting in the back of my head.
Indeed i see now "(not greedy) || ..isInstalled()"!
And that really means --softdeps argument to quickdep does exactly this?
This is very cool! Thanks for that!
Is this to be release soon? ... I think i will clone the repo and try that out for real. It is exactly what i need, then!
Ciao!!
A forked repo on this Gitea instance is probably not the best place to discuss such plans. I suggest continuing the mailing list thread, or opening an issue or pull request under core/prt-get. The mailing list is arguably more appropriate, giving the wider CRUX community the chance to express a preference for one of the branches in this repo, before updating a core port.
This repo has another branch called mixed-upinst, which merges "install" and "update" so that you can issue a prt-get command with a combination of both installed and not-yet-installed targets. The master branch still retains the original distinction between "install" and "update". I created the mixed-upinst branch in response to an item on the TODO list, but maybe there's not much demand for that feature any more. Restarting the mailing list thread would be the best way to gauge the community's opinion, and then the community's preferred branch could be merged into the official repo.