Failes to create package when started from directory with spaces
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-googleear
--2010-03-11 14:04:47-- http://
Resolving dl.google.com... 74.125.39.91, 74.125.39.93, 74.125.39.136, ...
Connecting to dl.google.
HTTP request sent, awaiting response... 200 OK
Length: 25989559 (25M) [application/
Saving to: `GoogleEarthLin
2010-03-11 14:06:24 (264 KB/s) - `GoogleEarthLin
Google Earth for GNU/Linux 5.1.3533.1731
Supported Google Earth version: 5.1.3533.1731
tar: dir/googleearth
tar: Exiting with failure status due to previous errors
tar: /home/mark/test dir/googleearth
tar: Error is not recoverable: exiting now
tar: /home/mark/test dir/googleearth
tar: Error is not recoverable: exiting now
mv: cannot stat `libcrypto.
mv: cannot stat `libssl.so.0.9.8': No such file or directory
cp: cannot stat `/home/mark/test dir/googleearth
cp: cannot stat `/home/mark/test dir/googleearth
Package: googleearth
Version: 5.1.3533.
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-
chmod: cannot access `usr/lib/
dpkg-deb: parse error, in file '/home/mark/test dir/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
NonfreeKernelMo
Package: googleearth-package 0.5.6ubuntu2
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: googleearth-package
Uname: Linux 2.6.31-19-generic i686
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 GoogleEarthLinu x.bin needs to get fixed.