[Bug 841284] New: profile.d/alljava.sh does not always detect installed jdk
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c0 Summary: profile.d/alljava.sh does not always detect installed jdk Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: F.Schuette@t-online.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 If a 64bit JDK and 32bit JRE is installed, the script finds the 64bit JDK but does not break completely. It continues to search and finds the 32bit JRE next so it uses this one, because the "break" just breaks the inner "for" loop but it should break the outer "for" loop, too. Reproducible: Always Steps to Reproduce: 1. install 64bit JDK and 32bit JRE 2. log in Actual Results: The variable JDK_HOME is not set and JAVA_HOME points to 32bit JRE. Expected Results: The variable JDK_HOME should point to 64bit JDK. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |mvyskocil@suse.com |ovo.novell.com | -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c1 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |F.Schuette@t-online.de --- Comment #1 from Michal Vyskocil <mvyskocil@suse.com> 2013-09-30 07:54:32 UTC --- (In reply to comment #0)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0
If a 64bit JDK and 32bit JRE is installed, the script finds the 64bit JDK but does not break completely. It continues to search and finds the 32bit JRE next so it uses this one, because the "break" just breaks the inner "for" loop but it should break the outer "for" loop, too.
Can you post the output of sh -x /etc/profile.d/alljava.sh? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c2 --- Comment #2 from Frank Schütte <F.Schuette@t-online.de> 2013-09-30 14:04:28 UTC --- Created an attachment (id=560858) --> (http://bugzilla.novell.com/attachment.cgi?id=560858) text file, output of sh -x /etc/profile.d/alljava.sh -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c3 --- Comment #3 from Frank Schütte <F.Schuette@t-online.de> 2013-09-30 14:05:13 UTC --- Created an attachment (id=560859) --> (http://bugzilla.novell.com/attachment.cgi?id=560859) text file, output of update-alternatives showing java, javac configuration -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c4 Frank Schütte <F.Schuette@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|F.Schuette@t-online.de | --- Comment #4 from Frank Schütte <F.Schuette@t-online.de> 2013-09-30 14:35:52 UTC --- Hallo Michal, I attached the output of sh -x /etc/profile.d/alljava.sh and the output of update-alternatives for a quick overview of the installed jdks, jres. Thank you Frank -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c5 --- Comment #5 from Michal Vyskocil <mvyskocil@suse.com> 2013-10-01 13:05:47 UTC --- Created an attachment (id=561036) --> (http://bugzilla.novell.com/attachment.cgi?id=561036) Break from outer loop Hi, thanks for the info. Please check if attached patch does work for you as expected. It fixes the looping problem as well it don't change JRE_HOME if already defined. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c6 --- Comment #6 from Frank Schütte <F.Schuette@t-online.de> 2013-10-01 13:21:28 UTC --- Hallo Michal, thank you for your help. Your patch corrects the problem. How do I find out, when this change will be included in openSUSE update to 12.3 or in next version 13.1 ? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c7 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |lnussel@suse.com --- Comment #7 from Michal Vyskocil <mvyskocil@suse.com> 2013-10-01 13:31:01 UTC --- You will be notified via comment in this bug, once fix will be released. Ludwig: as you are the maintainer of aaa_base, do you have more fixes for 12.3 in a queue? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c8 --- Comment #8 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-10-01 17:01:36 CEST --- This is an autogenerated message for OBS integration: This bug (841284) was mentioned in https://build.opensuse.org/request/show/201616 Factory / aaa_base -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c9 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |mvyskocil@suse.com InfoProvider|lnussel@suse.com | AssignedTo|mvyskocil@suse.com |lnussel@suse.com --- Comment #9 from Michal Vyskocil <mvyskocil@suse.com> 2013-10-02 08:36:47 UTC --- Already in git, ludwig, please cherry-pick it for 12.3 (and 13.1) maintenance update. https://github.com/openSUSE/aaa_base/commit/00df88a45607329c22efb81b69406108... -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c10 --- Comment #10 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-10-08 15:00:21 CEST --- This is an autogenerated message for OBS integration: This bug (841284) was mentioned in https://build.opensuse.org/request/show/202612 12.3 / aaa_base -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c11 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #11 from Ludwig Nussel <lnussel@suse.com> 2013-10-08 15:01:33 CEST --- submitted to 12.3. Werner takes care of Factory&13.1. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c12 --- Comment #12 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-10-14 15:00:12 CEST --- This is an autogenerated message for OBS integration: This bug (841284) was mentioned in https://build.opensuse.org/request/show/203239 13.1 / aaa_base -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=841284 https://bugzilla.novell.com/show_bug.cgi?id=841284#c13 --- Comment #13 from Swamp Workflow Management <swamp@suse.de> 2013-10-16 13:04:21 UTC --- openSUSE-RU-2013:1555-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 841284 CVE References: Sources used: openSUSE 12.3 (src): aaa_base-12.3-14.12.1 -- 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