Bug#489700: freesweep: assumes the exsistence of the /var/games/ directory
Mari Wang
mariwan at ifi.uio.no
Mon Jul 7 08:41:23 UTC 2008
Package: freesweep
Version: 0.90-1
Severity: important
Tags: patch
Freesweep assumes the excistence of /var/games on installation. If
the directory does not exist, the following error occurs:
$ aptitude install freesweep
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
freesweep
0 packages upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/38.8kB of archives. After unpacking 160kB will be used.
Writing extended state information... Done
Selecting previously deselected package freesweep.
(Reading database ... 159744 files and directories currently installed.)
Unpacking freesweep (from .../freesweep_0.90-1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up freesweep (0.90-1) ...
touch: cannot touch `/var/games/sweeptimes': No such file or directory
dpkg: error processing freesweep (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
freesweep
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up freesweep (0.90-1) ...
touch: cannot touch `/var/games/sweeptimes': No such file or directory
dpkg: error processing freesweep (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
freesweep
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
If the directory exists prior to package installation, all is well.
The following trivial patch should fix the problem:
diff -ur freesweep-0.90.orig/debian/freesweep.dirs freesweep-0.90/debian/freesweep.dirs
--- freesweep-0.90.orig/debian/freesweep.dirs 2008-07-07 10:29:54.000000000 +0200
+++ freesweep-0.90/debian/freesweep.dirs 2008-07-07 10:30:18.000000000 +0200
@@ -1,2 +1,3 @@
usr/games
etc
+var/games
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages freesweep depends on:
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libncurses5 5.6+20080308-1 Shared libraries for terminal hand
freesweep recommends no packages.
-- no debconf information
--
Mari Wang
More information about the Pkg-games-devel
mailing list