openjdk-6-jdk should be the default/priority for javac

Bug #318442 reported by Matthias Klose
2
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
Fix Released
Undecided
Steve Langasek
Jaunty
Fix Released
Undecided
Steve Langasek

Bug Description

Binary package hint: command-not-found

openjdk-6-jdk shold be moved to the top, gcj-4.2 behind gcj-4.3

$ javac JButtonDemo.java
The program 'javac' can be found in the following packages:
 * gcj-4.2
 * java-gcj-compat-dev
 * jikes-sablevm
 * kaffe
 * sun-java6-jdk
 * jikes-classpath
 * ecj
 * gcj-4.3
 * openjdk-6-jdk
 * jikes-kaffe
 * sun-java5-jdk
 * cacao-oj6-jdk
 * jikes-sun

Revision history for this message
Nicklas W Bjurman (lordmetroid) wrote :

I agreee... GCJ is so slow.

Revision history for this message
LTSmash (lord-ltsmash) wrote :

Confirmed under Jaunty

Changed in command-not-found:
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

I've pushed a proposed fix in bzr (linked above) which I think is the right fix for a more general problem, namely that there's other metadata already available that should tell us which packages are preferred, but we're not using it.

This change adds sorting the package by archive component (including both the known Debian and Ubuntu components in the list, with all other components sorted last).

To further improve the sort order, I think we should also sort by package priority - which requires storing that information in the database for all packages. The priority data in the Ubuntu archive is more or less unmaintained at present, I think, but it /can/ be fixed up if there's a use case, and I think that's a better choice than carrying overrides around in the command-not-found package itself.

Martin Pitt (pitti)
Changed in command-not-found:
assignee: nobody → vorlon
status: Confirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

The fix was part of the "0.2.32ubuntu1" jaunty upload, thanks for it again.

But the bug goes further than this, so I keep it open for now, currently there is no support in command-not-found to add "hints" about the display order, that requires new code.

Changed in command-not-found (Ubuntu Jaunty):
status: Fix Committed → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

In addition to the support from Steve I added basic priority support via a manual overrides file.

Changed in command-not-found (Ubuntu Jaunty):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package command-not-found - 0.2.34ubuntu1

---------------
command-not-found (0.2.34ubuntu1) jaunty; urgency=low

  * CommandNotFound/CommandNotFound.py:
    - support "priority.txt" file that allows basic priority
      ordering in the output
  * data/priority.txt:
    - add initial version with "openjdk-6-jdk" (LP: #318442)

 -- Michael Vogt <email address hidden> Mon, 23 Mar 2009 13:45:26 +0100

Changed in command-not-found:
status: Fix Committed → Fix Released
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.