Package: etoys
Version: 3.0.1916+svn132-2
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu lucid ubuntu-patch


In Ubuntu, we've applied the attached patch to achieve the following:

  * etoys.in: use squeakvm in lib rather than /usr/bin/squeakvm, which no
    longer exists. (LP: #561332, #301190)

We thought you might be interested in doing the same. 

You can experience the bug by attempting to run the following on an
up-to-date Debian sid:

 # aptitude install etoys
 # /usr/games/etoys 
 /usr/bin/squeakvm -encoding UTF-8 -vm-display-x11 -xshm
 /usr/share/etoys/etoys.image 
 /usr/games/etoys: line 55: /usr/bin/squeakvm: No such file or directory
 /usr/games/etoys: line 55: exec: /usr/bin/squeakvm: cannot execute: No
 such file or directory

Thanks,

Luke Faraone

-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid-updates
  APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-21-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u etoys-3.0.1916+svn132/etoys.in etoys-3.0.1916+svn132/etoys.in
--- etoys-3.0.1916+svn132/etoys.in
+++ etoys-3.0.1916+svn132/etoys.in
@@ -4,7 +4,17 @@
 # Description: Script to start the Squeak VM binary 
 #              with the etoys.image
 
-VM="@prefix@/bin/squeakvm"
+# Part copied from /usr/bin/squeak in package squeak-vm. ~lfaraone 2010-04-14
+VM_VERSION=`find @prefix@/lib/squeak/ -name "squeakvm" -type f|cut -f5 -d"/"`
+sq_d...@prefix@/lib/squeak/$VM_VERSION
+if [ ! -n "$SQUEAK" ]
+then
+    VM="$SQ_DIR/squeakvm"
+else
+    VM="$SQUEAK"
+fi
+
+# End part.
 VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm"
 IMAGE="@prefix@/share/etoys/etoys.image"
 IMOPTIONS=""

Reply via email to