Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 119577
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Toralf Förster <toralf.foerster@gmx.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 119577 depends on: Show dependency tree
Bug 119577 blocks: 23579
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-01-19 10:59 0000
After upgrading from dev-java/sun-jdk-1.4.2.10 rp -r2 I got:

tfoerste@n22 ~ $ java -version
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.

:-(

Problem seems to be related to the changed path i686 vs i386 :

n22 /opt/sun-jdk-1.4.2.10/jre/lib # pwd
/opt/sun-jdk-1.4.2.10/jre/lib
n22 /opt/sun-jdk-1.4.2.10/jre/lib # java -version
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
n22 /opt/sun-jdk-1.4.2.10/jre/lib # ln -s i686 i386
n22 /opt/sun-jdk-1.4.2.10/jre/lib # java -version
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)

------- Comment #1 From Bill Krueger 2006-01-19 11:36:24 0000 -------
I had the same problem as well (I use 1.4.2 and 1.5.0 installed if that
matters) and doing an emerge =sun-jdk-1.4.2.10-r2 fixed it for me.

------- Comment #2 From Josh Nichols (RETIRED) 2006-01-19 11:38:31 0000 -------
The ebuild should be installing that symlink for you. I seem to recall seeing
this, but then it went away after re-emerging. I'm not sure why this happens
exactly, but I would suspect it has to do with the i386 being a real directory
in -r1, but a symlink in -r2.

I could try keeping the original i386 directory, then symlinking that to i686.

------- Comment #3 From Toralf Förster 2006-01-19 12:13:53 0000 -------
>I could try keeping the original i386 directory, then symlinking that to i686
During emerg of -r2 the directory i686 was created and portage removed the i386
directory during unmerge of the 1.4.2.10 package, so I symlinked i686 to i386
not vice versa

------- Comment #4 From Sven 2006-01-19 12:43:19 0000 -------
Same error for me!
There are also other problems:
jsvc (the thing that's included in tomcat 5.5 to start tomcat as a daemon)
doesn't find java anymore. An strance shows me, that jsvc also only looks in
the i386 directory.

The ebuild should really do "ln -s i386 i686" instead of "mv i386 i686".

------- Comment #5 From Josh Sled 2006-01-19 13:46:54 0000 -------
Just wanted to echo another datapoint: emerge udatep from sun-jdk-1.5.0.06-r1
to -r2 broke in the same way; the `ln -s i686 i386` symlink initially seems to
help...

------- Comment #6 From ((RayDar)) 2006-01-19 14:55:59 0000 -------
For me, both the i386 and i686 directories existed. The only thing in the i386
directory was libjpisock.so.

Renaming the i386 directory to i386.error before making the symlink named i386
that points to i686 seems to have fixed the problem for me.

------- Comment #7 From Josh Nichols (RETIRED) 2006-01-19 16:13:04 0000 -------
Fixed in CVS. Please sync, unmerge =dev-java/sun-jdk-1.4.2.10-r2 , then
re-merge =dev-java/sun-jdk-1.4.2.10-r2. You may get away without unmerging, but
it would be on the safe side, so that emerge doesn't get confused about the
symlinks.

For the record, /opt/sun-jdk-1.4.2.10/jre/lib/i386 is no the actual directory,
and that gets symlinked to i686. Sorry for the breakage folks.

------- Comment #8 From Jakub Moc (RETIRED) 2006-01-20 07:14:20 0000 -------
*** Bug 119688 has been marked as a duplicate of this bug. ***

------- Comment #9 From Andreas Proschofsky 2006-01-23 07:49:26 0000 -------
*** Bug 120055 has been marked as a duplicate of this bug. ***

------- Comment #10 From Andreas Proschofsky 2006-01-23 22:37:51 0000 -------
*** Bug 120105 has been marked as a duplicate of this bug. ***

------- Comment #11 From Jakub Moc (RETIRED) 2006-01-24 10:56:03 0000 -------
*** Bug 120206 has been marked as a duplicate of this bug. ***

------- Comment #12 From Jakub Moc (RETIRED) 2006-01-26 01:48:29 0000 -------
*** Bug 120386 has been marked as a duplicate of this bug. ***

------- Comment #13 From Jakub Moc (RETIRED) 2006-01-27 15:22:24 0000 -------
*** Bug 120556 has been marked as a duplicate of this bug. ***

------- Comment #14 From Jakub Moc (RETIRED) 2006-03-16 02:48:42 0000 -------
*** Bug 126395 has been marked as a duplicate of this bug. ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug