Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32314 - daphne: ~/.dainput.ini not resolvable
Summary: daphne: ~/.dainput.ini not resolvable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-30 01:25 UTC by Hakan Tandogan
Modified: 2003-10-30 01:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hakan Tandogan 2003-10-30 01:25:18 UTC
The default ebuild replaces the path to the key configuration file (dainput.ini)
with ~/.dainput.ini . ~ being a shell construct, daphne can't resolve this name.
The sed construct in the ebuild should be replaced with a call to getenv("HOME")
and path concatenation.


Reproducible: Always
Steps to Reproduce:
1. make sure that ~/.dapinput.ini exists:
arcade@wombat arcade $ ls ~/.dapinput.ini
/home/arcade/.dapinput.ini

2. run daphne with strace
arcade@wombat arcade $ strace -eopen -oopen.log /usr/games/bin/daphne ......

3. Verify that ~/.dapinput.ini can't be opened
arcade@wombat arcade $ grep dapinput.ini open.log
...
open("~/.dapinput.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
...


Actual Results:  
Daphne can't read its configuration file, continuing work with the compiled-in
default key settings.

Expected Results:  
The key configuration should have been opened and read.

Gentoo Base System version 1.4.3.10p1
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22_pre2-gss)
=================================================================
System uname: 2.4.22_pre2-gss i686 AMD Duron(tm) Processor
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -fomit-leaf-frame-pointer -pipe -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/home/gentoo/distfiles"
FEATURES="sandbox autoaddcvs buildpkg -ccache digest userpriv"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.inode.at/
ftp://gentoo.inode.at/source/"
MAKEOPTS="-j2"
PKGDIR="/home/gentoo/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif gpm jpeg libg++ mad mikmod
motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib
gdbm berkdb slang readline arts svga java postgres X sdl tcpd pam libwww ssl
perl python esd imlib oggvorbis gnome gtk opengl mozilla apache2 curl directfb
gtk2 jikes mysql samba xml -kde -qt"
Comment 1 Hakan Tandogan 2003-10-30 01:33:32 UTC
Reason for marking this a major problem:
I have daphne in my keyboardless arcade box. Without the ability to dynamically
remap the key codes, I have to recompile my special version for my specific
button settings.
Comment 2 SpanKY gentoo-dev 2003-10-30 01:53:07 UTC
wow, i'm an idiot

should be fixed in -r1