-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi.
Continue this discussion: https://gist.github.com/damphat/6214499?permalink_comment_id=5333598#gistcomment-5333598
Is there a such an option in apt-rdepends? If so, this is possible.
Yes, there is:
In --build-depends mode, the possible values are: Build-Depends, Build-Depends-Indep, Build-Conflicts, Build-Conflicts-Indep.
Also, I believe it should either print the build-depends OR the Depends (controllable by a new --build-depends flag), as there are very few (if any) use-cases for a combined list including both. And whoever needs both can always run it twice, with and without the flag.
Agree.
This might be feasible, possibly best done in parse_deps(). I suggest the mark be (!) for not available, and no mark if available.
Sounds reasonable.
A new --plain flag can easily do that, perhaps using tr -d to remove the UTF (and whitespace?) characters. Indentation can be replaced with TABs, or completely stripped if --no-indent, which would imply --plain.
That would be nice.
The main purpose we need such a script is that we have a local full bootsrap derivative of the Debian distro.
And when there is a new package requirement, we:
- First check what BuildDepends it has and if they are missed in our local repository then we build them
- Second check what Depends it has and if they are missed in our local repository then we build them
The main problem is that each of these BuildDepends and Depends has its own Depends and BuildDepends and this goes recursively deep, for some packages there were 30-40 levels of recursion (sic!). And this is hardly possible to handle and select what to build first.
I thought of writing a my own script using python-apt+graph, but may be it would be possible with your script.
Thank you.
P.S. Just realized that it won't be possible to get/show more than a first level of the dependencies until we build first packages and put them in our local repository (just because apt-cache knows nothing about Deps/BuildDeps of these packages until we put them in the apt cache).
The only useful way is to support two repositories: from the fist one we take all the dependencies (official Debian repo where all the packages already exist), from the second one we just check the existence of the packages (our local repo) and decide what we have to build.
But that would be too custom script, not general-purpose.