This is a little hack to dpkg-source and controllib.pl to allow for a
Source-Depends field in the general control file section. People have
been asking for it, so here it is if any one wants to write the policy
for using it.
IMO, nothing from the base list should be in the Source-Depends field.
Just non-standard -devs and special binary packages (ie. sgml, tetex,
nasm). There is no versioning of the Source-Depends either since I
didn't think it would be necessary. You may feel differently.
All it does is included the Source-Depends field into the .dsc file.
This can later be used by apt or dbuild/buildd to verify that all
needed packages are installed for building. I also made
'dpkg-source -x' check the list to make sure everything is installed,
it only gives a warning otherwise.
The hack I used for checking whether a package was installed is `dpkg
-l $buildpackage`. There is probably a better way, so feel free to fix
that. Also, I did no error checking on the field content (missing ','
and such)
The only change in controllib.pl was the Source-Depends field needed to
be added to a list of fields that required a second capitol letter.
I'll leave it up to you people as to whether or not it fulfills our needs
and to Ian as to whether or not it makes it into the dpkg source.
--
----- -- - -------- --------- ---- ------- ----- - - --- --------
Ben Collins <b.m.collins@larc.nasa.gov> Debian GNU/Linux
UnixGroup Admin - Jordan Systems Inc. bcollins@debian.org
------ -- ----- - - ------- ------- -- The Choice of the GNU Generation