From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1G0Nra-0002Et-69 for garchives@archives.gentoo.org; Tue, 11 Jul 2006 19:25:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6BJN1hg026961; Tue, 11 Jul 2006 19:23:01 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6BJDV40025568 for ; Tue, 11 Jul 2006 19:13:32 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 843D3642BC for ; Tue, 11 Jul 2006 19:13:31 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03206-21-4 for ; Tue, 11 Jul 2006 19:13:27 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 6D577642F4 for ; Tue, 11 Jul 2006 19:13:27 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G0Nff-0007fg-Uo for gentoo-user@gentoo.org; Tue, 11 Jul 2006 21:13:24 +0200 Received: from www.buffer.net ([24.73.161.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Jul 2006 21:13:23 +0200 Received: from wireless by www.buffer.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Jul 2006 21:13:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: James Subject: [gentoo-user] Re: Cleaner USE variable in /etc/make.conf Date: Tue, 11 Jul 2006 19:13:12 +0000 (UTC) Message-ID: References: <20060711110416.GB6816@waltdnes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 24.73.161.102 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060616) Sender: news X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.468 required=5.5 tests=[AWL=-0.100, BAYES_00=-2.599, TW_GT=0.077, TW_HR=0.077, TW_IV=0.077] X-Spam-Score: -2.468 X-Spam-Level: X-Archives-Salt: 50dcaab9-2b7f-4995-89ae-a6b02a85c355 X-Archives-Hash: cfc3fb36092294fe1fe483b2cd62014c Walter Dnes waltdnes.org> writes: > BLEAGH! I've now broken it up into logical groupings... USE_cpu="3dnow mmx sse sse2" USE_font="bitmap-fonts truetype-fonts type1-fonts" USE_gui="X dga dri gtk2 opengl sdl xv" USE_multimedia="a52 aac alsa divx4linux encode exif ffmpeg flac gif jpeg mikmod mng mp3 mpeg ogg png quicktime theora tiff vcd vorbis win32codecs wmf xpm" USE_misc="bzip2 cdr dio dvd dvdr dvdread fortran gb imlib maildir mime mmap ncurses nptl nptlonly nsplugin offensive plotutils posix readline sharedmem slang sockets threads zlib" > I too, have many, many flags set. I broke mine up sime time ago, but I did not 'characterize' them as you have done. I find this a most excellent idea. Some time ago Cirian M. posted this little nugget to help one quickly determine the meaning/purpose of flags. I put it in my bashrc file: # USE flag settings by Ciaran McCreesh: explainuseflag(){ sed -ne "s,^\([^ ]*:\)\?$1 - ,,p" $(portageq portdir)/profiles/use.{,local.}desc; } alias ef="explainuseflag" > which is followed by... > USE="-* ${USE_cpu} ${USE_font} ${USE_gui} ${USE_multimedia} ${USE_misc}" What exactly are you hoping to be able to do with these constructs? (sorry, I'm missing the point of these constructs). > My USE variable still ends up with the same information, but I have an > easier time editing it. The only question I have is whether there are > any groups of reserved variable names /etc/make.conf, so that I don't > screw up system variables. I ran across some reserved words some time ago. But I did not save the URl... It might be prudent to discover the most recent system (default) flags as they have most recently changed. > This won't be the final config. I'm trying to figure out a logical > way to break up "USE_multimedia", but I run into programs like mplayer > that work with audio, video, and still images. Aren't all of these 'multimedia'? I sense you are looking for a cleaner breakdown of flag groups to avoid the largess of a 'multimedia' category. But that is subjective and difficult. Think about it, I can have jpeg images and then motion jpeg video. But, the flags may effect the performance of both technolgies in yet differenent software packages. That's why the term multimedia is so prevalent. My only real suggestion is look at the collection of flags you have and derive a breakdown that works for the (current) flags you have. It will be subjective and highly dependent on your selected flags to come up with small categories. Maybe you can break it up like this: # Multimedia "USE_mplayer" "USE_ffmpeg" "USE_audio" "USE_video-players" Where your selected categories are not so rigid as audio, stills, video, etc....? > "USE_misc" will always be a candidate for taking stuff out. "USE_Apache" or "USE_db" might be appropriate on some systems? Indeed, even the other groups will expand/contract as time progresses. All in all, you have take steps that I have often thought about, but, have deferred expenditures of time on. I'm interested to follow progression of your ideas. On as similar note, I have extensive settings in the /etc/portage files, particularly on those servers and workstations with multimeida. What I have done to keep some form of sanity, in those files, is to have a core group of entries that are common to many of the gentoo systems I manage. Then each system in each of the files {package.keywords, package.use, etc} have a section that is unique, i.e. different from the other system but are semi-permanent settings. At the top of these files, there is a section where the entries are tenuous or experimental...... Do post your progress and thoughts as I find it interesting to the point of motivational for my ever-expanding world of gentoo system support. Logical organization of all things multimedia, is a challenge, methinks. James -- gentoo-user@gentoo.org mailing list