After consulting with Alexis and briefly reviewing the code, I am
posting a temporary workaround that currently allows users on 64 bits
systems to upload bones files to the server. The current stock version
of the client (1.5-8) complains about the bones header before
uploading the bones file to the server:

$ sudo hearse
hearse: uploading bones
hearse: bonD0.11 offering to server
hearse: size of unsigned long is 8 rather than 4

By bypassing the headers check completely, the bones file can be
successfully uploaded to the server. Please note that this is just a
(very crude) workaround meant to use at your own risk while a proper
fix is implemented into the client. It can be done by commenting the
following lines:

/usr/bin/hearse:776
#   if ($ulong_size != 4) {
#       xdie "size of unsigned long is $ulong_size rather than 4\n";
#    }

After this change, the client is allowed to upload bones files to the
server and download new ones:

$ sudo hearse
hearse: uploading bones
hearse: bonD0.11 offering to server
hearse: bonD0.11 uploaded
hearse: bonD0.B offering to server
hearse: bonD0.B uploaded
hearse: bonM0.T offering to server
hearse: bonM0.T uploaded
hearse: downloading bones
hearse: downloaded bonD0.8
hearse: downloaded bonM0.5
hearse: downloaded bonD0.7
hearse: downloaded bonD0.12
hearse: downloaded bonD0.O
hearse: INFO:Finished downloading files

This version (3.4.3 64-bit Debian) and compatible versions have a
total of 10 bones files.  You uploaded 3 of them.  More stats are
available at http://hearse.krollmark.com.


I have tested the received files with a Wizard mode game, and seem to
be working as expected. Looking forward to the proper version of the
client!

Linux 2.6.39-2-amd64 #1 SMP Tue Jul 5 02:51:22 UTC 2011 x86_64 GNU/Linux

ii  hearse         1.5-8          exchange Nethack bones files with other play
ii  nethack-common 3.4.3-12.1     dungeon crawl game - common files



-- 
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