Package: knights
Version: 0.6-8.2
Tags: patch

---------- Forwarded message ----------
From: Andreas Wenning <[EMAIL PROTECTED]>
Date: 2008/6/3
Subject: knights changes/patches
To: Jose Carlos Medeiros <[EMAIL PROTECTED]>


Hi Jose

I've updated the knights package in Ubuntu, and thought you should
benefit from it too. I've put all the changes, that might be relevant to
debian together, and made is as a debdiff from the current version
(0.6-8.2) in debian. Feel free to pull all the changes that is usable to
you.

Cheers
Andreas
--
Andreas Wenning <[EMAIL PROTECTED]>




-- 
[]'s
José Carlos
diff -u knights-0.6/debian/patches/00list knights-0.6/debian/patches/00list
--- knights-0.6/debian/patches/00list
+++ knights-0.6/debian/patches/00list
@@ -5 +5 @@
-
+05_fix_castle.dpatch
diff -u knights-0.6/debian/control knights-0.6/debian/control
--- knights-0.6/debian/control
+++ knights-0.6/debian/control
@@ -5,6 +5,7 @@
 Uploaders: Ola Lundqvist <[EMAIL PROTECTED]>
 Build-Depends: debhelper (>= 5.0.0), kdelibs4-dev, poxml, dpatch, imagemagick, libx11-dev, libxext-dev, libxinerama-dev, libxpm-dev, x-dev
 Standards-Version: 3.7.2
+Homepage: http://knights.sourceforge.net/
 
 Package: knights
 Architecture: any
@@ -27,2 +27,0 @@
- .
-  Homepage: http://sourceforge.net/projects/knights/
diff -u knights-0.6/debian/rules knights-0.6/debian/rules
--- knights-0.6/debian/rules
+++ knights-0.6/debian/rules
@@ -55,14 +55,6 @@
 
 	[ ! -f Makefile ] || $(MAKE) distclean
 
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	cp -f /usr/share/misc/config.sub config.sub
-	cp -f /usr/share/misc/config.sub admin/config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	cp -f /usr/share/misc/config.guess config.guess
-	cp -f /usr/share/misc/config.guess admin/config.guess
-endif
 	dh_clean 
 
 install: build
@@ -82,6 +74,7 @@
 	dh_installchangelogs ChangeLog
 	dh_installdocs
 	dh_installmenu
+	dh_icons
 	dh_installman debian/knights.1
 	dh_link
 	dh_strip
diff -u knights-0.6/debian/changelog knights-0.6/debian/changelog
--- knights-0.6/debian/changelog
+++ knights-0.6/debian/changelog
@@ -1,3 +1,12 @@
+knights (0.6-9) unstable; urgency=low
+
+  * debian/05_fix_castle.dpatch to fix castling
+  * Changed homepage and redid for new Debian spec.
+  * debian/rules: Removed config.{sub,guess}.
+  * debian/rules: added dh_icons. (Closes: #454725)
+
+ -- Andreas Wenning <[EMAIL PROTECTED]>  Tue, 03 Jun 2008 22:37:24 +0200
+
 knights (0.6-8.2) unstable; urgency=low
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- knights-0.6.orig/debian/patches/05_fix_castle.dpatch
+++ knights-0.6/debian/patches/05_fix_castle.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## kubuntu_01_fix_castle.dpatch by Martin Meredith <[EMAIL PROTECTED]>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fixes crash on castling
+
[EMAIL PROTECTED]@
+diff -urNad knights-0.6~/knights/board_2d.cpp knights-0.6/knights/board_2d.cpp
+--- knights-0.6~/knights/board_2d.cpp	2003-02-28 11:09:53.000000000 +0000
++++ knights-0.6/knights/board_2d.cpp	2006-11-08 17:30:09.000000000 +0000
+@@ -184,7 +184,7 @@
+ 	{
+ 		/* This is a castle */
+ 		ChessMove newMove;
+-		strcat( newMove.SAN, QString( "no" ).latin1() );
++		strcpy( newMove.SAN, QString( "no" ).latin1() );
+ 		newMove.fromRank = chessMove.fromRank;
+ 		newMove.toRank = chessMove.toRank;
+ 		newMove.ManTaken = Null;

Reply via email to