Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] dependences
Date: Sun, 18 Jul 2004 21:14:02
Message-Id: 20040718211358.GA26723@lion.gg3.net
In Reply to: Re: [gentoo-dev] dependences by omestre
1 maillog: 18/07/2004-20:51:32(+0000): omestre types
2 >
3 > Thanks very much for all answers. But i can't
4 > extract the informations that i need. I have
5 > these informations for debian, fedora and slackware(maybe)...
6 > I will try out SuSe... but i don't have time to spend in
7 > this task. If somebody that have more skill than me in gentoo,
8 > please.. all i need is a screenshot of minimum dependences for
9 > each package in a specific gentoo installation ( more or less 500
10 > packages).
11 > I have tryed:
12 > qpkg --installed | xargs emerge --pretend --emptytree
13
14 This will make one long and hard to parse list. Better make a script that will
15 produce the output you need for a *single* package. Then call that script for
16 every package on your system. And instead of using qpkg, use the database
17 directly, it is easier.
18
19 cd /var/db/pkg
20 mkdir /tmp/dummy
21 for pkg in */*; do
22 echo "emerge $pkg"
23 env USE="-*" ROOT="/tmp/dummy" emerge --pretend --emptytree =$pkg
24 done | tee /tmp/log-that-needs-to-be-parsed
25
26 > But the USE flags were the problem. USE="", USE="-*". I did
27 > puts theses flags before xargs, before emerge (in a script), in
28 > /etc/make.conf... and nothing.
29
30 Not sure what you mean by "nothing". Maybe it is due to the fact that:
31
32 qpkg --installed | tail -n 2
33 x11-wm/metacity *
34 x11-wm/windowmaker *
35
36 I don't like the asterisks, and I don't like the color. If you really
37 insist on using "qpkg", don't forget to add "--no-color". And you will not be
38 able to find the dependencies for gtk-1.2 this way. Also, if you use "xargs",
39 add "-n 1" as a parameter, or you will get the combined compile and run-time
40 dependencies for all (or at least a sufficiently large number of) packages that
41 get piped to xargs. And since you said you're interested in run-time
42 dependencies only, you'd better set ROOT to something, and "grep $ROOT" the
43 output to find the deps you need.
44
45 > I know that is a skills question...
46 > not a gentoo problem, but as i sad before: I don't have time.
47
48 You don't have time to research the topic of your paper? That's a bold thing to
49 say.
50
51 And one last request: if an e-mail says Mail-Followup-To: in the headers, make
52 sure you don't send your reply to anyone who is not in that list. In other
53 words, don't CC me your replies. I read the list.
54
55 --
56 () Georgi Georgiev () Fry: I must be a robot. Why else would ()
57 () chutz@×××.net () human women refuse to date me? Leela: Oh, ()
58 () +81(90)6266-1163 () lots of reasons. ()
59
60 --
61 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] dependences Tom Wesley <tom@×××××.org>
Re: [gentoo-dev] dependences omestre <omestre@×××××××××.org>