From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1L3L9N-0006aI-8S for garchives@archives.gentoo.org; Fri, 21 Nov 2008 01:49:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B975E04E6; Fri, 21 Nov 2008 01:49:37 +0000 (UTC) Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.150]) by pigeon.gentoo.org (Postfix) with ESMTP id 11FA0E04E6 for ; Fri, 21 Nov 2008 01:49:37 +0000 (UTC) Received: by qw-out-1920.google.com with SMTP id 5so195348qwc.10 for ; Thu, 20 Nov 2008 17:49:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=7w5Zk/LkivZI2IM9dH8xRFmNAClhBq2Vq1igghD7uCo=; b=xepteQp6OqZRB97HQPNYzaVcUCbnBmD+txHpSyZyUT9GhY1zoQr0bEiOzP+3YGWJDO 5VoErsPRy1f8ir7KMfNU5XXpI2Zf3y+BdGfemKb9UPPPP8Vvq3FxuFnhiHfRjFTSXX0b A4afiOzIo4r+AQjhhnYCGadhl3wx3+8/Kdl38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:organization:x-mailer:mime-version :content-type:content-transfer-encoding; b=QGwQNTebtoslCuOkLI2PX9PbKJZrx01ynkRJlcD6JbMv/PLvSMXjOv/H2spfU/FQjH JGg6jHXPR5JFaL9OiCYgptNiUk9xR8a3wBTIftWZHc7B+b8Vv3Qiq40tuJ3xpO3ru/zH 8wYFKZupn7DB9KE+QMAcCXixdHpJ8ueD5l98Y= Received: by 10.215.67.7 with SMTP id u7mr3115575qak.383.1227232174205; Thu, 20 Nov 2008 17:49:34 -0800 (PST) Received: from localhost.localdomain (201-74-151-156-sj.cpe.vivax.com.br [201.74.151.156]) by mx.google.com with ESMTPS id 6sm591055qwk.1.2008.11.20.17.49.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 20 Nov 2008 17:49:33 -0800 (PST) Date: Thu, 20 Nov 2008 23:51:06 -0200 From: Jorge Peixoto de Morais Neto To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Safety/wiseness of moving stray files from /etc/env.d Message-ID: <20081120235106.7e892217@gmail.com> Organization: ITA X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.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-Archives-Salt: 1d0e8f22-bfce-4b03-b902-d2139e5ea992 X-Archives-Hash: e958482775bfa58f1b8d87a79d697f99 Hi. Some of my environment variables are screwed up /etc/env.d $ echo ${MANPATH} /home/jorge/.gentoo/java-config-2/current-user-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:${MANPATH}:/opt/sun-jre-bin-1.5.0.06/man:/etc/java-config/system-vm/man/ There is a '${MANPATH}' inside "${MANPATH}", and besides that "{MANPATH}" references the long obsolete sun-jre-bin-1.5.0.06 Also /etc/env.d $ cat 05gcc-i686-pc-linux-gnu MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man" INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info" LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/4.1.2:/usr/lib/gcc/i686-pc-linux-gnu/4.2.2" PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2" ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2" GCC_SPECS="" LDPATH references gcc-4.2.2, which is no longer installed (for several months, in fact). And there is both a 05gcc-i686-pc-linux-gnu file and a gcc directory in /etc/env.d Also, some files in /etc/env.d are suspiciously old: /etc/env.d $ ls -l --so=ti total 92 -rw-r--r-- 1 root root 22 2008-11-13 12:51 71firefox-bin drwxr-xr-x 2 root root 192 2008-11-10 09:43 gcc -rw-r--r-- 1 root root 145 2008-11-10 06:22 03opengl -rw-r--r-- 1 root root 36 2008-10-26 16:34 50ncurses -rw-r--r-- 1 root root 34 2008-10-09 20:24 05portage.envd -rw-r--r-- 1 root root 46 2008-10-04 17:45 90games -rw-r--r-- 1 root root 44 2008-10-01 20:57 37fontconfig -rw-r--r-- 1 root root 42 2008-10-01 20:56 99gentoolkit-env -rw-r--r-- 1 root root 14 2008-09-09 22:47 50gtk2 -rw-r--r-- 1 root root 48 2008-08-21 09:50 98ca-certificates -rw-r--r-- 1 root root 33 2008-08-16 07:21 50gconf -rw-r--r-- 1 root root 40 2008-08-09 11:41 20udev -rw-r--r-- 1 root root 12 2008-08-05 02:22 30java-finalclasspath -rw-r--r-- 1 root root 156 2008-07-13 07:14 05binutils drwxr-xr-x 2 root root 168 2008-07-13 07:14 binutils -rw-r--r-- 1 root root 20 2008-06-21 08:04 08nss -rw-r--r-- 1 root root 21 2008-06-19 07:56 08nspr -rw-r--r-- 1 root root 218 2008-05-05 03:02 00basic -rw-r--r-- 1 root root 79 2008-04-27 20:35 20java-config drwxr-xr-x 3 root root 72 2008-02-17 14:16 lapack -rw-r--r-- 1 root root 50 2008-02-07 11:29 70less -rw-r--r-- 1 root root 306 2008-02-06 10:32 05gcc-i686-pc-linux-gnu -rw-r--r-- 1 root root 34 2007-09-02 13:35 50emacs drwxr-xr-x 3 root root 72 2007-02-25 23:04 blas drwxr-xr-x 3 root root 72 2007-02-25 23:04 cblas -rw-r--r-- 1 root root 13 2007-01-26 20:58 99local -rw-r--r-- 1 root root 552 2006-09-21 18:13 20java -rw-r--r-- 1 root root 29 2006-03-19 14:12 02locale Also, there is both a 05binutils file and a binutils directory. Inside the binutils directory, there is this /etc/env.d $ ls -l binutils/ total 12 -rw-r--r-- 1 root root 15 2006-02-13 23:10 config-i386-pc-linux-gnu -rw-r--r-- 1 root root 13 2008-07-13 07:14 config-i686-pc-linux-gnu -rw-r--r-- 1 root root 122 2008-07-13 07:14 i686-pc-linux-gnu-2.18 /etc/env.d $ cat binutils/config-i386-pc-linux-gnu CURRENT=2.16.1 (obsolete) Also, / $ for entry in /etc/env.d/*; do qfile -e "${entry}" || echo "${entry}" ORPHAN; done sys-apps/baselayout-1.12.12 (/etc/env.d/00basic) /etc/env.d/02locale ORPHAN /etc/env.d/03opengl ORPHAN /etc/env.d/05binutils ORPHAN /etc/env.d/05gcc-i686-pc-linux-gnu ORPHAN sys-apps/portage-2.1.4.5 (/etc/env.d/05portage.envd) dev-libs/nspr-4.7.1 (/etc/env.d/08nspr) dev-libs/nss-3.12 (/etc/env.d/08nss) /etc/env.d/20java ORPHAN dev-java/java-config-2.1.6 (/etc/env.d/20java-config) sys-fs/udev-124-r1 (/etc/env.d/20udev) dev-java/java-config-1.3.7 (/etc/env.d/30java-finalclasspath) media-libs/fontconfig-2.6.0-r2 (/etc/env.d/37fontconfig) /etc/env.d/50emacs ORPHAN gnome-base/gconf-2.22.0 (/etc/env.d/50gconf) x11-libs/gtk+-2.12.11 (/etc/env.d/50gtk2) sys-libs/ncurses-5.6-r2 (/etc/env.d/50ncurses) sys-apps/less-418 (/etc/env.d/70less) www-client/mozilla-firefox-bin-3.0.4 (/etc/env.d/71firefox-bin) /etc/env.d/90games ORPHAN app-misc/ca-certificates-20080809 (/etc/env.d/98ca-certificates) app-portage/gentoolkit-0.2.4.2 (/etc/env.d/99gentoolkit-env) /etc/env.d/99local ORPHAN sys-devel/binutils-2.18-r3 (/etc/env.d/binutils) /etc/env.d/blas ORPHAN /etc/env.d/cblas ORPHAN sys-devel/gcc-4.1.2 (/etc/env.d/gcc) sys-devel/gcc-4.3.2 (/etc/env.d/gcc) /etc/env.d/lapack ORPHAN Is it safe/wise to move 20java and 05gcc-i686-pc-linux-gnu to a backup directory? How about binutils/config-i386-pc-linux-gnu? How about the blas, cblas and lapack directories (I have long ago unmerged the corresponding packages)? They contain only this: /etc/env.d $ find blas cblas lapack -type f -exec ls -l {} + -rw-r--r-- 1 root root 95 2008-02-16 15:59 blas/lib/config -rw-r--r-- 1 root root 95 2008-02-16 15:59 cblas/lib/config -rw-r--r-- 1 root root 95 2008-02-17 14:16 lapack/lib/config /etc/env.d $ for file in {blas,cblas,lapack}/lib/config; do echo "${file}:"; cat "${file}"; echo; done blas/lib/config: # Configuration file for eselect # This file has been automatically generated. CURRENT="atlas" cblas/lib/config: # Configuration file for eselect # This file has been automatically generated. CURRENT="atlas" lapack/lib/config: # Configuration file for eselect # This file has been automatically generated. CURRENT="atlas" -- Software is like sex: it is better when it is free. --Linus Torvalds