Add tools to update debian/control's build dependencies.
authorLars Wirzenius <lars@catalyst.net.nz>
Fri, 28 May 2010 04:29:48 +0000 (16:29 +1200)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 2 Jun 2010 11:14:36 +0000 (07:14 -0400)
commit2fcc4fe94e87f08baf6bad8b4578895f29fb5a99
tree3f9969e194ea1bd7b4724c30c2c13322e8527ccf
parent469b32f3180831b1946257b6bcb07699c713f226
Add tools to update debian/control's build dependencies.

The canonical list of Perl module dependencies are in
C4::Installer::PerlDependencies::PERL_DEPS now. Add a script
(debian/list-deps) to turn that into a list of Debian package names.

Because that is a slow process, and the output rarely changes, do
not do that at build time. Also, doing it at build time would require
modifying debian/control in evil ways.

Instead, add another tool, debian/update-control, which reads the
new file debian/control.in, and adds the output of debian/list-deps to
Build-Depends and creates a new debian/control.

debian/control.in is the master file. If changes are needed, that should
be edited. For performance and convenience reasons, the output is also kept
in git, but don't edit debian/control directly, please. Such changes
might get lost by the next commit by someone else.

Whenever PERL_DEPS changes, debian/update-control should be run as well
and the result committed to git.

This is not quite as automatic as it might be, but should be good enough.
It avoids keeping the list of Perl modules in two places.

Note that since it seems impossible to automatically figure out the Debian
package version that corresponds to a Perl module version, I have not
tried to do that at all.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Installer/PerlDependencies.pm
debian/control
debian/control.in [new file with mode: 0644]
debian/list-deps [new file with mode: 0755]
debian/update-control [new file with mode: 0755]