mr_bones_ 15/04/01 05:09:52 Added: spacerider-0.13-font.patch spacerider-0.13-gcc49.patch Log: first attempt at patch to fix bug #539658 (Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path 1.1 games-arcade/spacerider/files/spacerider-0.13-font.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/spacerider/files/spacerider-0.13-font.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/spacerider/files/spacerider-0.13-font.patch?rev=1.1&content-type=text/plain Index: spacerider-0.13-font.patch =================================================================== Ugly brute-force method for avoiding a double-free segfault on exit. Better patch welcome. --- spacerider.cpp.orig 2015-03-31 23:24:17.770966147 -0400 +++ spacerider.cpp 2015-03-31 23:24:41.592174463 -0400 @@ -306,8 +306,6 @@ /* free screen */ SDL_FreeSurface(screen); } - /* call the TTF-Library cleanup function */ - TTF_Quit(); /* call the NET-Library cleanup function */ SDLNet_Quit(); 1.1 games-arcade/spacerider/files/spacerider-0.13-gcc49.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch?rev=1.1&content-type=text/plain Index: spacerider-0.13-gcc49.patch =================================================================== --- effect.cpp.orig 2015-03-31 22:36:53.336131373 -0400 +++ effect.cpp 2015-03-31 22:37:04.359755281 -0400 @@ -18,7 +18,7 @@ void Effect::add(const int x, const int y) { object_struct *effect; - if((effect = add_object(x, y)) == NULL) + if((effect = add_object(x, y, 0, 0)) == NULL) { return; } --- object.h.orig 2015-03-31 22:35:22.939214561 -0400 +++ object.h 2015-03-31 22:37:19.654233441 -0400 @@ -172,7 +172,7 @@ return object->next; } -template <class T>struct Object<T>::object_struct *Object<T>::add_object(const int x, const int y, const int speedx = 0, const int speedy = 0) +template <class T>struct Object<T>::object_struct *Object<T>::add_object(const int x, const int y, const int speedx, const int speedy) { object_struct *object;