<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>32314</bug_id>
          
          <creation_ts>2003-10-30 01:25 0000</creation_ts>
          <short_desc>daphne: ~/.dainput.ini not resolvable</short_desc>
          <delta_ts>2003-10-30 01:53:07 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>hakan@gurkensalat.com</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>hakan@gurkensalat.com</who>
            <bug_when>2003-10-30 01:25:18 0000</bug_when>
            <thetext>The default ebuild replaces the path to the key configuration file (dainput.ini)
with ~/.dainput.ini . ~ being a shell construct, daphne can&apos;t resolve this name.
The sed construct in the ebuild should be replaced with a call to getenv(&quot;HOME&quot;)
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&apos;t be opened
arcade@wombat arcade $ grep dapinput.ini open.log
...
open(&quot;~/.dapinput.ini&quot;, O_RDONLY) = -1 ENOENT (No such file or directory)
...


Actual Results:  
Daphne can&apos;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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon-xp -O3 -fomit-leaf-frame-pointer -pipe -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
DISTDIR=&quot;/home/gentoo/distfiles&quot;
FEATURES=&quot;sandbox autoaddcvs buildpkg -ccache digest userpriv&quot;
GENTOO_MIRRORS=&quot;http://ftp.easynet.nl/mirror/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.inode.at/
ftp://gentoo.inode.at/source/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/home/gentoo/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hakan@gurkensalat.com</who>
            <bug_when>2003-10-30 01:33:32 0000</bug_when>
            <thetext>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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-10-30 01:53:07 0000</bug_when>
            <thetext>wow, i&apos;m an idiot

should be fixed in -r1</thetext>
          </long_desc>
      
    </bug>

</bugzilla>