Our packages have missing dependencies as T640 shows, but they have also accumulated unnecessary and misplaced dependencies.
We should clean up and sanitize them to prevent building non-functional images and to prevent packages that no one (or not that package) needs from getting installed. Packages should depend on and only on things they really need.
The decision tree should be as follows:
If it is not used by scripts or templates AND has no use for end users (e.g. a library nothing imports): simply remove it. Make sure nothing else in the system uses it first! It something uses it, move it to the appropritate package. If it is not used by scripts or templates BUT it has use for end users (e.g. utilities like iftop): move to https://github.com/vyos/vyos-build/blob/current/data/live-build-config/package-lists/vyos-utils.list.chroot If it was once used but the scripts were rewritten, move to vyos-1x