Comment 10 for bug 296880

Revision history for this message
wensveen (wensveen) wrote :

@Aldrin: Yes, you're right. Hmm, I guess it's not possible to have the dependencies conflict with all java runtimes below java 6. Or at least, this would be undesirable.

At the very least Aldrin's 1st suggestion should be done. It is indeed simply *wrong*. When we also depend on 'openjdk-6-jre | sun-java6-jre', fiXedd script is okay, because we know at least one of them is installed. A more complicated, but also more correct option would be to first check /etc/alternatives, and when that results in a java version below 6, fall back to fiXedd script.

Actually, /etc/alternatives/java is kind of incorrect, IMO. Because java5 and java6 are seperate products, and it is completely viable to run them alongside each other, there should be an /etc/alternatives/java5 and /etc/alternatives/java6 (../java7). At least for versions that are not completely compatible.