Which packages depend on both of the above (and thus, cannot be built)?

This is evaluated by walking the *_DEPENDS Makevars.

But, there's a catch! You have to represent the state of the ports tree at exactly the time that the cluster began the build. Fortunately, an INDEX is available for each buildenv, and that has to be used instead of portsmon's database's representation of the same metadata.