Bug 83043 - Emerge of stoned-bin fails (wrong source directory $S in ebuild)
Bug#: 83043 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: marco@websource.ch
Component: Games
URL: 
Summary: Emerge of stoned-bin fails (wrong source directory $S in ebuild)
Keywords:  
Status Whiteboard: 
Opened: 2005-02-23 01:45 0000
Description:   Opened: 2005-02-23 01:45 0000
emerge stoned-bin fails with:

========================== SNIP ==========================================
>>> Install stoned-bin-1.1.6 into /var/tmp/portage/stoned-bin-1.1.6/image/ category games-simulation
>>> dobin: making stoned executable...
install: cannot stat `stoned': 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 '/var/tmp/portage/stoned-bin-1.1.6/work/stoned-bin-1.1.6' but the binary is in '/var/tmp/portage/stoned-bin-1.1.6/work/stoned-1.1.6-i386-linux'.

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="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="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"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="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"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

------- Comment #1 From Marco Steinacher 2005-02-23 01:46:29 0000 -------
Created an attachment (id=51929) [details]
Patch that works for me

------- Comment #2 From Chris Gianelloni (RETIRED) 2005-02-23 04:34:53 0000 -------
Fixed in CVS... thanks for the bug report and the patch!