Re: Build-Depends
On Fri, Feb 23, 2001 at 10:24:09AM +0000, Jules Bean wrote:
> A script to run build under strace -e trace=file and then use dpkg -S
> to find the files would also work; I think it's pretty slow, and I'm
> sure I remember another disadvantage (but I can't remember it). Maybe
> someone would like to hack something together.
>
> Jules
>
Ben Collins wrote such a script some time ago:
http://auric.debian.org/~bcollins/genbuilddeps_0.3.dsc
It strace-runs dpkg-buildpackage, gets a list of used files from the
arguments of "open" and "exec" calls, an prints out a list of the
packages that provide those files (using /var/lib/dpkg/info/*.list
files).
As Matt has already noted, auto-apt can do the same thing (using a
different mechanism). The main difference is that auto-apt will also
generate dependency information about packages which are not
installed.
As Brian has said before, this approach is not a perfect solution, but
I think it can be very useful.
Enrique.
Reply to: