You are not logged in.
Pages: 1
Hi,
i've downloaded the MAME 0.140 source from www.mamedev.org along with the diff patches u1 and u2.
according to http://mamedev.org/updates.html i have to patch the source with
patch -p0 -E <diffname.diffin the mame source tree.
unfortunately, patch then throws waaay to much errors at me:
patch -p0 <0140u1.diff
(Stripping trailing CRs from patch.)
patching file docs/config.txt
Hunk #1 FAILED at 1004.
1 out of 1 hunk FAILED -- saving rejects to file docs/config.txt.rej
(Stripping trailing CRs from patch.)
patching file src/emu/cheat.c
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 33.
Hunk #3 FAILED at 51.
Hunk #4 FAILED at 71.
Hunk #5 FAILED at 80.
Hunk #6 FAILED at 360.
Hunk #7 FAILED at 1822.
Hunk #8 FAILED at 1918.
Hunk #9 FAILED at 1938.
9 out of 9 hunks FAILED -- saving rejects to file src/emu/cheat.c.rej
...
*snip*
...
(Stripping trailing CRs from patch.)
patching file src/version.c
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file src/version.c.rejwhat's wrong here?
given that i can almost find no documentation about compiling/patching mame under (arch)linux, i'll appreciate any help on this.
PS: compiling the 0.140 source seems to work fine.
PPS: i'm aware of sdlmame-0.140-u1 in the community repository, but i *need* the u2 patch. why is the package named sdlmame anyway? sdlmame was merged with the official mame ages ago.
Last edited by ryz (2010-12-12 23:15:20)
Offline
Nevermind, i found the solution:
The source and patches have Windows line endings. You can make patch work with them on most recent distros using the --binary switch.
Offline
Nevermind, i found the solution:
The source and patches have Windows line endings. You can make patch work with them on most recent distros using the --binary switch.
Ok, this is an old thread but maybe this method can help some users.
You can use this method:
Extract endings.zip file where the makefile lives.
Run it with
./endings
and, after that, patch command works great :-)
Last edited by padremayi (2012-07-06 21:00:27)
Offline
Pages: 1