[Bug 618980] New: /etc/profile.d/alljava.sh script has typo in "libdir" variable usage
http://bugzilla.novell.com/show_bug.cgi?id=618980 http://bugzilla.novell.com/show_bug.cgi?id=618980#c0 Summary: /etc/profile.d/alljava.sh script has typo in "libdir" variable usage Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: aburgemeister@novell.com QAContact: qa@suse.de Found By: Customer Services Priority: 300 Blocker: --- OpenSUSE 11.x, all patches as of 2010-06-30 The /etc/profile.d/alljava.sh script has the following contents: <code> # # /etc/profile.d/alljava.sh # # send feedback to http://www.suse.de/feedback # # This script sets some environment variables for default java. # Affected variables: PATH, JAVA_BINDIR, JAVA_HOME, JRE_HOME, # JDK_HOME, SDK_HOME # __libdir=lib if [ -x /usr/lib64/jvm/java ] || [ -x /usr/lib64/jvm/jre ] ; then __libdir=lib64 fi if [ -x /usr/$__libdir/jvm/java/bin/java ] || [ -x /usr/$__libdir/jvm/java/bin/jre ] ; then export JAVA_BINDIR=/usr/$__libdir/jvm/java/bin export JAVA_ROOT=/usr/$__libdir/jvm/java export JAVA_HOME=/usr/$__libdir/jvm/java export JRE_HOME=/usr/$_libdir/jvm/jre unset JDK_HOME unset SDK_HOME if [ -x /usr/$__libdir/jvm/java/bin/javac ] ; then # it is development kit if [ -x /usr/$__libdir/jvm/java/bin/jre ] ; then export JDK_HOME=/usr/$__libdir/jvm/java else export JDK_HOME=/usr/$__libdir/jvm/java export SDK_HOME=/usr/$__libdir/jvm/java fi fi else if [ -x /usr/$__libdir/jvm/jre/bin/java ] ; then # it is IBMJava2-JRE or SunJava2-JRE export PATH=$PATH:/usr/$__libdir/jvm/jre/bin export JAVA_BINDIR=/usr/$__libdir/jvm/jre/bin export JAVA_ROOT=/usr/$__libdir/jvm/jre export JAVA_HOME=/usr/$__libdir/jvm/jre export JRE_HOME=/usr/$__libdir/jvm/jre unset JDK_HOME unset SDK_HOME fi fi unset __libdir </code> Notice that on line 21 there is a reference to '$_libdir' which should actually be to '$__libdir' (two underscores, not just one). When this codepath is hit JRE_HOME is broken as a result. Customer encountered this in the forums: http://forums.opensuse.org/showthread.php?t=441133 My apologies if I used an incorrect component, though I believe the aaa_base package is probably part of Basesystem. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=618980 http://bugzilla.novell.com/show_bug.cgi?id=618980#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |ro@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=618980 https://bugzilla.novell.com/show_bug.cgi?id=618980#c1 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Ruediger Oertel <ro@novell.com> 2010-11-10 11:54:55 UTC --- duplicate of bnc#581513 *** This bug has been marked as a duplicate of bug 581513 *** http://bugzilla.novell.com/show_bug.cgi?id=581513 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com