When a module uses a build system such as RPM, the build dependancies are already available through BuildRequires: tags in the RPM spec file. It should be possible to automatically extract this information and use it to determine build ordering amongst modules. Another alternative is to be able to extract the deps from magic comments in the rollingbuild.sh control file,

Copyright (C) 2004-2006, the Gna! people. Posted items are owned by whoever posted them.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.