Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Cc: Alan Mackenzie <acm@×××.de>
Subject: Re: [gentoo-user] Two portage questions
Date: Sat, 14 May 2011 10:53:42
Message-Id: 201105141251.14810.alan.mckinnon@gmail.com
In Reply to: [gentoo-user] Two portage questions by Alan Mackenzie
1 Apparently, though unproven, at 12:31 on Saturday 14 May 2011, Alan Mackenzie
2 did opine thusly:
3
4 > Hi, Gentoo.
5 >
6 > Two questions about Portage whose ansers I haven't found in the fine
7 > manuals:
8 >
9 > 1. Where is it specified what is in "system" in the same way that
10 > "world" is in the file /var/lib/portage/world?
11
12 That is defined in your system profile, not by you.
13
14 /etc/make.profile is a symlink to something in $PORTDIR/profiles/ and that
15 defines the profile you are using. A profile is nothing more than a bunch of
16 files that define what your basic system consists of - things like minimum
17 packages to install, things that must not be installed, starting point for USE
18 flags, etc etc.
19
20 Profiles are cascading, meaning that more specific profiles can include other
21 more general ones, defined in files called "parent". These contain paths to
22 other directories (which themselves can have parents), and the whole lots os
23 recursively traversed from the bottom up till all the branches dead-end. The
24 full complete set of data you get out of all that is your complete profile.
25
26 The specific files that define the system set are called "packages"
27
28 > 2. How does emerge know which mutt to build when I do "emerge mutt"?
29 > There are three candidate files in /usr/portage/mail-client/mutt, e.g.
30 > mutt-1.5.21-r1.ebuild.
31
32 It will pick the ebuild with the highest version number, modified by your
33 rules concerning ACCEPT_KEYWORDS=, unmasked and masked packages.
34
35 If your system is set to stable (ACCEPT_KEYOWRDS=amd64 for example), it ill
36 pick between mutt-1.5.20-r18 and mutt-1.5.21-r1 as those are both stable.
37 Usually it will be 1.5.21-r1 as that is the most recent version. Normally you
38 will find two or more stable versions for most packages. This is by design so
39 that if an update on a stable system by chance breaks something, you still
40 have an earlier version to fall back on should the need arise.
41
42 If your system is set to unstable (ACCEPT_KEYOWRDS=~amd64 for example), it
43 will pick mutt-1.5.21-r2 as that version is unstable (displayed with a
44 ~ symbol next to it in output).
45
46 Sometimes you get packages that are masked, indicated with [m] or [M]. These
47 are for lunatics to test, and there are rules concerning masking that you can
48 use to free these up for use (it's all in the man pages). Mutt does not have
49 any such packages but nvidia-drivers for example does. You must take explicit
50 steps to obtain the latest version. This is so that the odds of validly being
51 able to blame anyone at all when nvidia trashes your system are reduced to
52 exactly zero.
53
54 Do you have eix installed? You should, great tool, and makes figuring all this
55 out a whole lot easier.
56
57
58 --
59 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] Two portage questions Alan Mackenzie <acm@×××.de>
Re: [gentoo-user] Two portage questions Kevin O'Gorman <kogorman@×××××.com>