public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Safety/wiseness of moving stray files from /etc/env.d
@ 2008-11-21  1:51 Jorge Peixoto de Morais Neto
  2008-11-21  1:56 ` Andrey Falko
  0 siblings, 1 reply; 3+ messages in thread
From: Jorge Peixoto de Morais Neto @ 2008-11-21  1:51 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Safety/wiseness of moving stray files from /etc/env.d
  2008-11-21  1:51 [gentoo-user] Safety/wiseness of moving stray files from /etc/env.d Jorge Peixoto de Morais Neto
@ 2008-11-21  1:56 ` Andrey Falko
  2008-11-21  8:57   ` Jorge Peixoto de Morais Neto
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Falko @ 2008-11-21  1:56 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

On 11/20/08, Jorge Peixoto de Morais Neto <please.no.spam.here@gmail.com>
wrote:
>
>
> 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:
>
>
Well, since you are backing them up, I don't see much harm since you can
move them back once you see that something broke. When is the last time you
did an etc-update? What running env-update?

[-- Attachment #2: Type: text/html, Size: 838 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Safety/wiseness of moving stray files from /etc/env.d
  2008-11-21  1:56 ` Andrey Falko
@ 2008-11-21  8:57   ` Jorge Peixoto de Morais Neto
  0 siblings, 0 replies; 3+ messages in thread
From: Jorge Peixoto de Morais Neto @ 2008-11-21  8:57 UTC (permalink / raw
  To: gentoo-user

On Thu, 20 Nov 2008 17:56:38 -0800
"Andrey Falko" <ma3oxuct@gmail.com> wrote:

> On 11/20/08, Jorge Peixoto de Morais Neto <please.no.spam.here@gmail.com>
> wrote:
> >
> >
> > 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:
> >
> >
> Well, since you are backing them up, I don't see much harm since you can
> move them back once you see that something broke.
My fear is that something may break and I not realize; or it may break something
2 months from now, when I wouldn't associate the breakage with my messing with
/etc/env.d. I am afraid of breaking the system after doing enough times already.
> When is the last time you
> did an etc-update? What running env-update?
I use dispatch-conf every time Portage warns me to update configuration files.
Just to make you happy, I have just run etc-update followed by env-update.
Nothing changed.

Speaking of env-update, see my /etc/ld.so.conf, and how it is screwed up:
$ cat /etc/ld.so.conf 
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
//usr//lib/opengl/xorg-x11/lib
/usr/i686-pc-linux-gnu/lib
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2
/usr/lib/gcc/i686-pc-linux-gnu/4.2.2
/usr/lib/nspr
/usr/lib/nss
/opt/sun-jre-bin-1.5.0.06/lib/i386/
/opt/sun-jre-bin-1.5.0.06/lib/i386/native_threads/
/opt/sun-jre-bin-1.5.0.06/lib/i386/xawt/
/opt/sun-jre-bin-1.5.0.06/lib/i386/server/
/opt/firefox
/usr/games/lib


There is no /usr/lib/gcc/i686-pc-linu/usr/lib/gcc/i686-pc-linux-gnu/4.2.2
and no /opt/sun-jre-bin-1.5.0.06. These are erroneous entries.

Has this happened with other people? Does Portage leave stray files
behind in /etc/env.d?

-- 
Software is like sex: it is better when it is free. --Linus Torvalds



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-21  8:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21  1:51 [gentoo-user] Safety/wiseness of moving stray files from /etc/env.d Jorge Peixoto de Morais Neto
2008-11-21  1:56 ` Andrey Falko
2008-11-21  8:57   ` Jorge Peixoto de Morais Neto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox