diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2009-06-17 22:57:31 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2009-06-17 22:57:31 +0000 |
commit | 5e3d15d32557d83101f47f99735e5f876286cf89 (patch) | |
tree | fe367ee1002c945a3f9398ed00309b5f901f2c0b /games-emulation/mednafen | |
parent | Remove gnome-base/libghttp per bug #244128 (diff) | |
download | gentoo-2-5e3d15d32557d83101f47f99735e5f876286cf89.tar.gz gentoo-2-5e3d15d32557d83101f47f99735e5f876286cf89.tar.bz2 gentoo-2-5e3d15d32557d83101f47f99735e5f876286cf89.zip |
Fix building with glibc-2.10, bug #273590
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'games-emulation/mednafen')
-rw-r--r-- | games-emulation/mednafen/ChangeLog | 6 | ||||
-rw-r--r-- | games-emulation/mednafen/files/mednafen-0.8.11-glibc2.10.patch | 11 | ||||
-rw-r--r-- | games-emulation/mednafen/mednafen-0.8.11.ebuild | 9 |
3 files changed, 22 insertions, 4 deletions
diff --git a/games-emulation/mednafen/ChangeLog b/games-emulation/mednafen/ChangeLog index c6af45d0a639..fe0187539861 100644 --- a/games-emulation/mednafen/ChangeLog +++ b/games-emulation/mednafen/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-emulation/mednafen # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/ChangeLog,v 1.16 2009/04/15 15:52:29 hanno Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/ChangeLog,v 1.17 2009/06/17 22:57:30 nyhm Exp $ + + 17 Jun 2009; Tristan Heaven <nyhm@gentoo.org> mednafen-0.8.11.ebuild, + +files/mednafen-0.8.11-glibc2.10.patch: + Fix building with glibc-2.10, bug #273590 *mednafen-0.8.11 (15 Apr 2009) diff --git a/games-emulation/mednafen/files/mednafen-0.8.11-glibc2.10.patch b/games-emulation/mednafen/files/mednafen-0.8.11-glibc2.10.patch new file mode 100644 index 000000000000..34fb4ba5ee3f --- /dev/null +++ b/games-emulation/mednafen/files/mednafen-0.8.11-glibc2.10.patch @@ -0,0 +1,11 @@ +--- src/file.cpp ++++ src/file.cpp +@@ -418,7 +418,7 @@ + if(!(fceufp = MakeMemWrap(t, 0))) + return(0); + +- char *ld = strrchr(path, '.'); ++ const char *ld = strrchr(path, '.'); + fceufp->ext = strdup(ld ? ld + 1 : ""); + } + else /* Probably gzip */ diff --git a/games-emulation/mednafen/mednafen-0.8.11.ebuild b/games-emulation/mednafen/mednafen-0.8.11.ebuild index e47ce72308f9..94fa191e7558 100644 --- a/games-emulation/mednafen/mednafen-0.8.11.ebuild +++ b/games-emulation/mednafen/mednafen-0.8.11.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/mednafen-0.8.11.ebuild,v 1.1 2009/04/15 15:52:29 hanno Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/mednafen-0.8.11.ebuild,v 1.2 2009/06/17 22:57:30 nyhm Exp $ EAPI=2 -inherit autotools games +inherit autotools eutils games DESCRIPTION="An advanced NES, GB/GBC/GBA, TurboGrafx 16/CD, NGPC and Lynx emulator" HOMEPAGE="http://mednafen.sourceforge.net/" @@ -35,8 +35,11 @@ src_prepare() { $(find . -name 'Makefile.*') \ || die 'sed failed' sed -i \ - -e '/-fomit-frame/d' configure.ac \ + -e '/-fomit-frame-pointer/d' \ + -e '/-ffast-math/d' \ + configure.ac \ || die "sed failed" + epatch "${FILESDIR}"/${P}-glibc2.10.patch eautoreconf } |