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

Re: Build-Depends

On Sat, Feb 24, 2001 at 11:02:45PM +0000, Julian Gilbey wrote:
> On Fri, Feb 23, 2001 at 03:38:00PM +0100, Enrique Robledo Arnuncio wrote:
> > 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).
> Be warned, though: my experience of strace is that it doesn't always
> succeed, possibly because of vforks.  I think the idea was to have a
> variant of fakeroot to trace open's and exec's instead of the other
> things it traces; there were all sorts of conflicts when fakeroot used
> to try to do everything.  The code is basically present in the
> fakeroot source, it just needs a bit of work.  (Any volunteers?)

Huh? The only thing that's needed to make it work is to put dummy set*id
functions in fakeroot. That's what I did, and it works fine. 0.3
overrides vforks and makes them forks, and those running later 2.2 or
2.4 can use the -F option in strace to do the same thing.

Taral <taral@taral.net>
Please use PGP/GPG to send me mail.
"Never ascribe to malice what can as easily be put down to stupidity."

Attachment: pgplKIPegw7Nk.pgp
Description: PGP signature

Reply to: