Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131198 - games-emulation/zsnes-1.51 version bump
Summary: games-emulation/zsnes-1.51 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 159797 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-25 03:25 UTC by Robert Broglia
Modified: 2007-01-29 17:03 UTC (History)
9 users (show)

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


Attachments
zsnes-1.43_pre20060329.ebuild (zsnes-1.43_pre20060329.ebuild,1.79 KB, text/plain)
2006-04-25 03:26 UTC, Robert Broglia
Details
zsnes-1.42-r1.ebuild (zsnes-1.42-r1.ebuild,2.13 KB, text/plain)
2006-04-25 03:27 UTC, Robert Broglia
Details
1.43_pre20060329-configure.patch (1.43_pre20060329-configure.patch,2.02 KB, patch)
2006-04-25 03:27 UTC, Robert Broglia
Details | Diff
1.42-configure.patch (1.42-configure.patch,2.02 KB, patch)
2006-04-25 03:27 UTC, Robert Broglia
Details | Diff
tagWithNoStackExec.sh (tagWithNoStackExec.sh,164 bytes, text/plain)
2006-04-25 03:28 UTC, Robert Broglia
Details
1.43_pre20060329-psrMakeRule.patch (1.43_pre20060329-psrMakeRule.patch,1.78 KB, patch)
2006-04-28 22:04 UTC, Robert Broglia
Details | Diff
zsnes-1.43_pre20060329.ebuild (zsnes-1.43_pre20060329.ebuild,1.84 KB, text/plain)
2006-04-28 22:04 UTC, Robert Broglia
Details
zsnes-1.43_pre20060514.ebuild (zsnes-1.43_pre20060514.ebuild,1.90 KB, text/plain)
2006-05-22 02:51 UTC, Robert Broglia
Details
zsnes-1.50.ebuild (zsnes-1.50.ebuild,1.75 KB, text/plain)
2006-12-24 20:27 UTC, Robert Broglia
Details
1.50-configure.patch (1.50-configure.patch,2.71 KB, patch)
2006-12-24 20:28 UTC, Robert Broglia
Details | Diff
ZSNES 1.50 ebuild (zsnes-1.50.ebuild,1.70 KB, text/plain)
2006-12-29 03:29 UTC, Kiyoshi Aman
Details
ZSNES 1.50 configure patch (1.50-configure.patch,1.19 KB, patch)
2006-12-29 03:30 UTC, Kiyoshi Aman
Details | Diff
Updated configure patch (1.50-configure.patch,1.16 KB, patch)
2006-12-31 06:36 UTC, Kiyoshi Aman
Details | Diff
"New" Ebuild for zsnes 1.50 (zsnes-1.50.ebuild,1.76 KB, application/octet-stream)
2007-01-05 16:58 UTC, Daniel Chesters "aka Oni"
Details
ZSNES 1.50 ebuild (zsnes-1.50.ebuild,1.74 KB, text/plain)
2007-01-06 21:56 UTC, Kiyoshi Aman
Details
1.50-confgure.patch (1.50-configure.patch,1.16 KB, text/plain)
2007-01-16 02:50 UTC, Kiyoshi Aman
Details
ZSNES 1.50 ebuild (zsnes-1.50.ebuild,1.78 KB, text/plain)
2007-01-20 21:15 UTC, Kiyoshi Aman
Details
ZSNES 1.51 ebuild (zsnes-1.51.ebuild,1.90 KB, text/plain)
2007-01-26 17:41 UTC, Kiyoshi Aman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Broglia 2006-04-25 03:25:11 UTC
Hello there. I've made a new ebuild with the latest WIP version of Zsnes since the version in portage is getting quite old and a number of bugs are fixed the latest builds. The ebuild itself is based off the current one in portage with some new additions like being able to compile a debuggable Zsnes using the "debug" USE flag, and compile an even more optimized Zsnes by tweaking the options passed to nasm with the "release" USE flag. These features were already a part of the regular Zsnes configuration but were not exposed with portage's current ebuild.

Here's a summary of the files attached and their purpose:
zsnes-1.43_pre20060329.ebuild (new file)
- ebuild of the latest WIP of Zsnes as previously described

1.43_pre20060329-configure.patch (new file)
- patch needed to configure Zsnes properly for Gentoo using my updated ebuild

zsnes-1.42-r1.ebuild (new file)
- updated ebuild for 1.42 (the version in portage)
- backported the "debug" & "release" USE flags to work with it

1.42-configure.patch (updated file)
- updated configure patch for 1.42 to work with my updated ebuild
- can replace the current one in portage without breaking the current ebuild of Zsnes

tagWithNoStackExec.sh (new file)
- script used in both ebuilds to fix executable stack problems in Zsnes
- same result as using zsnes-1.42-execStack.patch in portage, but is general so it can be used on any version of Zsnes
- saves space in the portage tree since zsnes-1.42-execStack.patch is no longer needed when using my ebuilds, and no future patches will be needed every time a new Zsnes is released

I've tested these ebuilds on my AMD64 system with no problems so far. That's all for now.

Robert
Comment 1 Robert Broglia 2006-04-25 03:26:49 UTC
Created attachment 85437 [details]
zsnes-1.43_pre20060329.ebuild
Comment 2 Robert Broglia 2006-04-25 03:27:13 UTC
Created attachment 85438 [details]
zsnes-1.42-r1.ebuild
Comment 3 Robert Broglia 2006-04-25 03:27:38 UTC
Created attachment 85439 [details, diff]
1.43_pre20060329-configure.patch
Comment 4 Robert Broglia 2006-04-25 03:27:59 UTC
Created attachment 85440 [details, diff]
1.42-configure.patch
Comment 5 Robert Broglia 2006-04-25 03:28:35 UTC
Created attachment 85441 [details]
tagWithNoStackExec.sh
Comment 6 Matt Whitlock 2006-04-28 15:03:44 UTC
>>> Emerging (1 of 1) games-emulation/zsnes-1.43_pre20060329 to /
>>> checking ebuild checksums
>>> checking auxfile checksums
>>> checking miscfile checksums
>>> checking distfiles checksums
 * Adding group 'games' to your system ...
 *  - Groupid: 35
 * Adding user 'games' to your system ...
 *  - Userid: 36
 *  - Shell: /bin/bash
 *  - Home: /usr/games
 *  - Groups: games
 *  - Creating /usr/games in /
>>> Unpacking source...
>>> Unpacking ZSNESS_0329.tar.bz2 to /var/tmp/portage/zsnes-1.43_pre20060329/work
tar: Read 1024 bytes from -
tar: A lone zero block at 13242
 * Applying 1.43_pre20060329-configure.patch ...                                                                       [ ok ]
 * Modifying all .asm files to have non-executable stacks
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/zsnes-1.43_pre20060329/work ...
 * econf: updating src/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating src/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr/games --libdir=/usr/games/lib --datadir=/usr/share/games --sysconfdir=/etc/games --localstatedir=/var/games --enable-libpng --enable-opengl --disable-debug --disable-release --build=i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking for i686-pc-linux-gnu-nasm... no
checking for nasm... nasm
checking for a BSD-compatible install... /bin/install -c
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.1.0... yes
checking for libpng - version >= 1.2.0... yes
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for X... libraries , headers
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking if you want gdb friendly executable... no
checking if you want crazy optimizations... no
checking for cpu info... found
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether sys/types.h defines makedev... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h


ZSNES vpre1.43

SDL support                   Version 1.2.9
NASM support                  NASM version 0.98.39 compiled on Jan  9 2006
ZLib support                  Version 1.2.3
PNG support                   Yes, version 1.2.8
OpenGL support                Yes

The binary will be installed in /usr/games/bin

Configure complete, now type 'make' and pray.

i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o parsegen parsegen.cpp
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o cfgload.o -c cfgload.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o endmem.o endmem.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o init.o init.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o initc.o -c initc.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o patch.o -c patch.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o ui.o ui.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o vcache.o vcache.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o version.o -c version.c
distcc[15939] (dcc_writex) ERROR: failed to write: No route to host
distcc[15939] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[15939] Warning: failed to distribute /var/tmp/ccache/cfgload.tmp.matt-notebook.15926.i to MobileMoon, running locally instead
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o zstate.o -c zstate.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o debug.o -c debug.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o zloader.o -c zloader.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o uic.o -c uic.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sfxproc.o chips/sfxproc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2.o chips/fxemu2.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp1proc.o chips/dsp1proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2b.o chips/fxemu2b.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2c.o chips/fxemu2c.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxtable.o chips/fxtable.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sa1proc.o chips/sa1proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sa1regs.o chips/sa1regs.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o chips/dsp1emu.o -c chips/dsp1emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/st10proc.o chips/st10proc.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o chips/seta10.o -c chips/seta10.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp2proc.o chips/dsp2proc.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o chips/sdd1emu.o -c chips/sdd1emu.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o chips/c4emu.o -c chips/c4emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp4proc.o chips/dsp4proc.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o chips/dsp4emu.o -c chips/dsp4emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp3proc.o chips/dsp3proc.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o chips/dsp3emu.o -c chips/dsp3emu.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o chips/obc1emu.o -c chips/obc1emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/obc1proc.o chips/obc1proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/dma.o cpu/dma.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/dsp.o cpu/dsp.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/dspproc.o cpu/dspproc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/execute.o cpu/execute.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o cpu/executec.o -c cpu/executec.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/irq.o cpu/irq.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/memory.o cpu/memory.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o cpu/memtable.o -c cpu/memtable.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/spc700.o cpu/spc700.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/stable.o cpu/stable.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/table.o cpu/table.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/tableb.o cpu/tableb.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o cpu/tablec.o cpu/tablec.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o linux/copyvwin.o linux/copyvwin.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o linux/sdlintrf.o linux/sdlintrf.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o linux/sdllink.o -c linux/sdllink.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o linux/gl_draw.o -c linux/gl_draw.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o linux/sw_draw.o -c linux/sw_draw.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o linux/zfilew.o -c linux/zfilew.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o linux/safelib.o -c linux/safelib.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o dos/debug.o dos/debug.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o dos/joy.o dos/joy.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o dos/vesa2.o dos/vesa2.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o gui/gui.o gui/gui.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o gui/menu.o gui/menu.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/makev16b.o video/makev16b.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/makev16t.o video/makev16t.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/makevid.o video/makevid.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/mode716.o video/mode716.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/mode716b.o video/mode716b.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/mode716d.o video/mode716d.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/mode716e.o video/mode716e.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/mode716t.o video/mode716t.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/mode7.o video/mode7.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/mode7ext.o video/mode7ext.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/mv16tms.o video/mv16tms.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/newg162.o video/newg162.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/newgfx16.o video/newgfx16.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/newgfx2.o video/newgfx2.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/newgfx.o video/newgfx.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/m716text.o video/m716text.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/2xsaiw.o video/2xsaiw.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/procvid.o video/procvid.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o video/procvidc.o -c video/procvidc.c
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/sw_draw.o video/sw_draw.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/hq2x16.o video/hq2x16.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/hq2x32.o video/hq2x32.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/hq3x16.o video/hq3x16.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/hq3x32.o video/hq3x32.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/hq4x16.o video/hq4x16.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1 -o video/hq4x32.o video/hq4x32.asm
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o video/ntsc.o -c video/ntsc.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o zip/unzip.o -c zip/unzip.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o zip/zpng.o -c zip/zpng.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o effects/burn.o -c effects/burn.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o effects/water.o -c effects/water.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o effects/smoke.o -c effects/smoke.c
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/7zlzma.o -c jma/7zlzma.cpp
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/crc32.o -c jma/crc32.cpp
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/iiostrm.o -c jma/iiostrm.cpp
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/inbyte.o -c jma/inbyte.cpp
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/jma.o -c jma/jma.cpp
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/lzma.o -c jma/lzma.cpp
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/lzmadec.o -c jma/lzmadec.cpp
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/winout.o -c jma/winout.cpp
i686-pc-linux-gnu-g++ -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -fno-rtti -o jma/zsnesjma.o -c jma/zsnesjma.cpp
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o mmlib/mm.o -c mmlib/mm.c
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -o mmlib/linux.o -c mmlib/linux.c
./parsegen -D__UNIXSDL__ -cheader psrhead/cfg.h -fname cfg temppsr.c cfg.psr
./parsegen -D__UNIXSDL__ -cheader psrhead/md.h -fname md temppsr.c md.psr
sh: ./eatio.exe: Text file busy
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 14:14. Could not get array size.
i686-pc-linux-gnu-gcc -O2 -march=pentium-m -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_REENTRANT  -D__OPENGL__ -O1 -o cfg.o -c temppsr.c
distcc[16541] ERROR: compile /var/tmp/ccache/temppsr.tmp.matt-notebook.16531.i on localhost failed

