r14711 - packages/trunk/brutalchess/debian/patches

Markus Koschany apo-guest at moszumanska.debian.org
Sat Dec 21 13:10:22 UTC 2013


Author: apo-guest
Date: 2013-12-21 13:10:22 +0000 (Sat, 21 Dec 2013)
New Revision: 14711

Added:
   packages/trunk/brutalchess/debian/patches/disable-quake-pieces.patch
Modified:
   packages/trunk/brutalchess/debian/patches/FreeType.patch
   packages/trunk/brutalchess/debian/patches/series
Log:
Add disable-quake-pieces.patch. Fix #732227


Modified: packages/trunk/brutalchess/debian/patches/FreeType.patch
===================================================================
--- packages/trunk/brutalchess/debian/patches/FreeType.patch	2013-12-21 13:01:59 UTC (rev 14710)
+++ packages/trunk/brutalchess/debian/patches/FreeType.patch	2013-12-21 13:10:22 UTC (rev 14711)
@@ -2,6 +2,7 @@
 Date: Sat, 21 Dec 2013 13:09:45 +0100
 Subject: FreeType
 
+Bug: http://bugs.debian.org/732235
 ---
  src/fontloader.h | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

Added: packages/trunk/brutalchess/debian/patches/disable-quake-pieces.patch
===================================================================
--- packages/trunk/brutalchess/debian/patches/disable-quake-pieces.patch	                        (rev 0)
+++ packages/trunk/brutalchess/debian/patches/disable-quake-pieces.patch	2013-12-21 13:10:22 UTC (rev 14711)
@@ -0,0 +1,44 @@
+From: Markus Koschany <apo at gambaru.de>
+Date: Sat, 21 Dec 2013 13:56:00 +0100
+Subject: disable quake pieces
+
+The quake pieces were never officially shipped by upstream because they are
+copyrighted. This patch disables the -p quake option because it is useless and
+causes a segmentation fault.
+
+Bug: http://bugs.debian.org/732227
+---
+ src/utils.cpp | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/src/utils.cpp b/src/utils.cpp
+index e1ccb4b..8138118 100644
+--- a/src/utils.cpp
++++ b/src/utils.cpp
+@@ -38,8 +38,6 @@ void printUsage()
+ 	cerr << " -l PLAYER1 PLAYER2  --player1=PLAYER1\t\t Set your player and opponent. Choices are brutal,\n";
+ 	cerr << "                     --player2=PLAYER2\t\t faile, human, random, test, xboard.";
+ 	cerr << endl << endl;
+-	cerr << " -p PIECE_SET  --pieces=PIECE_SET\t\t Select the piece set. Choices are basic, quake.";
+-	cerr << endl << endl;
+ 	cerr << " -r  --reflections=on|off\t\t\t Turn off reflections, on by default.";
+ 	cerr << endl << endl;
+ 	cerr << " -s  --shadows=on|off\t\t\t\t Turn off shadows, on by default.";
+@@ -156,8 +154,6 @@ void parseCommandLine(int argc, char* argv[])
+ 				opts->pieces = BASIC;
+ 			} else if(args[i+1] == "debug") {
+ 				opts->pieces = DEBUG;
+-			} else if(args[i+1] == "quake") {
+-				opts->pieces = QUAKE;
+ 			} else {
+ 				printUsage();
+ 			}
+@@ -167,8 +163,6 @@ void parseCommandLine(int argc, char* argv[])
+ 				opts->pieces = BASIC;
+ 			} else if(args[i].substr(9, args[i].size()) == "debug") {
+ 				opts->pieces = DEBUG;
+-			} else if(args[i].substr(9, args[i].size()) == "quake") {
+-				opts->pieces = QUAKE;
+ 			} else {
+ 				printUsage();
+ 			}

Modified: packages/trunk/brutalchess/debian/patches/series
===================================================================
--- packages/trunk/brutalchess/debian/patches/series	2013-12-21 13:01:59 UTC (rev 14710)
+++ packages/trunk/brutalchess/debian/patches/series	2013-12-21 13:10:22 UTC (rev 14711)
@@ -5,3 +5,4 @@
 05_use_our_fonts.diff
 06_gcc-4.7.patch
 FreeType.patch
+disable-quake-pieces.patch




More information about the Pkg-games-commits mailing list