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 AB75F13888F for ; Fri, 23 Oct 2015 05:04:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75DFCE085D; Fri, 23 Oct 2015 05:04:11 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1D93E085A for ; Fri, 23 Oct 2015 05:04:10 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZpUWL-0004NO-17 for gentoo-portage-dev@lists.gentoo.org; Fri, 23 Oct 2015 07:04:05 +0200 Received: from ip98-167-165-199.ph.ph.cox.net ([98.167.165.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Oct 2015 07:04:05 +0200 Received: from 1i5t5.duncan by ip98-167-165-199.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Oct 2015 07:04:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-portage-dev@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-portage-dev] Re: @sets and @profile does not work when ROOT=PORTAGE_CONFIGROOT=/my/new/root Date: Fri, 23 Oct 2015 05:03:56 +0000 (UTC) Message-ID: References: <1445446043.31293.17.camel@transmode.se> <562867A7.3010108@gentoo.org> <1445497519.31293.50.camel@transmode.se> <562906C3.1040708@gentoo.org> <1445538549.31293.104.camel@transmode.se> <562930EF.1020500@gentoo.org> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip98-167-165-199.ph.ph.cox.net User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT c9c83f3) X-Archives-Salt: 5a89a087-942b-4589-b2d8-596137e4b1cd X-Archives-Hash: 8a5386a161a9e1a99572745416ce7937 Zac Medico posted on Thu, 22 Oct 2015 11:54:39 -0700 as excerpted: > On 10/22/2015 11:29 AM, Joakim Tjernlund wrote: >> On Thu, 2015-10-22 at 08:54 -0700, Zac Medico wrote: >>> For example, the default set configuration located at >>> /usr/share/portage/config/sets/portage.conf does something similar >>> with %(PORTAGE_CONFIGROOT)s. >> >> Nice! I am a bit puzzled over the trailing s in ..)s, is that a typo? >> if not what does it mean? > > The trailing s is required. It's python configparser interpolation > syntax: > > https://docs.python.org/3/library/configparser.html#interpolation-of-values Thanks. That's a pattern I now recognize and identify elsewhere. =:^) And that recognition/identification presumably answers a low-priority (thus never asked) question I've had for some time about layman.conf, and what/why it uses variable interpolation with the same trailing s, which I hadn't understood until now. For me, the answer is now essentially "the trailing 's' is an artifact of the python implementation and its use of the configparser lib, and yes, it's necessary, and doesn't mean the path now needs a literal trailing 's' as well." Again, thanks. Seeing similar trailing-s usage should be way less confusing now. =:^) -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman