[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

A tool to help making (build) dependencies right.



Hello developpers,

I just wrote a perl script to help getting dependencies and especially
build-dependencies right. It is at

http://people.debian.org/~ballombe/depcheck

Run just once `depcheck -d' to make the database of essentials files.
Then run `depcheck -b debian/rules build' in your package tree.
After building your package, it will output the list of packages
needed to complete the build, outside of required and build-essential one.

It is a little simplistic since it use strace to get the list of files
accessed. Maybe libtrick should be faster ? Others ideas ?
Effort has been made to make the final computation not too slow.

An example with my package (PARI)

depcheck -b debian/rules build-indep
make doc
...
dpkg: /usr/share/texmf/dvips/config/config.ps not found.
dpkg: /usr/share/texmf/web2c/tex.fmt not found.
dpkg: /usr/share/texmf/web2c/texmf.cnf not found.
Files used: 49 total, 25 outside database.
Packages used:
tetex-base
tetex-bin
tetex-extra
tetex-lib

It was easy to guess that tetex-bin is needed since it uses tex. But it was
difficult to guess that it uses some fonts only available in 'tetex-extra'.

It can be used also for run-time dependencies as well.

Enjoy!

Bill. <ballombe@debian.org>
Please CC to me!



Reply to: