1 |
Hi. Some of my environment variables are screwed up |
2 |
/etc/env.d $ echo ${MANPATH} |
3 |
/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/ |
4 |
|
5 |
There is a '${MANPATH}' inside "${MANPATH}", and besides that |
6 |
"{MANPATH}" references the long obsolete sun-jre-bin-1.5.0.06 |
7 |
|
8 |
Also |
9 |
/etc/env.d $ cat 05gcc-i686-pc-linux-gnu |
10 |
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man" |
11 |
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info" |
12 |
LDPATH="/usr/lib/gcc/i686-pc-linux-gnu/4.1.2:/usr/lib/gcc/i686-pc-linux-gnu/4.2.2" |
13 |
PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2" |
14 |
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2" |
15 |
GCC_SPECS="" |
16 |
|
17 |
LDPATH references gcc-4.2.2, which is no longer installed |
18 |
(for several months, in fact). |
19 |
And there is both a 05gcc-i686-pc-linux-gnu file and a gcc directory in /etc/env.d |
20 |
|
21 |
Also, some files in /etc/env.d are suspiciously old: |
22 |
|
23 |
/etc/env.d $ ls -l --so=ti |
24 |
total 92 |
25 |
-rw-r--r-- 1 root root 22 2008-11-13 12:51 71firefox-bin |
26 |
drwxr-xr-x 2 root root 192 2008-11-10 09:43 gcc |
27 |
-rw-r--r-- 1 root root 145 2008-11-10 06:22 03opengl |
28 |
-rw-r--r-- 1 root root 36 2008-10-26 16:34 50ncurses |
29 |
-rw-r--r-- 1 root root 34 2008-10-09 20:24 05portage.envd |
30 |
-rw-r--r-- 1 root root 46 2008-10-04 17:45 90games |
31 |
-rw-r--r-- 1 root root 44 2008-10-01 20:57 37fontconfig |
32 |
-rw-r--r-- 1 root root 42 2008-10-01 20:56 99gentoolkit-env |
33 |
-rw-r--r-- 1 root root 14 2008-09-09 22:47 50gtk2 |
34 |
-rw-r--r-- 1 root root 48 2008-08-21 09:50 98ca-certificates |
35 |
-rw-r--r-- 1 root root 33 2008-08-16 07:21 50gconf |
36 |
-rw-r--r-- 1 root root 40 2008-08-09 11:41 20udev |
37 |
-rw-r--r-- 1 root root 12 2008-08-05 02:22 30java-finalclasspath |
38 |
-rw-r--r-- 1 root root 156 2008-07-13 07:14 05binutils |
39 |
drwxr-xr-x 2 root root 168 2008-07-13 07:14 binutils |
40 |
-rw-r--r-- 1 root root 20 2008-06-21 08:04 08nss |
41 |
-rw-r--r-- 1 root root 21 2008-06-19 07:56 08nspr |
42 |
-rw-r--r-- 1 root root 218 2008-05-05 03:02 00basic |
43 |
-rw-r--r-- 1 root root 79 2008-04-27 20:35 20java-config |
44 |
drwxr-xr-x 3 root root 72 2008-02-17 14:16 lapack |
45 |
-rw-r--r-- 1 root root 50 2008-02-07 11:29 70less |
46 |
-rw-r--r-- 1 root root 306 2008-02-06 10:32 05gcc-i686-pc-linux-gnu |
47 |
-rw-r--r-- 1 root root 34 2007-09-02 13:35 50emacs |
48 |
drwxr-xr-x 3 root root 72 2007-02-25 23:04 blas |
49 |
drwxr-xr-x 3 root root 72 2007-02-25 23:04 cblas |
50 |
-rw-r--r-- 1 root root 13 2007-01-26 20:58 99local |
51 |
-rw-r--r-- 1 root root 552 2006-09-21 18:13 20java |
52 |
-rw-r--r-- 1 root root 29 2006-03-19 14:12 02locale |
53 |
|
54 |
Also, there is both a 05binutils file and a binutils directory. |
55 |
Inside the binutils directory, there is this |
56 |
|
57 |
/etc/env.d $ ls -l binutils/ |
58 |
total 12 |
59 |
-rw-r--r-- 1 root root 15 2006-02-13 23:10 config-i386-pc-linux-gnu |
60 |
-rw-r--r-- 1 root root 13 2008-07-13 07:14 config-i686-pc-linux-gnu |
61 |
-rw-r--r-- 1 root root 122 2008-07-13 07:14 i686-pc-linux-gnu-2.18 |
62 |
|
63 |
/etc/env.d $ cat binutils/config-i386-pc-linux-gnu |
64 |
CURRENT=2.16.1 |
65 |
(obsolete) |
66 |
|
67 |
Also, |
68 |
/ $ for entry in /etc/env.d/*; do qfile -e "${entry}" || echo "${entry}" ORPHAN; done |
69 |
sys-apps/baselayout-1.12.12 (/etc/env.d/00basic) |
70 |
/etc/env.d/02locale ORPHAN |
71 |
/etc/env.d/03opengl ORPHAN |
72 |
/etc/env.d/05binutils ORPHAN |
73 |
/etc/env.d/05gcc-i686-pc-linux-gnu ORPHAN |
74 |
sys-apps/portage-2.1.4.5 (/etc/env.d/05portage.envd) |
75 |
dev-libs/nspr-4.7.1 (/etc/env.d/08nspr) |
76 |
dev-libs/nss-3.12 (/etc/env.d/08nss) |
77 |
/etc/env.d/20java ORPHAN |
78 |
dev-java/java-config-2.1.6 (/etc/env.d/20java-config) |
79 |
sys-fs/udev-124-r1 (/etc/env.d/20udev) |
80 |
dev-java/java-config-1.3.7 (/etc/env.d/30java-finalclasspath) |
81 |
media-libs/fontconfig-2.6.0-r2 (/etc/env.d/37fontconfig) |
82 |
/etc/env.d/50emacs ORPHAN |
83 |
gnome-base/gconf-2.22.0 (/etc/env.d/50gconf) |
84 |
x11-libs/gtk+-2.12.11 (/etc/env.d/50gtk2) |
85 |
sys-libs/ncurses-5.6-r2 (/etc/env.d/50ncurses) |
86 |
sys-apps/less-418 (/etc/env.d/70less) |
87 |
www-client/mozilla-firefox-bin-3.0.4 (/etc/env.d/71firefox-bin) |
88 |
/etc/env.d/90games ORPHAN |
89 |
app-misc/ca-certificates-20080809 (/etc/env.d/98ca-certificates) |
90 |
app-portage/gentoolkit-0.2.4.2 (/etc/env.d/99gentoolkit-env) |
91 |
/etc/env.d/99local ORPHAN |
92 |
sys-devel/binutils-2.18-r3 (/etc/env.d/binutils) |
93 |
/etc/env.d/blas ORPHAN |
94 |
/etc/env.d/cblas ORPHAN |
95 |
sys-devel/gcc-4.1.2 (/etc/env.d/gcc) |
96 |
sys-devel/gcc-4.3.2 (/etc/env.d/gcc) |
97 |
/etc/env.d/lapack ORPHAN |
98 |
|
99 |
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: |
100 |
|
101 |
/etc/env.d $ find blas cblas lapack -type f -exec ls -l {} + |
102 |
-rw-r--r-- 1 root root 95 2008-02-16 15:59 blas/lib/config |
103 |
-rw-r--r-- 1 root root 95 2008-02-16 15:59 cblas/lib/config |
104 |
-rw-r--r-- 1 root root 95 2008-02-17 14:16 lapack/lib/config |
105 |
|
106 |
|
107 |
/etc/env.d $ for file in {blas,cblas,lapack}/lib/config; do echo "${file}:"; cat "${file}"; echo; done |
108 |
blas/lib/config: |
109 |
# Configuration file for eselect |
110 |
# This file has been automatically generated. |
111 |
CURRENT="atlas" |
112 |
|
113 |
cblas/lib/config: |
114 |
# Configuration file for eselect |
115 |
# This file has been automatically generated. |
116 |
CURRENT="atlas" |
117 |
|
118 |
lapack/lib/config: |
119 |
# Configuration file for eselect |
120 |
# This file has been automatically generated. |
121 |
CURRENT="atlas" |
122 |
|
123 |
-- |
124 |
Software is like sex: it is better when it is free. --Linus Torvalds |