Gentoo Archives: gentoo-user

From: Alexander Kapshuk <alexander.kapshuk@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] No 'libs' in world file?
Date: Thu, 05 Mar 2015 16:20:27
Message-Id: CAJ1xhMWYezdvAoEkbMoB1VsbOvhfPPXv5sG6CCMygV_GLVTznA@mail.gmail.com
In Reply to: Re: [gentoo-user] No 'libs' in world file? by Walter Dnes
1 On Wed, Mar 4, 2015 at 8:06 AM, Walter Dnes <waltdnes@××××××××.org> wrote:
2
3 > On Tue, Mar 03, 2015 at 12:01:04AM +0100, Andreas K. Huettel wrote
4 >
5 > > Well... let's say it like this:
6 > >
7 > > If you look at your world file, you should for each line be able to
8 > > immediately say "yes I know what this is and I need it". Where "I need
9 > it"
10 > > means "I need it directly", and *not* "I need it because some other
11 > package
12 > > needs it".
13 > >
14 > > In most cases this means that libraries should not be in the world file.
15 > > You'll rarely say "Yes I need Boost." Instead you may need LibreOffice,
16 > and
17 > > that needs Boost...
18 >
19 > Rather than try to remember everything, let the computer do some of
20 > the work for you (novel idea <G>). Use the command...
21 >
22 > xargs -a /var/lib/portage/world -n 1 equery d
23 >
24
25 Just thought of using 'equery d $(</var/lib/portage/world)' as an
26 alternative to the command line above. Not that there's something wrong
27 with the original suggestion.
28
29
30
31 >
32 > to determine which files would be pulled in as dependancies.
33 > ***WARNING: DO NOT REDIRECT OR PIPE***. It won't work. Use a 2nd term
34 > for the output, along with {CTRL-S} and {CTRL-Q} to stop and restart the
35 > output. You'l have to run the command with root privileges to see the
36 > file /var/lib/portage/world Here's how it starts off for me...
37 >
38 >
39 > [d531][root][~] xargs -a /var/lib/portage/world -n 1 equery d
40 > * These packages depend on app-admin/localepurge:
41 > * These packages depend on app-admin/logrotate:
42 > * These packages depend on app-admin/sudo:
43 > * These packages depend on app-admin/syslog-ng:
44 > * These packages depend on app-arch/zip:
45 > sys-devel/gcc-4.8.3 (app-arch/zip)
46 > www-client/seamonkey-2.32 (app-arch/zip)
47 >
48 > There are no ebuilds depending on localepurge, logrotate, sudo, or
49 > syslog-ng. It's up to you whether or not you want them. However, zip
50 > is an absolute dependancy of gcc and seamonkey, and can be removed from
51 > my world file. Absolute dependancies are easy. *BEWARE OF CONDITIONAL
52 > DEPENDANCIES*; e.g.
53 >
54 > * These packages depend on dev-perl/File-MimeInfo:
55 > x11-misc/xdg-utils-1.1.0_rc2 (perl ? dev-perl/File-MimeInfo)
56 >
57 > That says if you've built x11-misc/xdg-utils-1.1.9_rc2 withe the
58 > "perl" USE flag, then dev-perl/File-MimeInfo will be pulled in as a
59 > dependancy. You have to check whether you've used that USE flag on that
60 > ebuilds.
61 >
62 > And a "lib" is not necessarily always a direct dependancy. E.g. my
63 > HDHomerun OTA TV tuner requires the media-libs/libhdhomerun ebuild to be
64 > explicitly installed.
65 >
66 >
67 > Walter Dnes <waltdnes@××××××××.org>
68 > I don't run "desktop environments"; I run useful applications
69 >
70 >