Red Hat Bugzilla – Bug 20454
Save games fails
Last modified: 2008-05-01 11:37:59 EDT
When I install nethack-3.3.1-1.i386.rpm, run nethack, save a game, and then
restart it, the restore of the saved games fails with a "version mismatch"
Verified; looking into it.
I think it is a problem with compression.
There is following work around:
1) Save game --> file "/usr/lib/games/nethackdir/save/123uli.bz2" is created
(123 and uli are replaced by user id/user name)
2) Decompress this file by executing "bzip2 -cd 123uli.bz2"
3) Now the restart of the game will be OK
Exists in RH7.1 powertools' nethack-3.3.1-3.i386.rpm too.
Here's a fix: in the source RPM's nethack-3.3.1-redhat.patch
COMPRESS_OPTIONS are defined as "-q -z9" but bzip2 _forces_ compression with
the -z flag, thus making decompression always fail since the COMPRESS_OPTIONS
are passed to the COMPRESS executable also when decompressing. Modifying the
patch to define COMPRESS_OPTIONS as "-q -9" and recompiling fixes this.
*** Bug 45428 has been marked as a duplicate of this bug. ***
*** Bug 52800 has been marked as a duplicate of this bug. ***
A very minor but annoying bug...
Fwiw, I created rpms fixing it
(by deleting 1 character from the patch file and rebuilding,
exactly as proposed by <firstname.lastname@example.org> above),
they are here:
Closing as WONTFIX due to end of life of the Power Tools product line. Please
open a new bug report under the Red Hat Linux product if the component is still
included in the base Red Hat distribution.