Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65541 - sun-jdk-1.5.0_rc1 permanently breaks java environment
Summary: sun-jdk-1.5.0_rc1 permanently breaks java environment
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-27 07:59 UTC by crusaderky
Modified: 2004-10-20 10:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crusaderky 2004-09-27 07:59:08 UTC
I've had sun-jdk-1.5.0_rc1 in the past. Then I uninstalled it and switched back to 1.4.2.05.
Now, java gets out of PATH as soon as I log out after doing env-update. I can't see it in any case using a normal user.

#su

#emerge sun-jdk
[CUT]

# etcat -v sun-jdk
*  dev-java/sun-jdk :
        [M~ ] 1.2.2.017 (1.2)
        [M~ ] 1.3.1.13 (1.3)
        [  I] 1.4.2.05 (1.4)
        [M~ ] 1.5.0_rc1 (1.5)

#env-update && source /etc/profile
[CUT]

#java
[OK]

#java-config -J
/opt/sun-jdk-1.4.2.05/bin/java

#exit

#su

#java
bash: java: command not found

#java-config -J
jc_options: java not found at /opt/sun-jdk-1.5.0_rc1/bin/java or /opt/sun-jdk-1.5.0_rc1/jre/bin/java

#emerge info
Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distcc fixpackages sandbox userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X X509 aalib alsa apache2 apm avi berkdb bitmap-fonts bonobo cdparanoia cdr chroot crypt cscope cups curl dga directfb doc dv dvb dvd dvdr encode erandom esd extensions faad fbcon flac flash foomaticdb gd gdbm ggi gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ieee1394 imap imlib innodb ipv6 java jikes joystick jpeg kde kerberos krb4 lcms ldap libcaca libg++ libwww linguas_it live lzo mad mcal md5sum memlimit mikmod mmx mng motif mozilla moznoirc mozp3p mozsvg mpeg mpi mysql ncurses network nls nptl nvidia odbc offensive oggvorbis opengl pam parse-clocks pdflib perl pic png ppds prelude python qt quicktime readline rtc samba scanner sdl skey slang slp sndfile snmp socks5 speex spell sqlitesse ssl svga tcltk tcpd tetex tga theora tiff truetype unicode usb v4l v4l2 vim-with-x wmf wxwindows x86 xchattext xml xml2 xmms xprint xv xvid yaz zlib"
Comment 1 crusaderky 2004-09-27 08:05:24 UTC
as a temporary workaround, I can create a symlink:

# cd /opt/
# ln -s sun-jdk-1.4.2.05 sun-jdk-1.5.0_rc1
# java-config -J
/opt/sun-jdk-1.5.0_rc1/bin/java
Comment 2 Kevin J. Menard, Jr. 2004-10-18 17:50:16 UTC
Is this still a problem with the 1.5.0 ebuild?  If not, I'd say we close this out.
Comment 3 crusaderky 2004-10-20 10:06:54 UTC
fixed.