Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60138 - zsnes-1.37_pre20040508 fails to compile because it tries to move itself to a subdirectory of itself and it tries to mv files to the same location they just came from
Summary: zsnes-1.37_pre20040508 fails to compile because it tries to move itself to a ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Games
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 07:30 UTC by Kyle Simpson
Modified: 2004-08-14 20:08 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 Kyle Simpson 2004-08-12 07:30:46 UTC
mv: cannot move `zsnes\\Macros' to a subdirectory of itself, `zsnes\\Macros/zsnes\\Macros'
mv: `zsnes\\authors.txt' and `zsnes\\authors.txt' are the same file
mv: `zsnes\\cvs2cl.pl' and `zsnes\\cvs2cl.pl' are the same file
mv: cannot move `zsnes\\dos' to a subdirectory of itself, `zsnes\\dos/zsnes\\dos'
mv: `zsnes\\install.txt' and `zsnes\\install.txt' are the same file
mv: `zsnes\\license.txt' and `zsnes\\license.txt' are the same file
mv: cannot move `zsnes\\linux' to a subdirectory of itself, `zsnes\\linux/zsnes\\linux'
mv: `zsnes\\opengl.txt' and `zsnes\\opengl.txt' are the same file
mv: cannot move `zsnes\\src' to a subdirectory of itself, `zsnes\\src/zsnes\\src'
mv: `zsnes\\srcinfo.txt' and `zsnes\\srcinfo.txt' are the same file
mv: `zsnes\\support.txt' and `zsnes\\support.txt' are the same file
mv: `zsnes\\whatsnew.txt' and `zsnes\\whatsnew.txt' are the same file
mv: cannot move `zsnes\\win' to a subdirectory of itself, `zsnes\\win/zsnes\\win'
/usr/portage/games-emulation/zsnes/zsnes-1.37_pre20040508.ebuild: line 45: cd: src: No such file or directory
aclocal-1.8: `configure.ac' or `configure.in' is required

!!! ERROR: games-emulation/zsnes-1.37_pre20040508 failed.
!!! Function src_unpack, Line 46, Exitcode 1
!!! aclocal failed 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
installed the most current version

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.4.20040619-r1,
2.6.7-ck5)
=================================================================
System uname: 2.6.7-ck5 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.5.2
distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=i586 -fomit-frame-pointer -pipe -funroll-loops -m3dnow -mmmx
-ffast-math"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=i586 -fomit-frame-pointer -pipe -funroll-loops -m3dnow
-mmmxi -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb crypt cups directfb divx4linux encode
fbcon foomaticdb gdbm gif gpm gtk2 icq imlib java jpeg kde libg++ libwww mad
mikmod mmx motif mozilla mpeg msn mysql ncurses nls oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd
truetype usb x86 xml2 xmms xv xvid zlib"
Comment 1 Kyle Simpson 2004-08-12 10:21:43 UTC
had to munge some of the ebuild to get it to work properly

below are the functions that i used to make zsnes-1.37_pre20040508 install

src_unpack() {
        unpack ${A}
#       for f in * ; do
#               mv ${f} ${f/zsnes\\\\}
#       done
        cd zsnes\\src
        aclocal || die "aclocal failed"
        env WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
}
src_compile() {
        use amd64 && multilib_check

        cd zsnes\\src
        egamesconf \
                $(use_with opengl) \
                || die
        emake || die "emake failed"
}

src_install() {
        dogamesbin zsnes\\src/zsnes || die "dogamesbin failed"
        newman src/linux/zsnes.1 zsnes.6
        dodoc *.txt linux/*
        prepgamesdirs
}
Comment 2 SpanKY gentoo-dev 2004-08-14 20:08:19 UTC
hmm mr bones and i tracked this down a day or two ago but neither of us committed the fix ;)

it's a bash problem ... bash 2 was probably buggy with replacement of \
bash-2 needs \\\\
bash-3 needs \\

added a work around to the ebuild