<?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>83043</bug_id>
          
          <creation_ts>2005-02-23 01:45 0000</creation_ts>
          <short_desc>Emerge of stoned-bin fails (wrong source directory $S in ebuild)</short_desc>
          <delta_ts>2005-02-23 04:34:53 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>marco@websource.ch</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>marco@websource.ch</who>
            <bug_when>2005-02-23 01:45:06 0000</bug_when>
            <thetext>emerge stoned-bin fails with:

========================== SNIP ==========================================
&gt;&gt;&gt; Install stoned-bin-1.1.6 into /var/tmp/portage/stoned-bin-1.1.6/image/ category games-simulation
&gt;&gt;&gt; dobin: making stoned executable...
install: cannot stat `stoned&apos;: No such file or directory

!!! ERROR: games-simulation/stoned-bin-1.1.6 failed.
!!! Function src_install, Line 29, Exitcode 4
!!! dobin failed
========================== SNIP ==========================================

The problem is that the source directory $S for the ebuild is set to &apos;/var/tmp/portage/stoned-bin-1.1.6/work/stoned-bin-1.1.6&apos; but the binary is in &apos;/var/tmp/portage/stoned-bin-1.1.6/work/stoned-1.1.6-i386-linux&apos;.

I attached a patch that solves the problem for me.

Reproducible: Always
Steps to Reproduce:
1. emerge stoned-bin

Actual Results:  
See above.

Expected Results:  
See above.

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.4.26-gentoo-r7 i686)
=================================================================
System uname: 2.4.26-gentoo-r7 i686 AMD Athlon(tm) 
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 21 2005, 23:33:49)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.6.3, 1.4_p6, 1.8.5-r3, 1.9.4, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4, 1.4.3-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -march=athlon-xp -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=athlon-xp -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;http://mirror.switch.ch/mirror/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo
http://distfiles.gentoo.org http://ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.de.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 3dnow X a52 alsa apm arts avi berkdb bitmap-fonts cdda cddb cdparanoia
cdr crypt cups curl divx4linux dts dvd dvdread emboss encode esd f77 faad fam
ffmpeg flac font-server foomaticdb fortran freetype gdbm gif gimpprint gnome
gstreamer gtk gtk2 guile imagemagick imlib ipv6 jpeg kde libg++ libwww mad
matroska mikmod mmx motif mozilla mpeg ncurses nls ogg oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline samba sdl slang snmp spell sse ssl
stream svga tcpd tetex tiff truetype truetype-fonts type1-fonts vcd vorbis
wxwindows xml xml2 xmms xv xvid zlib&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>marco@websource.ch</who>
            <bug_when>2005-02-23 01:46:29 0000</bug_when>
            <thetext>Created an attachment (id=51929)
Patch that works for me
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2005-02-23 04:34:53 0000</bug_when>
            <thetext>Fixed in CVS... thanks for the bug report and the patch!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>51929</attachid>
            <date>2005-02-23 01:46 0000</date>
            <desc>Patch that works for me</desc>
            <filename>stoned-bin-1.1.6.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHN0b25lZC1iaW4tMS4xLjYuZWJ1aWxkLm9yaWcJMjAwNS0wMi0yMyAxMDo0NDowMS4wMDAw
MDAwMDAgKzAxMDAKKysrIHN0b25lZC1iaW4tMS4xLjYuZWJ1aWxkCTIwMDUtMDItMjMgMTA6NDM6
NDAuMDAwMDAwMDAwICswMTAwCkBAIC0yMSw3ICsyMSw3IEBACiAJc3lzLWxpYnMvemxpYgogCW1l
ZGlhLWxpYnMvbGlicG5nIgogCi1TPSIke1dPUktESVJ9LyR7UC8tYmlufSIKK1M9IiR7V09SS0RJ
Un0vJHtQLy1iaW59LWkzODYtbGludXgiCiAKIHNyY19pbnN0YWxsKCkgewogCWludG8gIiR7R0FN
RVNfUFJFRklYX09QVH0iCg==
</data>        

          </attachment>
    </bug>

</bugzilla>