Bug 140336

Summary: nethack does not work on 64 bit machines
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Andreas Vetter <vetter>
Component: OtherAssignee: Stanislav Brabec <sbrabec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: asklein
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: strace of nethack on 64 bit

Description Andreas Vetter 2005-12-20 15:05:49 UTC
How to reproduce:
install nethack.rpm on a 64 bit machine
start nethack as user, you will get an error message:
No HACKSTYLE set so trying to detect...
nethack.tty found, it will be executed
Warning: cannot write scoreboard file /var/games/nethack/record

Hit return to continue:
NetHack, Copyright 1985-2003
         By Stichting Mathematisch Centrum and M. Stephenson.
         See license for details.
No write permission to lock /var/games/nethack/perm!

Hit space to continue:

Then nethack drops back to the shell.
It works as root, and it works on 32 bit for normal user and root.

rpm -V nethack says nothing, so it's fine.

I will attach a strace.
Comment 1 Andreas Vetter 2005-12-20 15:07:03 UTC
Created attachment 61477 [details]
strace of nethack on 64 bit

strace of nethack on 64 bit as normal user
Comment 2 Andreas Vetter 2006-01-05 12:37:01 UTC
any progress?
Comment 3 Michal Marek 2006-02-14 13:36:35 UTC
The problem was that SuSEconfig expected the nethack.tty to be in 
/usr/lib/nethack (where it should be) and not in /usr/lib64/nethack. I fixed it
for next release (and for Factory).