[[ ... LOTS OF ERRORS ... ]]

make: *** [md.o] Error 1

!!! ERROR: games-emulation/zsnes-1.43_pre20060329 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  zsnes-1.43_pre20060329.ebuild, line 56:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 7 Andrew Fuller 2006-04-28 15:33:27 UTC
(In reply to comment #6)
> >>> Emerging (1 of 1) games-emulation/zsnes-1.43_pre20060329 to /
...
> ./parsegen -D__UNIXSDL__ -cheader psrhead/md.h -fname md temppsr.c md.psr
> sh: ./eatio.exe: Text file busy

It doesn't seem to like parallel compiling.  Try this:
# MAKEOPTS="-j1" emerge zsnes

worked for me.

Comment 8 Robert Broglia 2006-04-28 22:02:51 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > >>> Emerging (1 of 1) games-emulation/zsnes-1.43_pre20060329 to /
> ...
> > ./parsegen -D__UNIXSDL__ -cheader psrhead/md.h -fname md temppsr.c md.psr
> > sh: ./eatio.exe: Text file busy
> 
> It doesn't seem to like parallel compiling.  Try this:
> # MAKEOPTS="-j1" emerge zsnes
> 
> worked for me.
> 

I never noticed this problem when building with -j2, but sure enough I started getting random errors like this when I tried -j4 or -j5. Calling parsegen with the same temp file in parallel seems to be the cause. I'm attaching a Makefile patch along with an updated ebuild that changes the rule in the makefile to create a different temp file for each instance of parsegen. That should fix things so that you can use any -j option.
Comment 9 Robert Broglia 2006-04-28 22:04:22 UTC
Created attachment 85725 [details, diff]
1.43_pre20060329-psrMakeRule.patch
Comment 10 Robert Broglia 2006-04-28 22:04:54 UTC
Created attachment 85726 [details]
zsnes-1.43_pre20060329.ebuild
Comment 11 Roc Vallès 2006-05-17 11:00:44 UTC
Portage still has a 1.42 which doesn't work with latest glibc, see bug 125861.

What's stopping this being merged?
Comment 12 Robert Broglia 2006-05-22 02:50:11 UTC
Here's a new ebuild for the May 14th 2006 WIP. It reuses the old patches from 20060329 which all still apply ok.
Comment 13 Robert Broglia 2006-05-22 02:51:19 UTC
Created attachment 87241 [details]
zsnes-1.43_pre20060514.ebuild
Comment 14 Matteo Settenvini 2006-06-03 05:22:44 UTC
Build fails for me if I don't force MAKEOPTS="-j1" instead of "-j2".
It seems that the Makefile doesn't list all the dependencies of some of the targets it has to build. 

Just put:
emake -j1 || die "emake failed"
in the ebuild (see ``man 5 ebuild''). It should fix it.

Otherwise the ebuild is perfectly fine for me and could go into portage. The new OpenGL support and new ZSnes features are really awesome!
Thanks Robert :-)
Comment 15 SpanKY gentoo-dev 2006-06-07 11:46:02 UTC
that doesnt fix it, that ignores the problem
Comment 16 john 2006-07-23 15:52:30 UTC
I managed to emerge it but when i run zsnes i get: Illegal instruction.
Are you sure your ebuild works with 64bit kernel?

