summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <tristan@gentoo.org>2007-06-05 05:01:29 +0000
committerTristan Heaven <tristan@gentoo.org>2007-06-05 05:01:29 +0000
commitdade9b616a6fb01728f2eec2301ba2365f8b9ff1 (patch)
tree9e74cb6a55cb987d71939c006df71489c03c4b16 /games-board/pouetchess/files
parentMarked ~hppa (bug #163285). (diff)
downloadhistorical-dade9b616a6fb01728f2eec2301ba2365f8b9ff1.tar.gz
historical-dade9b616a6fb01728f2eec2301ba2365f8b9ff1.tar.bz2
historical-dade9b616a6fb01728f2eec2301ba2365f8b9ff1.zip
Add segfaults patch from Debian for bug #180427
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'games-board/pouetchess/files')
-rw-r--r--games-board/pouetchess/files/digest-pouetchess-0.2.0-r13
-rw-r--r--games-board/pouetchess/files/pouetchess-0.2.0-segfaults.patch44
2 files changed, 47 insertions, 0 deletions
diff --git a/games-board/pouetchess/files/digest-pouetchess-0.2.0-r1 b/games-board/pouetchess/files/digest-pouetchess-0.2.0-r1
new file mode 100644
index 000000000000..d5dc5c702be3
--- /dev/null
+++ b/games-board/pouetchess/files/digest-pouetchess-0.2.0-r1
@@ -0,0 +1,3 @@
+MD5 c0454aca11ead9be724d769c521120b1 pouetchess_src_0.2.0.tar.gz 1055338
+RMD160 29611b78ef75b3707ad98752055da775335c0490 pouetchess_src_0.2.0.tar.gz 1055338
+SHA256 fe966ff1b0aa2dd6d0ca2b62692f5b788e3a286050a6a374e58ca0612f68b2ef pouetchess_src_0.2.0.tar.gz 1055338
diff --git a/games-board/pouetchess/files/pouetchess-0.2.0-segfaults.patch b/games-board/pouetchess/files/pouetchess-0.2.0-segfaults.patch
new file mode 100644
index 000000000000..46b27b71d47e
--- /dev/null
+++ b/games-board/pouetchess/files/pouetchess-0.2.0-segfaults.patch
@@ -0,0 +1,44 @@
+--- src/faile/search.c
++++ src/faile/search.c
+@@ -805,6 +805,7 @@
+ for (j = 0; j < indent; j++) {
+ fputc (' ', output);
+ }
++ void print_move (move_s moves[], int m, FILE *stream);
+ print_move (&moves[0], i, output);
+ fprintf (output, "\n");
+
+--- src/faile/utils.c
++++ src/faile/utils.c
+@@ -125,7 +125,7 @@
+ rank (target) < 1 || rank (target) > 8 ||
+ file (target) < 1 || file (target) > 8)
+ {
+- sprintf (str, "*** FAILE INTERNAL ERROR ***");
++ sprintf (str, "xxxx");
+ return;
+ }
+
+--- src/main.cpp
++++ src/main.cpp
+@@ -184,6 +184,9 @@
+ // first scene is SCENE_INIT.
+ pGlobalInfos->SetCurrentScene(GAME_SCENE_INIT);
+
++ /* @FB 02/08/06 */
++ pGlobalInfos->ReleaseKeys();
++
+ // main game loop
+ while( pGlobalInfos->IsGameRunning() )
+ {
+--- src/scene_main_game.cpp
++++ src/scene_main_game.cpp
+@@ -245,7 +245,7 @@
+
+ if (pGlobalInfos->OnLeftMouseButtonDown())
+ {
+- if (chessboard->clickOnChessBoard(mouseX,mouseY,&sqX,&sqY));
++ if (chessboard->clickOnChessBoard(mouseX,mouseY,&sqX,&sqY))
+ {
+ // if a piece was already selected, this means the player want to move this piece
+ if (SquareXSelected>-1 && SquareZSelected>-1)