Gentoo Archives: gentoo-dev

From: Chris Houser <chouser@g.o>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] A wishlist
Date: Mon, 15 Oct 2001 06:45:32
Message-Id: 20011015084523.A56911@plato.zk3.dec.com
In Reply to: Re: [gentoo-dev] A wishlist by Dan Armak
1 Dan Armak wrote: [Sun Oct 14 2001, 6:47:59PM EDT]
2 > Another item: an automated dependency checker.
3 >
4 > It would build a file->package database from /var/db/pkg and update it
5 > whenever a request for a non-registered file is made.
6
7 This is done, although not well documented:
8 gentoo-src/portage/bin/pdb
9
10 > It would run ldd on all dynamic exes in CONTENTS of a requested package, find
11 > which packages the linked libraries were from and list the packages.
12
13 This isn't hard -- I wrote a little perl script to do this, but lost it
14 in my reiserfs fiasco. I will try to write it again -- maybe in python
15 this time.
16
17 > With an interface to portage.py, it could caculate the DEPEND of the ebuild
18 > and list missed deps.
19
20 It could assist it calculating the DEPEND, but there's no good way for
21 it to figure out version numbers, I think. It could list missing deps,
22 and the ebuild author would have to make judgement calls about which
23 version to require.
24
25 > Also, maybe this Subterfuge can make a list of programs called by the ebuild
26 > during emerge (make, gcc, ld, perl, whatever) and look those up too.
27
28 Hm! Interesting idea. We've been discussing having emerge do everything
29 accept the merge itself as a non-root user to prevent 'make install'
30 accidents. But if subterfuge could help with this step, perhaps it
31 would be a better solution.
32
33 --Chouser