From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25970 invoked from network); 1 Sep 2004 00:13:36 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 1 Sep 2004 00:13:36 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C2Iko-00035Z-Mw for arch-gentoo-dev@lists.gentoo.org; Wed, 01 Sep 2004 00:13:35 +0000 Received: (qmail 7704 invoked by uid 89); 1 Sep 2004 00:13:33 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 13913 invoked from network); 1 Sep 2004 00:13:33 +0000 Message-ID: <4135142A.7060504@ifm.liu.se> Date: Wed, 01 Sep 2004 02:13:30 +0200 From: Anton Starikov Reply-To: gentoo-dev@lists.gentoo.org User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040824) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org References: <4134FB0B.9060501@ifm.liu.se> <200408311928.19670.vapier@gentoo.org> In-Reply-To: <200408311928.19670.vapier@gentoo.org> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-eltn-site-MailScanner-Information: Please contact the administrator, tel. 2826, for more information X-eltn-site-MailScanner: Found to be clean Subject: Re: [gentoo-dev] per-package environment variables. X-Archives-Salt: dfae9179-84b2-48ab-b79c-1bd5cac9a74d X-Archives-Hash: 9f9c3b826921bc0cc99ea08eada0387c But with /etc/profile/packages.env/ there is only one thing, which not good enough. I really can't make a one look and see what and where I define. I mean, if I look into one file, I see something like, let say, 30 lines, which looks clear and understandable for me. But with recursive subdirectories...Simple sollution is ls -R, but if I have 30 packages with redefinition, and, let say, average two ENV files in each directory... That going to be a difficult for simple understanding, probably :) Of course directories more logic. But I guess it will be never 300 definitions of some ENV's for 300 packages. But...who know.. And about confusing...I just think that mostly this ENV files will be used for some kind of typical job. So, you will not have 100 files for 100 packages. But raser you will have 10 files, no more (there is just not so many things to define :) ). And will include some of them to some of 100 packages, more than one at the same time, probably. Anton Starikov aka Antst :) Mike Frysinger wrote: > On Tuesday 31 August 2004 06:26 pm, Antst GD wrote: > >>For the moment both solutions looks ugly for me. At least I can't >>imaging simple and easy-to-understand syntax for package.env, which will >>look nice and will parce without problems. >> >>What do you think about? > > > most of what you proposed seems excessive and confusing (and like you say, > ugly) ... a cleaner/simpler solution can be taken from your work though i > think ... > > we have a directory: > /etc/profile/packages.env/ > > in this directory we have simple bash (bash because we can just source it and > be done with it) files which line up in a similar fashion to the portage > tree ... for example, if i want an env file for bash, i would have: > /etc/profile/packages.env/app-shells/bash > > i think this is about all we need ... and like Antst pointed out, this looks > like it'd be real simple to implement ... > -mike -- Anton Starikov -- gentoo-dev@gentoo.org mailing list