From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7F65613888F for ; Thu, 22 Oct 2015 15:54:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE744E087B; Thu, 22 Oct 2015 15:54:49 +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 4700DE0879 for ; Thu, 22 Oct 2015 15:54:49 +0000 (UTC) Received: from [192.168.0.13] (ip174-67-193-3.oc.oc.cox.net [174.67.193.3]) (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 241AD340997 for ; Thu, 22 Oct 2015 15:54:47 +0000 (UTC) Subject: Re: [gentoo-portage-dev] @sets and @profile does not work when ROOT=PORTAGE_CONFIGROOT=/my/new/root To: gentoo-portage-dev@lists.gentoo.org References: <1445446043.31293.17.camel@transmode.se> <562867A7.3010108@gentoo.org> <1445497519.31293.50.camel@transmode.se> From: Zac Medico Message-ID: <562906C3.1040708@gentoo.org> Date: Thu, 22 Oct 2015 08:54:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: <1445497519.31293.50.camel@transmode.se> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Archives-Salt: d49fb390-6209-4368-b9f3-87935e1d400d X-Archives-Hash: 925fca0bfa16c9e44c99727b6dcb6abf On 10/22/2015 12:05 AM, Joakim Tjernlund wrote: > I don't use world_sets, I have in my profile(/my/new/root/usr/local/portage/tmv3-target-overlay): > # > cat sets.conf > [CUSFPv3 sets] > class = portage.sets.files.StaticFileSet > multiset = true > directory = ${repository:tmv3-target-overlay}/sets/ > > [world] > class = portage.sets.base.DummyPackageSet > packages = @cusfpv3 @profile @selected @system > > and in sets/: > # > cat sets/cusfpv3 > net-ftp/ftp > net-ftp/tftp-hpa > net-ftp/vsftpd > .... > > and now it hits me, this line: > directory = ${repository:tmv3-target-overlay}/sets/ > does it always refer too ROOT=/ ? You need to use %(ROOT)s${repository:tmv3-target-overlay}/sets to substitute $ROOT into the set configuration. For example, the default set configuration located at /usr/share/portage/config/sets/portage.conf does something similar with %(PORTAGE_CONFIGROOT)s. -- Thanks, Zac