Gentoo Archives: gentoo-dev

From: omestre <omestre@×××××××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] dependences
Date: Mon, 19 Jul 2004 12:46:07
Message-Id: Pine.NEB.4.60.0407191232530.14521@norge.freeshell.org
In Reply to: Re: [gentoo-dev] dependences by Georgi Georgiev
1 On Mon, 19 Jul 2004, Georgi Georgiev wrote:
2
3 Thanks,
4 Your questions:
5 When i say "i don't have time" I mean: "I don't have
6 time to *this* task". My paper is about Linux distros, not
7 about gentoo. I want to put the gentoo in my paper, but with
8 the right values, and without waste too much time. There are
9 too many distros, debian, slack, conectiva, suse, mandrake...
10 I need *do* one task, that is my graduation's monograph, and
11 that is my *goal*. time is gold... But you are helping me..
12 I will try the script that you have sad.. if i get the
13 data, i will parse and use them.
14 Thanks again.. without cc. :)
15 > Date: Mon, 19 Jul 2004 06:13:58 +0900
16 > From: Georgi Georgiev <chutz@×××.net>
17 > To: gentoo-dev@l.g.o
18 > Subject: Re: [gentoo-dev] dependences
19 >
20 > maillog: 18/07/2004-20:51:32(+0000): omestre types
21 >>
22 >> Thanks very much for all answers. But i can't
23 >> extract the informations that i need. I have
24 >> these informations for debian, fedora and slackware(maybe)...
25 >> I will try out SuSe... but i don't have time to spend in
26 >> this task. If somebody that have more skill than me in gentoo,
27 >> please.. all i need is a screenshot of minimum dependences for
28 >> each package in a specific gentoo installation ( more or less 500
29 >> packages).
30 >> I have tryed:
31 >> qpkg --installed | xargs emerge --pretend --emptytree
32 >
33 > This will make one long and hard to parse list. Better make a script that will
34 > produce the output you need for a *single* package. Then call that script for
35 > every package on your system. And instead of using qpkg, use the database
36 > directly, it is easier.
37 >
38 > cd /var/db/pkg
39 > mkdir /tmp/dummy
40 > for pkg in */*; do
41 > echo "emerge $pkg"
42 > env USE="-*" ROOT="/tmp/dummy" emerge --pretend --emptytree =$pkg
43 > done | tee /tmp/log-that-needs-to-be-parsed
44 >
45 >> But the USE flags were the problem. USE="", USE="-*". I did
46 >> puts theses flags before xargs, before emerge (in a script), in
47 >> /etc/make.conf... and nothing.
48 >
49 > Not sure what you mean by "nothing". Maybe it is due to the fact that:
50 >
51 > qpkg --installed | tail -n 2
52 > x11-wm/metacity *
53 > x11-wm/windowmaker *
54 >
55 > I don't like the asterisks, and I don't like the color. If you really
56 > insist on using "qpkg", don't forget to add "--no-color". And you will not be
57 > able to find the dependencies for gtk-1.2 this way. Also, if you use "xargs",
58 > add "-n 1" as a parameter, or you will get the combined compile and run-time
59 > dependencies for all (or at least a sufficiently large number of) packages that
60 > get piped to xargs. And since you said you're interested in run-time
61 > dependencies only, you'd better set ROOT to something, and "grep $ROOT" the
62 > output to find the deps you need.
63 >
64 >> I know that is a skills question...
65 >> not a gentoo problem, but as i sad before: I don't have time.
66 >
67 > You don't have time to research the topic of your paper? That's a bold thing to
68 > say.
69 >
70 > And one last request: if an e-mail says Mail-Followup-To: in the headers, make
71 > sure you don't send your reply to anyone who is not in that list. In other
72 > words, don't CC me your replies. I read the list.
73 >
74 > --
75 > () Georgi Georgiev () Fry: I must be a robot. Why else would ()
76 > () chutz@×××.net () human women refuse to date me? Leela: Oh, ()
77 > () +81(90)6266-1163 () lots of reasons. ()
78 >
79 > --
80 > gentoo-dev@g.o mailing list
81 >
82 >
83
84 omestre@××××××××××××.org
85 SDF Public Access UNIX System - http://sdf.lonestar.org
86
87 --
88 gentoo-dev@g.o mailing list