Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id j0UGqFXU008732 for ; Sun, 30 Jan 2005 16:52:15 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id BFFE7298553 for ; Sun, 30 Jan 2005 16:52:53 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvIWE-00040K-Mq for migo@homemail.com; Sun, 30 Jan 2005 12:05:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CvIVd-0003z9-V9 for gnu-arch-users@gnu.org; Sun, 30 Jan 2005 12:05:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CvIVc-0003yT-No for gnu-arch-users@gnu.org; Sun, 30 Jan 2005 12:05:13 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvIVc-0003yE-GE for gnu-arch-users@gnu.org; Sun, 30 Jan 2005 12:05:12 -0500 Received: from [66.93.216.237] (helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CvIJ0-00032T-LM for gnu-arch-users@gnu.org; Sun, 30 Jan 2005 11:52:11 -0500 Received: from trouble.defaultvalue.org (omen.defaultvalue.org [192.168.1.1]) by defaultvalue.org (Postfix) with ESMTP id E3FED404B for ; Sun, 30 Jan 2005 10:52:07 -0600 (CST) Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 3A8944109A; Sun, 30 Jan 2005 10:52:06 -0600 (CST) To: gnu-arch-users@gnu.org Subject: Re: [Gnu-arch-users] What's the rationale behind the cmd-build-config.c restrictions? References: <87zmyu50ym.fsf@trouble.defaultvalue.org> <87mzut5l5k.fsf@flame.org> From: Rob Browning Date: Sun, 30 Jan 2005 10:52:06 -0600 In-Reply-To: <87mzut5l5k.fsf@flame.org> (Matthew Dempsky's message of "Fri, 28 Jan 2005 14:55:03 -0600") Message-ID: <87oef6zwp5.fsf@trouble.defaultvalue.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 2374 Lines: 65 Matthew Dempsky writes: > Rob Browning writes: >> What's the rationale behind these restrictions? > > Mostly it's because the config is built relative to the tree root. I > suppose you could add a -d option (or something) for where the tree > root should be located instead, and then it's no longer necessary to > be in an arch tree. It sounds like this may not be what you're suggesting, but ideally, what I'd like is the ability for the location (and tree) of a config file to be completely independent of the location(s) where the config might be instantiated (built). For example, I'd like to be able to have a category containing configs that I can use to build a given config *anywhere* in my filesystem, i.e.: $ rm -rf SOMEWHERE/configsdir $ tla get CONFIGS SOMEWHERE/configsdir $ rm -rf SOMEWHERE-ELSE && mkdir -p SOMEWHERE-ELSE/foo $ cd SOMEWHERE-ELSE/foo $ tla build-config SOMEWHERE/configsdir/foo-1.0 $ ls foo-1.0 (or perhaps just ./src ./doc, etc., depending on what I want) Note that SOMEWHERE-ELSE/foo is *not* an arch dir, and I would like for the checked out configs branch to end up having no relationship with the resulting built config dir in SOMEWHERE-ELSE/foo/foo-1.0/. The configs branch file SOMEWHERE/configsdir/foo-1.0 should only be used to provide the list of items to "tla get". Basically, I would like for build-config to be a smarter, more convenient way to do something like: for LINE in CONFIG-FILE tla get (first-item LINE) (second-item LINE) without caring what directory I'm in when I run build-config, or where CONFIG-FILE is located. (i.e. CONFIG-FILE might be specified by an absolute path, a relative path, or even a process substitution like bash's <(...)). I'd even like to be able to echo some lines to a temp file and pass that to build-config. Of course, there may be good reasons for not allowing some or all of this, which is why I raised the original question. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/