Comment 17 khaelin 2006-08-09 15:30:28 UTC
Do not compile:

./parsegen -D__UNIXSDL__ -cheader psrhead/cfg.h -fname cfg temppsr_cfg.c cfg.psr
./parsegen -D__UNIXSDL__ -cheader psrhead/md.h -fname md temppsr_md.c md.psr
sh: ./eatio.exe: Aucun fichier ou r
Comment 18 khaelin 2006-08-09 15:30:28 UTC
Do not compile:

./parsegen -D__UNIXSDL__ -cheader psrhead/cfg.h -fname cfg temppsr_cfg.c cfg.psr
./parsegen -D__UNIXSDL__ -cheader psrhead/md.h -fname md temppsr_md.c md.psr
sh: ./eatio.exe: Aucun fichier ou répertoire de ce type
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 3:26. Could not get array size.
sh: ./eatio.exe: Aucun fichier ou répertoire de ce type
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 5:14. Could not get array size.
sh: ./eatio.exe: Fichier texte occupé
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 315:22. Could not get array size.
sh: ./eatio.exe: Aucun fichier ou répertoire de ce type
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 10:13. Could not get array size.
sh: ./eatio.exe: Permission non accordée
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 319:21. Could not get array size.
sh: ./eatio.exe: Aucun fichier ou répertoire de ce type
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 320:24. Could not get array size.
sh: ./eatio.exe: Fichier texte occupé
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 15:14. Could not get array size.
sh: ./eatio.exe: Aucun fichier ou répertoire de ce type
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 322x86_64-pc-linux-gnu-gcc: eatio.c: No such file or directory
:22. Could not get array size.
x86_64-pc-linux-gnu-gcc: no input files
sh: ./eatio.exe: Aucun fichier ou répertoire de ce type
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 16:14. Could not get array size.
sh: ./eatio.exe: Aucun fichier ou répertoire de ce type
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 323:23. Could not get array size.
x86_64-pc-linux-gnu-gcc: eatio.c: No such file or directory
x86_64-pc-linux-gnu-gcc: no input files
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -msse3 -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -O1 -o cfg.o -c temppsr_cfg.c
sh: ./eatio.exe: Aucun fichier ou répertoire de ce type
Error: Can not get accurate value information (eatio.res).
Error: parse problem occured at 26:15. Could not get array size.
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -msse3 -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -O1 -o md.o -c temppsr_md.c
rm -f temppsr_md.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -msse3 -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -o zmovie.o -c zmovie.c
x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -msse3 -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -o gui/guifuncs.o -c gui/guifuncs.c
zmovie.c: In function 'pick_var':
zmovie.c:1894: error: 'md_raw' undeclared (first use in this function)
zmovie.c:1894: error: (Each undeclared identifier is reported only once
zmovie.c:1894: error: for each function it appears in.)
zmovie.c:1900: error: 'md_compressed_audio' undeclared (first use in this function)
zmovie.c:1905: error: 'md_ntsc' undeclared (first use in this function)
zmovie.c:1912: error: 'md_ffv1' undeclared (first use in this function)
zmovie.c:1914: error: 'md_xvid' undeclared (first use in this function)
zmovie.c: In function 'raw_video_close':
zmovie.c:2017: error: 'md_compressed_audio' undeclared (first use in this function)
zmovie.c:2021: error: 'md_merge' undeclared (first use in this function)
make: *** [zmovie.o] Error 1
make: *** Waiting for unfinished jobs....
rm -f temppsr_cfg.c

!!! ERROR: games-emulation/zsnes-1.43_pre20060514 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  zsnes-1.43_pre20060514.ebuild, line 60:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.



emerge --info:

Portage 2.1.1_pre4-r4 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.4
Last Sync: Tue, 08 Aug 2006 04:50:01 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/  http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LC_ALL="fr_FR.UTF-8"
LINGUAS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.10/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts cli crypt cups dlloader doc dri eds elibc_glibc emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux lzw lzw-tiff mp3 mpeg ncurses nptl nptlonly opengl pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session smp spell spl sse3 ssl tcpd tiff truetype-fonts type1-fonts unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 19 cruzki 2006-12-22 15:52:53 UTC
there are a new version. Any ebuild's?

PS: what they mind's whith this sentence "Configure script fix for Gentoo users, and debug builds now use -O0, because we can. [grinvader]"
Comment 20 Robert Broglia 2006-12-24 20:27:03 UTC
Merry Christmas :)

Here's an ebuild for version 1.50 and the needed configure patch.
New stuff for this ebuild:
- The source is now grabbed from sourceforge mirrors.
- New configure patch for 1.50 to respect your flag settings in make.conf.
- all asm files in 1.50 are already marked with non-executable stacks, no need to patch them anymore.
- MAKEOPTS="-j1" is set for you during the build since I haven't had time to find all the parallel build issues yet. They seem to stem from the program "parsegen" included in the source which uses the same temp files across multiple instances and causes the collisions.

