On Jueves 25 Noviembre 2010 08:50:11 usted escribió: [...] > josm uses whatever the default java is on the system.
I know > Could you please paste the output of: > > $ LANG=C update-alternatives --display java > java - auto mode link currently points to /usr/lib/jvm/java-6-openjdk/jre/bin/java /usr/lib/jvm/java-6-openjdk/jre/bin/java - priority 1061 slave java.1.gz: /usr/lib/jvm/java-6-openjdk/jre/man/man1/java.1.gz /usr/lib/jvm/java-6-sun/jre/bin/java - priority 63 slave java.1.gz: /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz Current 'best' version is '/usr/lib/jvm/java-6-openjdk/jre/bin/java'. > > It seems like in your case openjdk's is the default one: > > $ josm > Using /usr/lib/jvm/java-6-openjdk/bin/java to execute josm. > [..] Yes, it is my default. The problem is that your dependencies do not take into account which java is user's default, they just say "any one of these will work", and that is not true: if user has one of them installed and it does not correspond to the user's default java, the needed jre will not be installed and the package executable will fail. > > If you want to use Sun's java, please change the alternative. Otherwise, > install openjdk-6-jre. Yes, that is the solution to my particular problem, but it is not a solution to the bug. > > JOSM really supports both, so it's not wise to just force the dependency on > OpenJDK. I understand. Is there a way to check which java will the user use and install the really needed dependency? > > In the end, I think this is just a misconfiguration of your system, and the > bug can be closed. > > Thanks, > David The point is: if a user has Sun's java installed, by any reason, and later installs openjdk-6-jre-headless by any other reason, for example by installing OpenOffice.org which depends on it, then when the user is to install josm the dependencies system thinks that all dependencies are fullfilled and they are not, since openjdk-6-jre-headless provides a high priority java binary which needs openjdk-6-jre (not installed) to execute josm. Hope this helps Noel er Envite
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel