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 1PBXc0-00069J-O3 for garchives@archives.gentoo.org; Thu, 28 Oct 2010 18:54:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E8CBE0D86; Thu, 28 Oct 2010 18:53:32 +0000 (UTC) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 43413E0D86 for ; Thu, 28 Oct 2010 18:53:32 +0000 (UTC) Received: by ewy10 with SMTP id 10so1530424ewy.40 for ; Thu, 28 Oct 2010 11:53:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=oH0fXB9iXNCywNvgO1Cs4yYhYqWcaCRJF/PY1hKxG3U=; b=L/39tB4RschkrswoVRQf14zhzkLymxQkFSDsy+gvVQkdPTgkSDZ9nsHDLwrdkrT2rn IbXqn1L6LH0bDjQzH6PhwD4RouB8wiHMbRAbuv2zwfW4ECKAGOgWI1GCdqTix8dCfjee OP3WVIm68uuCjgME4dQH/5OiFOb5Gyz/pdAzE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=FnLXKQTCY3mohWY0JEumd02u6yDyoBQSIh6AXIBWAwWP+bOrTi2mPrlouz6FigbdMm 4X4HFTzgwGQ27MtM8c+FZBnGBscxfg6f+oKieuqVwrc2Hvr0vt+MJgw5tcgNfrLfYH2S Dhs+Z/bLUP1lUqkyVVbkJOnsOFowQfz8k/9wY= Received: by 10.213.35.195 with SMTP id q3mr596416ebd.45.1288292011694; Thu, 28 Oct 2010 11:53:31 -0700 (PDT) Received: from nazgul.localnet (196-215-2-42.dynamic.isadsl.co.za [196.215.2.42]) by mx.google.com with ESMTPS id v56sm1031314eeh.2.2010.10.28.11.53.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 28 Oct 2010 11:53:30 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How can I unmask package and mask just its one version? Date: Thu, 28 Oct 2010 20:54:03 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.36-ck; KDE/4.5.2; x86_64; ; ) References: <4CC9AF25.7050401@gmail.com> In-Reply-To: <4CC9AF25.7050401@gmail.com> 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201010282054.03778.alan.mckinnon@gmail.com> X-Archives-Salt: a38a925f-a29e-4d9b-9971-110cd70ff297 X-Archives-Hash: ab1abd1e87e064c0c6cef6268d95bad3 Apparently, though unproven, at 19:13 on Thursday 28 October 2010, Jarry did opine thusly: > Hi, > how can I unmask (generally) certain M~ masked package and > mask one particular version of that package? I want to use > that package, but skip just one "x.y.z" upgrade, and continue > with any future higher upgrades ("x.y.z+1"). > > So I entered tree/package in /etc/portage/package.unmask, and > tree/package_x.y.z into /etc/portage/package.mask. But this > does not work, that "x.y.z" version still wants to be installed... portage is fighting you. unmask has priority over mask, so unmasking everything and masking a specific version will not work - the first rule will prevail. You must come up with some prefix operators for unmask that will exclude the one you want to mask. For example, say you wanted to mask version 4: unmask: cat/package-4 mask: =cat/package-4 But this is fragile and will break way too often. What if you later also want to mask version 7? portage doesn't give you a boolean AND or any way I know of to specify a range of versions. So you have to keep an eye on it manually, and tweak as necessary. Or you could just list exactly every version for which there's an ebuild and add it to the appropriate package.* file This is a definite shortcoming in portage, it warrants a feature request at b.g.o. -- alan dot mckinnon at gmail dot com