WARNING TO AMD64 USERS! version 1.50 now needs a newer zlib function called gzdirect which doesn't seem to be compiled into emul-linux-x86-baselibs's zlib. As a result, you'll get a linker error about it at the linking stage. You'll have to either wait for a future emul-linux-x86-baselibs release with a better zlib or you might be able to compile your own 32-bit zlib and replace the one from emul-linux-x86-baselibs.
Comment 21 Robert Broglia 2006-12-24 20:27:45 UTC
Created attachment 104699 [details]
zsnes-1.50.ebuild
Comment 22 Robert Broglia 2006-12-24 20:28:16 UTC
Created attachment 104700 [details, diff]
1.50-configure.patch
Comment 23 Peter 2006-12-26 14:04:15 UTC
When using the new 1.50 ebuild. I just get >>> Emerging (1 of 1) games-emulation/zsnes-1.50 to /
 * zsnes150src.tar.bz2 MD5 ;-) ...                                        [ ok ]
 * zsnes150src.tar.bz2 RMD160 ;-) ...                                     [ ok ]
 * zsnes150src.tar.bz2 SHA1 ;-) ...                                       [ ok ]
 * zsnes150src.tar.bz2 SHA256 ;-) ...                                     [ ok ]
 * zsnes150src.tar.bz2 size ;-) ...                                       [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking zsnes150src.tar.bz2 ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking zsnes150src.tar.bz2 to /var/tmp/portage/zsnes-1.50/work
 * Applying 1.50-configure.patch ...

 * Failed Patch: 1.50-configure.patch !
 *  ( /usr/portage/games-emulation/zsnes/files/1.50-configure.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/zsnes-1.50/temp/1.50-configure.patch-8435.out


!!! ERROR: games-emulation/zsnes-1.50 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  zsnes-1.50.ebuild, line 47:   Called epatch '/usr/portage/games-emulation/zsnes/files/1.50-configure.patch'
  eutils.eclass, line 341:   Called die

The contents of /var/tmp/portage/zsnes-1.50/temp/1.50-configure.patch-8435.out says:

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/games-emulation/zsnes/files/1.50-configure.patch

================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- configure.in.orig  2006-12-21 20:59:54.000000000 -0500
|+++ configure.in       2006-12-24 19:44:16.000000000 -0500
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 10:       dnl - Where are our compilers, and who are we compiling for?

Comment 24 cruzki 2006-12-26 14:56:01 UTC
you need to put 1.50-configure.patch in games-emulation/zsnes/files/ , redigest and install ;)
Comment 25 Peter 2006-12-26 15:25:49 UTC
Well it is there. A ls -lah shows:

/usr/portage/games-emulation/zsnes/files $ ls -lah
total 12K
drwxr-xr-x 2 portage portage  128 Dec 26 15:24 .
drwxr-xr-x 3 portage portage  200 Dec 26 15:24 ..
-rw-r--r-- 1 root    root    4.7K Dec 25 22:18 1.50-configure.patch
-rw-r--r-- 1 root    root     241 Dec 26 15:24 digest-zsnes-1.50


I have tried re-digesting but I get the same fail as above.
Comment 26 Robert Broglia 2006-12-26 20:48:22 UTC
(In reply to comment #24)
> Well it is there. A ls -lah shows:
> 
> /usr/portage/games-emulation/zsnes/files $ ls -lah
> total 12K
> drwxr-xr-x 2 portage portage  128 Dec 26 15:24 .
> drwxr-xr-x 3 portage portage  200 Dec 26 15:24 ..
> -rw-r--r-- 1 root    root    4.7K Dec 25 22:18 1.50-configure.patch
> -rw-r--r-- 1 root    root     241 Dec 26 15:24 digest-zsnes-1.50
> 
> 
> I have tried re-digesting but I get the same fail as above.
> 

Could you list the directory structure inside your zsnes150src.tar.bz2 ?
Comment 27 Peter 2006-12-27 13:22:59 UTC
(In reply to comment #25)
> (In reply to comment #24)
> > Well it is there. A ls -lah shows:
> > 
> > /usr/portage/games-emulation/zsnes/files $ ls -lah
> > total 12K
> > drwxr-xr-x 2 portage portage  128 Dec 26 15:24 .
> > drwxr-xr-x 3 portage portage  200 Dec 26 15:24 ..
> > -rw-r--r-- 1 root    root    4.7K Dec 25 22:18 1.50-configure.patch
> > -rw-r--r-- 1 root    root     241 Dec 26 15:24 digest-zsnes-1.50
> > 
> > 
> > I have tried re-digesting but I get the same fail as above.
> > 
> 
> Could you list the directory structure inside your zsnes150src.tar.bz2 ?
> 
Well unless there is a cmd that I don't know here is 2 ls's within the directory.

 distfiles # cd zsnes_1_50/
ChillerMobile zsnes_1_50 # ls
docs  src
ChillerMobile zsnes_1_50 # cd src
ChillerMobile src # ls
Makefile.check  argv.h      cfg.psr       config.sub    debugasm.asm  endmem.asm  icons       jma          md.h    numconv.h     tools       video      zloader.h  zpath.h
Makefile.in     asm_call.h  chips         configure     debugger.c    gblhdr.h    init.asm    linux        md.psr  objfix.c      ui.c        win        zmovie.c   zstate.c
SConstruct      autogen.sh  config.guess  configure.in  dos           gblvars.h   initc.c     macros.mac   mmlib   parsegen.cpp  vcache.asm  zip        zmovie.h   ztime.asm
acinclude.m4    cfg.h       config.h.in   cpu           effects       gui         install-sh  makefile.ms  net     patch.c       version.c   zloader.c  zpath.c    ztimec.c
ChillerMobile src # 


Comment 28 Kiyoshi Aman 2006-12-29 03:29:06 UTC
Hi,

--enable-release and --enable-debug are mutually exclusive. Additionally, 1.50 has an optional SNES debugger [that depends on (n)curses.]

Additionally, there is a .desktop entry in src/linux/; please make an attempt to use that. Accordingly, I will attach two files; one is an updated ebuild which addresses several issues with the one currently up, the other is a patch which is more ideal than simply patching out archopt & target detection.
Comment 29 Kiyoshi Aman 2006-12-29 03:29:53 UTC
Created attachment 104920 [details]
ZSNES 1.50 ebuild
Comment 30 Kiyoshi Aman 2006-12-29 03:30:34 UTC
Created attachment 104921 [details, diff]
ZSNES 1.50 configure patch
Comment 31 Peter 2006-12-29 14:35:04 UTC
(In reply to comment #29)
> Created an attachment (id=104921) [edit]
> ZSNES 1.50 configure patch
> 
Using these updated ebuilds here is what I get:


 * Applying 1.50-configure.patch ...

 * Failed Patch: 1.50-configure.patch !
 *  ( /usr/portage/games-emulation/zsnes/files/1.50-configure.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/zsnes-1.50/temp/1.50-configure.patch-30291.out


!!! ERROR: games-emulation/zsnes-1.50 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  zsnes-1.50.ebuild, line 39:   Called epatch '/usr/portage/games-emulation/zsnes/files/1.50-configure.patch'
  eutils.eclass, line 341:   Called die


and the output of:
/var/tmp/portage/zsnes-1.50/temp/1.50-configure.patch-30291.out:

***** 1.50-configure.patch *****

================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/games-emulation/zsnes/files/1.50-configure.patch

================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurd zsnes-1.50.old/src/configure.in zsnes-1.50.new/src/configure.in
|--- zsnes-1.50.old/src/configure.in    2006-12-21 19:59:54.000000000 -0600
|+++ zsnes-1.50.new/src/configure.in    2006-12-29 05:10:26.000000000 -0600
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 19:          +      CFLAGS="$CFLAGS -march=$force_arch"

================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/games-emulation/zsnes/files/1.50-configure.patch

================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurd zsnes-1.50.old/src/configure.in zsnes-1.50.new/src/configure.in
|--- zsnes-1.50.old/src/configure.in    2006-12-21 19:59:54.000000000 -0600
|+++ zsnes-1.50.new/src/configure.in    2006-12-29 05:10:26.000000000 -0600
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 19:          +      CFLAGS="$CFLAGS -march=$force_arch"

================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/games-emulation/zsnes/files/1.50-configure.patch

================================
patching file configure.in
patch: **** malformed patch at line 19:          +      CFLAGS="$CFLAGS -march=$force_arch"

================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/games-emulation/zsnes/files/1.50-configure.patch

================================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurd zsnes-1.50.old/src/configure.in zsnes-1.50.new/src/configure.in
|--- zsnes-1.50.old/src/configure.in    2006-12-21 19:59:54.000000000 -0600
|+++ zsnes-1.50.new/src/configure.in    2006-12-29 05:10:26.000000000 -0600
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 19:          +      CFLAGS="$CFLAGS -march=$force_arch"

================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/games-emulation/zsnes/files/1.50-configure.patch

================================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurd zsnes-1.50.old/src/configure.in zsnes-1.50.new/src/configure.in
|--- zsnes-1.50.old/src/configure.in    2006-12-21 19:59:54.000000000 -0600
|+++ zsnes-1.50.new/src/configure.in    2006-12-29 05:10:26.000000000 -0600
--------------------------
No file to patch.  Skipping patch.
patch: **** malformed patch at line 19:          +      CFLAGS="$CFLAGS -march=$force_arch"
Comment 32 Kiyoshi Aman 2006-12-31 06:36:29 UTC
Created attachment 105037 [details, diff]
Updated configure patch

Let's see if epatch is smart enough to handle this one, since it couldn't handle the other.
Comment 33 Jakub Moc (RETIRED) gentoo-dev 2007-01-03 01:15:36 UTC
*** Bug 159797 has been marked as a duplicate of this bug. ***
Comment 34 Daniel Chesters "aka Oni" 2007-01-05 16:58:49 UTC
Created attachment 105584 [details]
"New" Ebuild for zsnes 1.50

I modify the last ebuild, this can't launch emerge 

But When I try emerge zsnes 1.50 with this ebuild, I have this :

x86_64-pc-linux-gnu-gcc -O2 -march=nocona -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -DNO_DEBUGGER -D__OPENGL__ -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__ -o initc.o -c initc.c
x86_64-pc-linux-gnu-g++ -o zsnes cfg.o endmem.o init.o initc.o md.o patch.o ui.o vcache.o version.o zloader.o zmovie.o zpath.o zstate.o ztime.o ztimec.o chips/c4emu.o chips/c4proc.o chips/dsp1emu.o chips/dsp1proc.o chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o chips/dsp4emu.o chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o chips/fxemu2c.o chips/fxtable.o chips/obc1emu.o chips/obc1proc.o chips/sa1proc.o chips/sa1regs.o chips/sdd1emu.o chips/seta10.o chips/sfxproc.o chips/st10proc.o chips/7110proc.o chips/seta11.o chips/st11proc.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o cpu/stable.o cpu/table.o cpu/tablec.o  gui/gui.o gui/guifuncs.o gui/menu.o effects/burn.o effects/water.o effects/smoke.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o   jma/inbyte.o jma/jma.o jma/lzma.o       jma/lzmadec.o jma/winout.o jma/zsnesjma.o mmlib/mm.o mmlib/linux.o  video/makev16b.o video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o video/m716text.o video/newg162.o video/newgfx.o video/newgfx16.o video/newgfx2.o video/procvid.o video/procvidc.o video/sw_draw.o video/2xsaiw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o video/hq4x32.o video/ntsc.o linux/copyvwin.o linux/sdlintrf.o linux/sdllink.o linux/gl_draw.o linux/sw_draw.o linux/safelib.o dos/joy.o dos/vesa2.o zip/unzip.o zip/zpng.o -O2 -march=nocona -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -DNO_DEBUGGER -D__OPENGL__ -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__ -fno-rtti  -L/usr/local/lib -L/usr/lib  -lz -lSDL -lpthread  -lpng -lm -L/usr/lib64 -lGL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libz.so lors de la recherche de -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libz.a lors de la recherche de -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libz.so lors de la recherche de -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libz.a lors de la recherche de -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libSDL.so lors de la recherche de -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libSDL.a lors de la recherche de -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libSDL.so lors de la recherche de -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libSDL.a lors de la recherche de -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libpthread.so lors de la recherche de -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libpthread.a lors de la recherche de -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libpthread.so lors de la recherche de -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libpthread.a lors de la recherche de -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libpng.so lors de la recherche de -lpng
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libpng.a lors de la recherche de -lpng
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libpng.so lors de la recherche de -lpng
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libpng.a lors de la recherche de -lpng
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libGL.so lors de la recherche de -lGL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libGL.so lors de la recherche de -lGL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libm.so lors de la recherche de -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libm.a lors de la recherche de -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libm.so lors de la recherche de -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libm.a lors de la recherche de -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libc.so lors de la recherche de -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libc.a lors de la recherche de -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libc.so lors de la recherche de -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libc.a lors de la recherche de -lc
initc.o: dans la fonction
Comment 35 Daniel Chesters "aka Oni" 2007-01-05 16:58:49 UTC
Created attachment 105584 [details]
"New" Ebuild for zsnes 1.50

I modify the last ebuild, this can't launch emerge 

But When I try emerge zsnes 1.50 with this ebuild, I have this :

x86_64-pc-linux-gnu-gcc -O2 -march=nocona -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -DNO_DEBUGGER -D__OPENGL__ -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__ -o initc.o -c initc.c
x86_64-pc-linux-gnu-g++ -o zsnes cfg.o endmem.o init.o initc.o md.o patch.o ui.o vcache.o version.o zloader.o zmovie.o zpath.o zstate.o ztime.o ztimec.o chips/c4emu.o chips/c4proc.o chips/dsp1emu.o chips/dsp1proc.o chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o chips/dsp4emu.o chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o chips/fxemu2c.o chips/fxtable.o chips/obc1emu.o chips/obc1proc.o chips/sa1proc.o chips/sa1regs.o chips/sdd1emu.o chips/seta10.o chips/sfxproc.o chips/st10proc.o chips/7110proc.o chips/seta11.o chips/st11proc.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o cpu/stable.o cpu/table.o cpu/tablec.o  gui/gui.o gui/guifuncs.o gui/menu.o effects/burn.o effects/water.o effects/smoke.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o   jma/inbyte.o jma/jma.o jma/lzma.o       jma/lzmadec.o jma/winout.o jma/zsnesjma.o mmlib/mm.o mmlib/linux.o  video/makev16b.o video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o video/m716text.o video/newg162.o video/newgfx.o video/newgfx16.o video/newgfx2.o video/procvid.o video/procvidc.o video/sw_draw.o video/2xsaiw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o video/hq4x32.o video/ntsc.o linux/copyvwin.o linux/sdlintrf.o linux/sdllink.o linux/gl_draw.o linux/sw_draw.o linux/safelib.o dos/joy.o dos/vesa2.o zip/unzip.o zip/zpng.o -O2 -march=nocona -fomit-frame-pointer -pipe -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -DNO_DEBUGGER -D__OPENGL__ -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__ -fno-rtti  -L/usr/local/lib -L/usr/lib  -lz -lSDL -lpthread  -lpng -lm -L/usr/lib64 -lGL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libz.so lors de la recherche de -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libz.a lors de la recherche de -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libz.so lors de la recherche de -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libz.a lors de la recherche de -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libSDL.so lors de la recherche de -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libSDL.a lors de la recherche de -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libSDL.so lors de la recherche de -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libSDL.a lors de la recherche de -lSDL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libpthread.so lors de la recherche de -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libpthread.a lors de la recherche de -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libpthread.so lors de la recherche de -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libpthread.a lors de la recherche de -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libpng.so lors de la recherche de -lpng
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libpng.a lors de la recherche de -lpng
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libpng.so lors de la recherche de -lpng
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libpng.a lors de la recherche de -lpng
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libGL.so lors de la recherche de -lGL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libGL.so lors de la recherche de -lGL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libm.so lors de la recherche de -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libm.a lors de la recherche de -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libm.so lors de la recherche de -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libm.a lors de la recherche de -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libc.so lors de la recherche de -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib/libc.a lors de la recherche de -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libc.so lors de la recherche de -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: escamotage incompatible /usr/lib64/libc.a lors de la recherche de -lc
initc.o: dans la fonction « loadGZipFile »:
initc.c:(.text+0x26a6): référence indéfinie vers « gzdirect »
collect2: ld a retourné 1 code d'état d'exécution
make: *** [main] Erreur 1

!!! ERROR: games-emulation/zsnes-1.50 failed.
Call stack:
  ebuild.sh, line 1593:   Called dyn_compile
  ebuild.sh, line 951:   Called src_compile
  zsnes-1.50.ebuild, line 64:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'
Comment 36 Kiyoshi Aman 2007-01-06 21:56:05 UTC
Created attachment 105719 [details]
ZSNES 1.50 ebuild

The ZSNES development team advises compiling your own amd64 binaries at this point in time, since automation appears not to be working so well.

However, I've taken your ebuild and updated it a bit.
Comment 37 Kyle Hunter 2007-01-15 03:50:00 UTC
Add in an -m32 compilation flag for amd64 users..
Comment 38 Kiyoshi Aman 2007-01-15 04:16:33 UTC
Multilib is supposed to do that automatically, and anyhow the 1.42 ebuild doesn't do this.
Comment 39 Kyle Hunter 2007-01-15 06:13:39 UTC
+      AC_MSG_RSULT(forcing no arch)
should be
+      AC_MSG_RESULT(forcing no arch)

in 1.50-configure.patch
Comment 40 Kiyoshi Aman 2007-01-16 02:50:38 UTC
Created attachment 107146 [details]
1.50-confgure.patch

Oops. Thanks for catching that.
Comment 41 Patrick Mullen 2007-01-20 17:52:18 UTC
It compiles fine and I can install it manually by cd'ing to the /var/portage/.../work/zsnes_1_50/src directory and typing "make install"

But portage cuts out at the end:

>>> Source compiled.
>>> Test phase [not enabled]: games-emulation/zsnes-1.50

>>> Install zsnes-1.50 into /var/tmp/portage/zsnes-1.50/image/ category games-emulation
install: omitting directory `src/'

!!! ERROR: games-emulation/zsnes-1.50 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  zsnes-1.50.ebuild, line 68:   Called die

!!! dogamesbin failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


Thanks for the work on this ebuild.
Comment 42 Kiyoshi Aman 2007-01-20 21:15:22 UTC
Created attachment 107589 [details]
ZSNES 1.50 ebuild

Yeah, uh, oops.
Comment 43 Mr. Bones. (RETIRED) gentoo-dev 2007-01-25 20:20:51 UTC
Anyone want to update for 1.51?
Comment 44 Kiyoshi Aman 2007-01-26 17:41:17 UTC
Created attachment 108215 [details]
ZSNES 1.51 ebuild

Version bump to 1.51, also add flag to enable libao for audio. libao should help with audio playback problems. It's in 1.50, but I'd forgotten to include it for some reason.
Comment 45 Kiyoshi Aman 2007-01-26 17:42:08 UTC
There's no need to replace the configure patch, as that's just a simple version bump at this point in time.
Comment 46 Vedran Miletić 2007-01-29 14:45:32 UTC
Not working for me.

>>> Emerging (1 of 1) games-emulation/zsnes-1.51 to /
 * zsnes151src.tar.bz2 MD5 ;-) ...                                        [ ok ]
 * zsnes151src.tar.bz2 RMD160 ;-) ...                                     [ ok ]
 * zsnes151src.tar.bz2 SHA1 ;-) ...                                       [ ok ]
 * zsnes151src.tar.bz2 SHA256 ;-) ...                                     [ ok ]
 * zsnes151src.tar.bz2 size ;-) ...                                       [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking zsnes151src.tar.bz2 ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking zsnes151src.tar.bz2 to /var/tmp/portage/games-emulation/zsnes-1.51/work
 * Applying 1.51-configure.patch ...

 * Failed Patch: 1.51-configure.patch !
 *  ( /usr/portage/local/rivanvx/games-emulation/zsnes/files/1.51-configure.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/games-emulation/zsnes-1.51/temp/1.51-configure.patch-12981.out


!!! ERROR: games-emulation/zsnes-1.51 failed.
Call stack:
  ebuild.sh, line 1611:   Called dyn_unpack
  ebuild.sh, line 748:   Called qa_call 'src_unpack'
  environment, line 3891:   Called src_unpack
  zsnes-1.51.ebuild, line 41:   Called epatch '/usr/portage/local/rivanvx/games-emulation/zsnes/files/1.51-configure.patch'
  eutils.eclass, line 341:   Called die

!!! Failed Patch: 1.51-configure.patch!
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/games-emulation/zsnes-1.51/temp/build.log'.

Is there anything that I should modify inside 1.51-configure.patch?
Comment 47 Timothy Redaelli (RETIRED) gentoo-dev 2007-01-29 17:03:14 UTC
In CVS, thx