ia32-sun-java6-bin has improperly equal alternatives priority on amd64

Bug #643658 reported by Todd Vierling
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
New
Undecided
Sylvestre Ledru
Nominated for Lucid by Todd Vierling
Nominated for Maverick by Todd Vierling
Nominated for Natty by Todd Vierling
Oneiric
Won't Fix
Undecided
Sylvestre Ledru

Bug Description

Ideally, the default JVM should match the default JDK architecture. If ia32-sun-java6-bin is installed, it should not take over the java VM alternative links unless explicitly requested by the user via update-java-alternatives. As it is, installing the sun-java6-jdk package and ia32-sun-java6-bin package results in a split system where the VM binaries are 32-bit by default, but the JDK apps are 64-bit.

Both packages have an alternatives priority of 63, so ia32-java-6-sun wins solely because it sorts lexicographically earlier than java-6-sun. IMHO the alternatives priority for ia32-java-6-sun should be lowered so as not to override the 'native' (64-bit) JVM by default.

Revision history for this message
Todd Vierling (duh) wrote :

Trivial patch: force priority to 15 when building ia32- version of the package

tags: added: patch
Revision history for this message
Todd Vierling (duh) wrote :

For testing, a version of the 6.20dlj-1ubuntu3 package for lucid, with this patch applied (altered so as to build only the affected binary package), is in the following PPA:

https://launchpad.net/~duh/+archive/duh

(Well, it will be available when the build cluster gets to it, in about a half hour from this comment.)

Revision history for this message
Todd Vierling (duh) wrote :

This issue exists (and the same patch works against) 6.21-1ubuntu1 as shipped in maverick.

Revision history for this message
Todd Vierling (duh) wrote :

The PPA versions have been moved to their own PPA, now offered for Karmic, Lucid, Maverick, and Natty: ppa:duh/sun-java6

https://launchpad.net/~duh/+archive/sun-java6

Revision history for this message
Todd Vierling (duh) wrote :

This is _still_ broken in oneiric and the fix is absolutely trivial - can someone please take this on in the official packaging? As it currently stands, applications like eclipse for amd64 cannot run using the default /usr/bin/java if ia32-sun-java6 is installed, without altering the priorities.

Revision history for this message
Sylvestre Ledru (sylvestre) wrote : Re: [Bug 643658] Re: ia32-sun-java6-bin has improperly equal alternatives priority on amd64

Le mercredi 13 juillet 2011 à 14:29 +0000, Todd Vierling a écrit :
> This is _still_ broken in oneiric and the fix is absolutely trivial -
Could you provide a diff of the fix ?

Thanks
Sylvestre

Revision history for this message
Todd Vierling (duh) wrote :

sylvestre, the patch has been attached to this bug since it was created last year.

Revision history for this message
Sylvestre Ledru (sylvestre) wrote :

Oups, sorry, I haven't notice. Next time, please report upstream... (Debian), I would have applied it immediately.

Changed in sun-java6 (Ubuntu Oneiric):
assignee: nobody → Sylvestre Ledru (sylvestre)
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in sun-java6 (Ubuntu Oneiric):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.