From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QLCTe-0006tk-FB for garchives@archives.gentoo.org; Sat, 14 May 2011 10:53:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4617A1C03E; Sat, 14 May 2011 10:52:04 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id EF4C51C03E for ; Sat, 14 May 2011 10:52:03 +0000 (UTC) Received: by wwj40 with SMTP id 40so3259100wwj.10 for ; Sat, 14 May 2011 03:52:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=ZNxdZIKlVfE6WxspXFGGsQ5OzRJgYpYVWsHC11IdtrQ=; b=tDYd/Z4nhSqENrVzlkEZCvVV3ycIrOHf3hK5SjE1ODFwZBrO64NlI0UdCCmKyW4s0A WpmrSE/scP37yYOJRb42MLC5+fo+2NO9gSAtFUGNnlctFwsZr5KsSDVEqol2gTYnEJd+ wuNCviTZIdl2F1dj4y+UXK2OAk/356c0nZaSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=atJBQUTaQ0hVuW1zOtqtUSY8mxCqTb65WOxet6db25XE3NkhB2ttlYeU/H+/O54Rck vELfGLQHDnzw40IH0r0HwZm+8l9kUWFzWgfdpuY7cE71djDlSUJD5ELjE5rXGEgEOlwm 4iddPUA+v50/M1jXgi8y8DddndUdZpCALoq5A= Received: by 10.227.196.143 with SMTP id eg15mr2423338wbb.107.1305370323102; Sat, 14 May 2011 03:52:03 -0700 (PDT) Received: from nazgul.localnet (196-215-114-244.dynamic.isadsl.co.za [196.215.114.244]) by mx.google.com with ESMTPS id s20sm1911153wbh.23.2011.05.14.03.52.00 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 14 May 2011 03:52:02 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Two portage questions Date: Sat, 14 May 2011 12:51:14 +0200 User-Agent: KMail/1.13.7 (Linux/2.6.38-ck-r1; KDE/4.6.3; x86_64; ; ) Cc: Alan Mackenzie References: <20110514103109.GA3053@acm.acm> In-Reply-To: <20110514103109.GA3053@acm.acm> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105141251.14810.alan.mckinnon@gmail.com> X-Archives-Salt: X-Archives-Hash: 0ebcfcb7e3365062b32e21a3afb8f40f Apparently, though unproven, at 12:31 on Saturday 14 May 2011, Alan Mackenzie did opine thusly: > Hi, Gentoo. > > Two questions about Portage whose ansers I haven't found in the fine > manuals: > > 1. Where is it specified what is in "system" in the same way that > "world" is in the file /var/lib/portage/world? That is defined in your system profile, not by you. /etc/make.profile is a symlink to something in $PORTDIR/profiles/ and that defines the profile you are using. A profile is nothing more than a bunch of files that define what your basic system consists of - things like minimum packages to install, things that must not be installed, starting point for USE flags, etc etc. Profiles are cascading, meaning that more specific profiles can include other more general ones, defined in files called "parent". These contain paths to other directories (which themselves can have parents), and the whole lots os recursively traversed from the bottom up till all the branches dead-end. The full complete set of data you get out of all that is your complete profile. The specific files that define the system set are called "packages" > 2. How does emerge know which mutt to build when I do "emerge mutt"? > There are three candidate files in /usr/portage/mail-client/mutt, e.g. > mutt-1.5.21-r1.ebuild. It will pick the ebuild with the highest version number, modified by your rules concerning ACCEPT_KEYWORDS=, unmasked and masked packages. If your system is set to stable (ACCEPT_KEYOWRDS=amd64 for example), it ill pick between mutt-1.5.20-r18 and mutt-1.5.21-r1 as those are both stable. Usually it will be 1.5.21-r1 as that is the most recent version. Normally you will find two or more stable versions for most packages. This is by design so that if an update on a stable system by chance breaks something, you still have an earlier version to fall back on should the need arise. If your system is set to unstable (ACCEPT_KEYOWRDS=~amd64 for example), it will pick mutt-1.5.21-r2 as that version is unstable (displayed with a ~ symbol next to it in output). Sometimes you get packages that are masked, indicated with [m] or [M]. These are for lunatics to test, and there are rules concerning masking that you can use to free these up for use (it's all in the man pages). Mutt does not have any such packages but nvidia-drivers for example does. You must take explicit steps to obtain the latest version. This is so that the odds of validly being able to blame anyone at all when nvidia trashes your system are reduced to exactly zero. Do you have eix installed? You should, great tool, and makes figuring all this out a whole lot easier. -- alan dot mckinnon at gmail dot com