Comment 3 for bug 1438629

Revision history for this message
Romain Vimont (rom+ubuntu) wrote :

In fact, androidsdk-uiautomatorviewer works fine in Debian Sid, without modifying the script.

Instead, the package adds symlinks into /usr/share/java:
$ dpkg-deb -c eclipse-rcp_3.8.1-7_amd64.deb | grep ^l
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/features/org.eclipse.rcp_3.8.1.dist-8LA2GODFTJUDJ21934/eclipse_update_120.jpg -> ../../../../share/eclipse/features/org.eclipse.rcp_3.8.1.dist-8LA2GODFTJUDJ21934/eclipse_update_120.jpg
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/org.apache.felix.gogo.runtime_0.10.0.jar -> ../../../share/java/org.apache.felix.gogo.runtime.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/com.ibm.icu_4.4.2.v20110823.jar -> ../../../share/java/com.ibm.icu-4.4.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/org.apache.felix.gogo.shell_0.10.0.jar -> ../../../share/java/org.apache.felix.gogo.shell.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/org.eclipse.swt_3.8.2.jar -> ../../../share/java/swt.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/org.apache.felix.gogo.command_0.12.0.jar -> ../../../share/java/org.apache.felix.gogo.command.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.jface_3.8.0.dist.jar -> ../../lib/eclipse/plugins/org.eclipse.jface_3.8.0.dist.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.core.commands.jar -> org.eclipse.core.commands_3.6.1.dist.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.jface.jar -> org.eclipse.jface_3.8.0.dist.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.equinox.common.jar -> org.eclipse.equinox.common_3.6.100.dist.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.equinox.common_3.6.100.dist.jar -> ../../lib/eclipse/plugins/org.eclipse.equinox.common_3.6.100.dist.jar
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.core.commands_3.6.1.dist.jar -> ../../lib/eclipse/plugins/org.eclipse.core.commands_3.6.1.dist.jar

These two symlinks seem sufficient to fix uiautomatorviewer:
sudo ln -s ../../lib/eclipse/plugins/org.eclipse.jface_3.8.0.dist.jar /usr/share/java
sudo ln -s ../../lib/eclipse/plugins/org.eclipse.core.commands_3.6.1.dist.jar /usr/share/java

Therefore, please ignore the patch but add the symlinks instead ;-)