From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5959 invoked by uid 1002); 1 Jul 2003 13:41:28 -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 12527 invoked from network); 1 Jul 2003 13:41:27 -0000 Message-ID: <3F018F85.9010606@gentoo.org> Date: Tue, 01 Jul 2003 23:41:25 +1000 From: Troy Dack User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gentoo-dev@gentoo.org References: <20030701025824.64ecc18a.seemant@gentoo.org> In-Reply-To: <20030701025824.64ecc18a.seemant@gentoo.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [gentoo-dev] Interest Check: Dynamic config files for portage X-Archives-Salt: 00d0b86e-34c1-466b-9c2c-4dbdedd96d8f X-Archives-Hash: cf26198e861a0640bcef0c980557c0fc Seemant Kulleen wrote: >Hi All, > >Before I go and invalidate a bug, I thought I might take the idea around here to see if it has any merit in terms of usefulness/interest. > >The idea stems from the fact that etc-updating a make.conf file can be a bit of a stressful event. And as portage's set of features grows, so too will the size of the make.conf file. I get the impression that the make.conf file is a little hard to parse, with the huge comment blocks etc etc. So my proposal is this: a make.conf.d directory which contains files for each section of the make.conf: use, flags, fetch, packagevars. > Nice idea, something that I have thought about before. The generated make.conf should have a *big fat* warning at the top specifying that it is a generated file and changes are to be made to the appropriate files in /etc/make.conf.d (or even just /etc/make.d). Installation documents will have to be updated to specify the individual files to be editted. Also utilities like ufed and the compiler flag generator will also need to be modified. Suggested files in /etc/make.conf.d : use - use flags compiler - CFLAGS, CHOST, CXXFLAGS, MAKEOPTS distcc - DISTCC_HOSTS ccache - CCACHE_DIR, CCACHE_SIZE directories - PORTDIR, PORTDIR_OVERLAY, etc fetch - FETCHCOMMAND, SYNC, GENTOO_MIRRORS advanced - FEATURES, AUTOCLEAN To those that suggest having a full make.conf.sample or add the comments to make.globals: 1. I can't say that I've read through make.globals, the install instructions say to avoid make.globals and edit make.conf (as does make.globals) 2. How many users read a sample file and then go and edit the real config? I generally copy the .sample to the .config and then edit it, with all comments in place. -- Troy Dack -- gentoo-dev@gentoo.org mailing list