Failes to create package when started from directory with spaces

Bug #537384 reported by Mark Rogers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
googleearth-package (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: googleearth-package

Doesn't work when started in a directory whose name contains spaces. Doesn't detect the error and completes with "Success" but no package created.

Steps to reproduce below:

$cd ~
$mkdir "test dir"
$cd "test dir"
$make-googleearth-package

--2010-03-11 14:04:47-- http://dl.google.com/earth/client/current/GoogleEarthLinux.bin
Resolving dl.google.com... 74.125.39.91, 74.125.39.93, 74.125.39.136, ...
Connecting to dl.google.com|74.125.39.91|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25989559 (25M) [application/octet-stream]
Saving to: `GoogleEarthLinux.bin'

2010-03-11 14:06:24 (264 KB/s) - `GoogleEarthLinux.bin' saved [25989559/25989559]

Google Earth for GNU/Linux 5.1.3533.1731
Supported Google Earth version: 5.1.3533.1731
tar: dir/googleearth-tmp: Not found in archive
tar: Exiting with failure status due to previous errors
tar: /home/mark/test dir/googleearth-tmp/googleearth-linux-x86.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: /home/mark/test dir/googleearth-tmp/googleearth-data.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
mv: cannot stat `libcrypto.so.0.9.8': No such file or directory
mv: cannot stat `libssl.so.0.9.8': No such file or directory
cp: cannot stat `/home/mark/test dir/googleearth-tmp/googleearth.xpm': No such file or directory
cp: cannot stat `/home/mark/test dir/googleearth-tmp/README*': No such file or directory
Package: googleearth
Version: 5.1.3533.1731+0.5.6-1
Section: non-free/science
Priority: optional
Maintainer: <mark@mark-desktop>
Architecture: i386
Depends: ttf-dejavu | ttf-bitstream-vera | msttcorefonts,
Description: Google Earth, a 3D map/planet viewer
 Package built with googleearth-package.
chmod: cannot access `usr/lib/googleearth/googleearth-bin': No such file or directory
dpkg-deb: parse error, in file '/home/mark/test dir/googleearth-deb/DEBIAN/control' near line 7 package 'googleearth':
 `Depends' field, missing package name, or garbage where package name expected
Success!
You can now install the package with e.g. sudo dpkg -i <package>.deb

ProblemType: Bug
Architecture: i386
Date: Thu Mar 11 14:00:30 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: ksplice_s4o65fmq_vmlinux_new ksplice_s4o65fmq ksplice_9m7efmmd_vmlinux_new ksplice_9m7efmmd ksplice_im9hmdfu_vmlinux_new ksplice_im9hmdfu ksplice_e9k5oneu_vmlinux_new ksplice_e9k5oneu ksplice_a2fy1ye7_vmlinux_new ksplice_a2fy1ye7 nvidia
Package: googleearth-package 0.5.6ubuntu2
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-19.56-generic
SourcePackage: googleearth-package
Uname: Linux 2.6.31-19-generic i686

Revision history for this message
Mark Rogers (mark-web) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :

Confirmed.
The problem is the current line failing:
  sh "$OPT_FILE" --tar -xvf -C "$tmpdir" >&2

A workaround might be to create a tmpdir outside the current directory, e.g. in /tmp.

Apart from that, it looks like GoogleEarthLinux.bin needs to get fixed.

Changed in googleearth-package (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Adnan Hodzic (fooctrl) wrote :

Please try 0.6.1 version of this package which I backported to work on Ubuntu 10.04 and up, Google Earth 6.0 is also supported:
https://launchpad.net/~absinthesyringe/+archive/googleearth-package

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.