packages: gnuchess/gnuchess.spec, gnuchess/compile.patch (NEW) - added comp...
sls
sls at pld-linux.org
Tue Dec 15 00:18:48 CET 2009
Author: sls Date: Mon Dec 14 23:18:48 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- added compile.patch
---- Files affected:
packages/gnuchess:
gnuchess.spec (1.51 -> 1.52) , compile.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/gnuchess/gnuchess.spec
diff -u packages/gnuchess/gnuchess.spec:1.51 packages/gnuchess/gnuchess.spec:1.52
--- packages/gnuchess/gnuchess.spec:1.51 Mon Feb 23 23:05:17 2009
+++ packages/gnuchess/gnuchess.spec Tue Dec 15 00:18:41 2009
@@ -18,6 +18,7 @@
Source1: xchess.png
Source2: %{name}.desktop
Patch0: %{name}-gcc4.patch
+Patch1: compile.patch
URL: http://www.gnu.org/software/chess/chess.html
BuildRequires: automake
BuildRequires: flex
@@ -72,6 +73,7 @@
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
cp -f /usr/share/automake/config.* .
@@ -104,6 +106,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.52 2009/12/14 23:18:41 sls
+- added compile.patch
+
Revision 1.51 2009/02/23 22:05:17 arekm
- release 7
================================================================
Index: packages/gnuchess/compile.patch
diff -u /dev/null packages/gnuchess/compile.patch:1.1
--- /dev/null Tue Dec 15 00:18:48 2009
+++ packages/gnuchess/compile.patch Tue Dec 15 00:18:41 2009
@@ -0,0 +1,39 @@
+--- gnuchess-5.07/src/common.h.orig 2009-12-15 00:04:30.233924867 +0100
++++ gnuchess-5.07/src/common.h 2009-12-15 00:05:24.416211779 +0100
+@@ -744,7 +744,7 @@ void wait_for_input(void);
+ * Input routine, initialized to one of the specific
+ * input routines. The given argument is the prompt.
+ */
+-void (*getline) (char *);
++void (*gc_getline) (char *);
+
+ #define MAXSTR 128
+ extern char inputstr[MAXSTR];
+--- gnuchess-5.07/src/input.c.orig 2009-12-15 00:05:36.836210664 +0100
++++ gnuchess-5.07/src/input.c 2009-12-15 00:07:10.419534417 +0100
+@@ -127,7 +127,7 @@ void *input_func(void *arg __attribute__
+ (RealGameCnt+1)/2 + 1 );
+ }
+ pthread_mutex_lock(&input_mutex);
+- getline(prompt);
++ gc_getline(prompt);
+ input_status = INPUT_AVAILABLE;
+ pthread_cond_signal(&input_cond);
+ pthread_mutex_unlock(&input_mutex);
+@@ -173,13 +173,13 @@ void InitInput(void)
+ {
+ #ifdef HAVE_LIBREADLINE
+ if (isatty(STDIN_FILENO)) {
+- getline = getline_readline;
++ gc_getline = getline_readline;
+ using_history();
+ } else {
+- getline = getline_standard;
++ gc_getline = getline_standard;
+ }
+ #else
+- getline = getline_standard;
++ gc_getline = getline_standard;
+ #endif
+ /* Start input thread */
+ pthread_create(&input_thread, NULL, input_func, NULL);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gnuchess/gnuchess.spec?r1=1.51&r2=1.52&f=u
More information about the pld-cvs-commit
mailing list