Package: googleearth-package
Version: 0.5.6
Severity: minor
Tags: patch

Hi!

While running "googleearth" with /bin/sh as dash:

$ googleearth 
[: 12: unexpected operator

And indeed:

$ checkbashisms /usr/bin/googleearth
possible bashism in /usr/bin/googleearth line 8 (should be 'b = a'):
if [ "$LD_LIBRARY_PATH" == "" ]; then

Patch:

diff -ur googleearth-package-0.5.6/make-googleearth-package 
googleearth-package-0.5.6/make-googleearth-package
--- googleearth-package-0.5.6/make-googleearth-package  2009-04-18 
09:48:35.000000000 -0300
+++ googleearth-package-0.5.6/make-googleearth-package  2009-04-18 
09:49:12.000000000 -0300
@@ -300,7 +300,7 @@
 #exec /lib/ld-linux.so.2 --library-path /usr/lib/googleearth 
/usr/lib/googleearth/googleearth-bin "$@"

 GOOGLE_EARTH_LD_LIBRARY_PATH=/usr/lib/googleearth
-if [ "$LD_LIBRARY_PATH" == "" ]; then
+if [ "$LD_LIBRARY_PATH" = "" ]; then
   LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GOOGLE_EARTH_LD_LIBRARY_PATH}
 else
   LD_LIBRARY_PATH=${GOOGLE_EARTH_LD_LIBRARY_PATH}

Thank you!

Best regards,
Nelson

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-naoliv1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages googleearth-package depends on:
ii  bzip2                         1.0.5-1    high-quality block-sorting file co
ii  curl                          7.19.4-1   Get a file from an HTTP, HTTPS or 
ii  dpkg-dev                      1.14.26    Debian package development tools
ii  fakeroot                      1.12.2     Gives a fake root environment
ii  file                          5.00-1     Determines file type using "magic"
ii  wget                          1.11.4-2   retrieves files from the web
ii  x11-common                    1:7.4+1    X Window System (X.Org) infrastruc
ii  x11-utils                     7.4+1      X11 utilities

googleearth-package recommends no packages.

googleearth-package suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to