Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 19702

Summary: Nethack 3.4.1 fails to load contents of .nethackrc in user's home directory
Product: Gentoo Linux Reporter: Robert Poole <lionlad>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robert Poole 2003-04-20 21:37:38 UTC
I have a fresh install of Gentoo 1.4 RC4 on an Athlon system.  I create a new user and 
add him to the games group.  I emerge nethack as root and run nethack as the test user 
in the games group.  Invariably, Nethack always gives an error message at startup that it 
can't load /home/testuser/.nethackrc even though I created the file and even made the 
.nethackrc file world readable!

Reproducible: Always
Steps to Reproduce:
1. emerge nethack
2. create a test user (e.g., testuser) and assign them to the games group
3. copy /usr/share/games/nethack/dot.nethackrc to /home/testuser/.nethackrc
4. run nethack
5. Nethack complains that it can't open /home/testuser/.nethackrc

Actual Results:  
An error message is printed to the console as stated above.

Expected Results:  
The .nethackrc file should be loaded and its options should become effective.

To keep from merging all the X and KDE/Qt stuff, I specified USE="-X -qt" prior to 
emerging nethack.

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/
kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm gpm libg++ motif nls gdbm berkdb slang readline tcpd pam 3dnow 
acpi arts avi cdr crypt cups curl dga directfb doc dvd encode freetds gif gphoto2 imlib 
java jpeg lcms libwww mikmod mmx mozilla mpeg ncurses oggvorbis opengl pdflib perl 
plotutils png python qt quicktime scanner sdl slp spell ssl svga tiff truetype usb wmf X 
xinerama xml2 xmms xv gtk kde -gnome alsa zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 SpanKY gentoo-dev 2003-06-22 19:53:38 UTC
ok, i removed the setuid bit so it should work now 
 
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-games/nethack/nethack-3.4.1.ebuild.diff?r1=1.6&r2=1.7 
Comment 2 SpanKY gentoo-dev 2003-06-22 19:55:15 UTC
fixed now ...