[Bug 1221361] New: /etc/profile.d/alljava.csh sets JAVA_HOME incorrectly
https://bugzilla.suse.com/show_bug.cgi?id=1221361 Bug ID: 1221361 Summary: /etc/profile.d/alljava.csh sets JAVA_HOME incorrectly Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.5 Hardware: x86-64 OS: openSUSE Leap 15.5 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: pkeller@globalphasing.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- /etc/profile.d/alljava.csh contains the following assignment: setenv JAVA_HOME $ALTERNATIVES_JAVAC_LINK:h:h setenv JAVA_HOME $JAVA_HOME/bin This is clearly incorrect, and makes some Java applications fail to start. Looking at the corresponding Bourne-shell file for comparison, the second of these two assignments is obviously intended to be: setenv JAVA_BINDIR $JAVA_HOME/bin -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1221361 Peter Keller <pkeller@globalphasing.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pkeller@globalphasing.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1221361 https://bugzilla.suse.com/show_bug.cgi?id=1221361#c1 Giacomo Comes <comes@naic.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |comes@naic.edu --- Comment #1 from Giacomo Comes <comes@naic.edu> --- There is an error in /etc/profile.d/alljava.csh (leap 15.5). The line: set ALTERNATIVES_JAVA_LINK=`realpath /etc/alternatives/java 2> /dev/null` does not work because the c shell does not support std-error redirection. The error causes ALTERNATIVES_JAVA_LINK to be empty and that makes also the variables: JRE_HOME, JAVA_HOME, JDK_HOME and SDK_HOME empty as well. The bug is present in the file: git-47-056fc66c699a8544c7692a03c905fca568f5390b.patch in the leap 15.5 source package. Funny enough, the same file in the leap 15.6 source package is without the bug. Therefore there is no issue on leap 15.6 Tumbleweed instead has incorporated the faulty patch and the file: aaa_base-84.87+git20180409.04c9dae/files/etc/profile.d/alljava.csh in the source tar file: aaa_base-84.87+git20180409.04c9dae.tar.xz contains the same bug as leap 15.5. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1221361 https://bugzilla.suse.com/show_bug.cgi?id=1221361#c2 --- Comment #2 from Giacomo Comes <comes@naic.edu> --- I can also confirm the misspelling JAVA_HOME/JAVA_BINDIR Such misspelling is present in Leap 15.5, 15.6 and tumbleweed. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1221361 https://bugzilla.suse.com/show_bug.cgi?id=1221361#c12 Giacomo Comes <gcomes.obs@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcomes.obs@gmail.com --- Comment #12 from Giacomo Comes <gcomes.obs@gmail.com> --- An update for leap 15.5 come out today, so I went to check what is currently the situation for this bug report: tumbleweed: both typo and stderr redirection fixed Leap 15.5: only stderr redirection fixed, typo still present. Leap 15.6: both typo and stderr redirection present. While the update for leap 15.6 could be on its way, I find suspicious that for leap 15.5 only the stderr redirection was fixed but not the typo. Maybe it was an oversight? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1221361 https://bugzilla.suse.com/show_bug.cgi?id=1221361#c19 --- Comment #19 from Giacomo Comes <gcomes.obs@gmail.com> --- Today's update for Leap 15.5 finally fixed the issue. Leap 15.6 thought, is still without fix. And it's final release is just in a couple of weeks. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com