Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110561 - jdks and jres add directories to LDPATH that do not exists
Summary: jdks and jres add directories to LDPATH that do not exists
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Lowest minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-26 10:29 UTC by Horacio Hiroiti Sawame
Modified: 2006-01-08 16:33 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 Horacio Hiroiti Sawame 2005-10-26 10:29:38 UTC
Package dev-java/sun-jdk-1.4.2.09 set one directory incorrectly in the
environment variable 
ADDLDPATH="${JAVA_HOME}/jre/lib/i386/:${JAVA_HOME}/jre/lib/i386/native_threads/:${JAVA_HOME}/jre/lib/i386/classic/:${JAVA_HOME}/jre/
lib/i386/server/" in the file "/etc/env.d/java/20sun-jdk-1.4.2.09" .

Reproducible: Always
Steps to Reproduce:
1.emerge sun-jdk
2.ldconfig -v > /dev/null
3.

Actual Results:  
You see the error "ldconfig: Can't stat
/opt/sun-jdk-1.4.2.09/jre/lib/i386/classic: No such file or directory" in the
output of ldconfig.

Expected Results:  
"ldconfig -v" without errors.

Change the line to
ADDLDPATH="${JAVA_HOME}/jre/lib/i386/:${JAVA_HOME}/jre/lib/i386/native_threads/:${JAVA_HOME}/jre/lib/i386/client/:${JAVA_HOME}/jre/
lib/i386/server/" in the file "/etc/env.d/java/20sun-jdk-1.4.2.09" .
The subdirectories in "${JAVA_HOME}/jre/lib/i386/" are "client" (not classic),
"native_threads" and "server".
Comment 1 Horacio Hiroiti Sawame 2005-10-26 10:50:09 UTC
After changing "/etc/env.d/java/20sun-jdk-1.4.2.09" do "java-config -S
sun-jdk-1.4.2.09" and "/usr/sbin/env-update && source /etc/profile".
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-12-28 15:18:26 UTC
This is also present in blackdown-jdk-1.4.2.03. We need to go through all the jres and jdks to find out everything affected. Having unexisting directories in there does should not case any problems in usage.

pena uclibc # ldconfig -v > /dev/null
ldconfig: Path `/usr/lib/gcc/i686-pc-linux-gnu/3.4.4' given more than once
ldconfig: Can't stat /opt/blackdown-jdk-1.4.2.03/jre/lib/i386/classic: No such file or directory
ldconfig: Can't stat /usr/games/lib: No such file or directory
ldconfig: Cannot stat /usr/i686-pc-linux-gnu/lib/libopcodes-2.15.92.0.2.so: No such file or directory
ldconfig: Cannot stat /usr/i686-pc-linux-gnu/lib/libbfd-2.15.92.0.2.so: No such file or directory
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-01-08 16:33:50 UTC
I fixed sun-jdk-1.4.2.10 and blackdown-jdk-1.4.2.03, so we should be all set now. Thanks for reporting.