Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] No 'libs' in world file? Daniel Frey <djqfrey@×××××.com>
Re: [gentoo-user] No 'libs' in world file? Peter Humphrey <peter@××××××××××××.uk>
Re: [gentoo-user] No 'libs' in world file? Alexander Kapshuk <alexander.kapshuk@×××××.com>