From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-portage-dev+bounces-4833-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 47CA9138CCC for <garchives@archives.gentoo.org>; Wed, 6 May 2015 19:55:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 45DDBE083E; Wed, 6 May 2015 19:54:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA534E0839 for <gentoo-portage-dev@lists.gentoo.org>; Wed, 6 May 2015 19:54:53 +0000 (UTC) Received: from [10.0.31.145] (unknown [100.42.98.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id B030D340A9F for <gentoo-portage-dev@lists.gentoo.org>; Wed, 6 May 2015 19:54:52 +0000 (UTC) Message-ID: <554A7189.30503@gentoo.org> Date: Wed, 06 May 2015 12:54:49 -0700 From: Zac Medico <zmedico@gentoo.org> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 Precedence: bulk List-Post: <mailto:gentoo-portage-dev@lists.gentoo.org> List-Help: <mailto:gentoo-portage-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-portage-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-portage-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-portage-dev.gentoo.org> X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] repos.conf location w.r.t PORTAGE_CONFIGROOT References: <1430931268.27859.102.camel@transmode.se> <554A5F6D.5030807@gentoo.org> <1430939630.27859.113.camel@transmode.se> <1430941307.27859.116.camel@transmode.se> In-Reply-To: <1430941307.27859.116.camel@transmode.se> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Archives-Salt: 5e2c1102-1e11-4ebf-81a1-0b1c6ab71218 X-Archives-Hash: 7dfcd13f7c16f38567cdce24519c0e57 On 05/06/15 12:41, Joakim Tjernlund wrote: > On Wed, 2015-05-06 at 19:13 +0000, Joakim Tjernlund wrote: >> On Wed, 2015-05-06 at 11:37 -0700, Zac Medico wrote: >>> On 05/06/15 09:54, Joakim Tjernlund wrote: >>>> I am trying to rebuild an old cross sysroot and I got problems. >>>> I cannot make emerge to select my old ebuilds in an overlay over those >>>> in /usr/portage. >>>> >>>> What new is since last time I did this is /etc/portage/repos.conf/ >>>> I suspect emerge always reads /etc/portage/repos.conf/ no matter >>>> what I set PORTAGE_CONFIGROOT / ROOT to ? >>>> >>>> Jocke >>>> >>> >>> It instantiates 2 config instances, one using /etc/portage/repos.conf >>> (for build time DEPEND) and another one using >>> $PORTAGE_CONFIGROOT/etc/portage/repos.conf (for run time {P,R}DEPEND). >>> You can see that it's joined with PORTAGE_CONFIGROOT in the >>> load_repository_config function: >>> >>> https://gitweb.gentoo.org/proj/portage.git/tree/pym/portage/repository/config.py?id=0f191113cccd049e11fdbe >>> 73 >>> 493eb1efbf4bf89e#n971 >> >> I see, doesn't this prevent exactly what I want to do? >> >> I can't see why this should be needed, it only creates a mess, another example: >> I tried to specify exact version of my old binutils and while that worked, portage wanted >> to pull in a newer binutils-config from the hosts master gentoo repo and >> thus the build failed. >> >> If a someone really wants this behaviour, he can just add the hosts master repo >> in his PORTAGE_CONFIGROOT IMHO >> Maybe emerge --root-deps=rdeps is what you are looking for. This will cause it to ignore DEPEND. > > Is there a way to make portage to prefer ebuilds from an overlay/other repo even if the master > repo has newer versions? > > Jocke > You can use repo atoms in /etc/portage/package.mask. For example, 'sys-devel/binutils-config::gentoo', or '*/*::gentoo'. -- Thanks, Zac