rpms/gnuchess/devel gnuchess-5.07-getline.patch, NONE, 1.1 gnuchess.spec, 1.8, 1.9
Karsten Hopp
karsten at fedoraproject.org
Thu Sep 10 16:05:01 UTC 2009
- Previous message (by thread): rpms/xpa/devel xpa-makefile.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 sources, 1.4, 1.5 xpa.spec, 1.26, 1.27 xpa-2.1.6-makefile.patch, 1.3, NONE
- Next message (by thread): rpms/qbittorrent/devel .cvsignore, 1.13, 1.14 qbittorrent.spec, 1.32, 1.33 sources, 1.13, 1.14 icons_qrc.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: karsten
Update of /cvs/extras/rpms/gnuchess/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25457
Modified Files:
gnuchess.spec
Added Files:
gnuchess-5.07-getline.patch
Log Message:
- fix name collision of getline function
gnuchess-5.07-getline.patch:
common.h | 2 +-
input.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
--- NEW FILE gnuchess-5.07-getline.patch ---
--- gnuchess-5.07/src/common.h 2009-09-10 18:01:34.000000000 +0200
+++ gnuchess-5.07_getline/src/common.h 2009-09-10 17:57:40.000000000 +0200
@@ -745,7 +745,7 @@
* Input routine, initialized to one of the specific
* input routines. The given argument is the prompt.
*/
-void (*getline) (char *);
+void (*getline_chess) (char *);
#define MAXSTR 128
extern char inputstr[MAXSTR];
--- gnuchess-5.07/src/input.c 2003-07-01 19:06:43.000000000 +0200
+++ gnuchess-5.07_getline/src/input.c 2009-09-10 18:00:53.000000000 +0200
@@ -127,7 +127,7 @@
(RealGameCnt+1)/2 + 1 );
}
pthread_mutex_lock(&input_mutex);
- getline(prompt);
+ getline_chess(prompt);
input_status = INPUT_AVAILABLE;
pthread_cond_signal(&input_cond);
pthread_mutex_unlock(&input_mutex);
@@ -173,13 +173,13 @@
{
#ifdef HAVE_LIBREADLINE
if (isatty(STDIN_FILENO)) {
- getline = getline_readline;
+ getline_chess = getline_readline;
using_history();
} else {
- getline = getline_standard;
+ getline_chess = getline_standard;
}
#else
- getline = getline_standard;
+ getline_chess = getline_standard;
#endif
/* Start input thread */
pthread_create(&input_thread, NULL, input_func, NULL);
Index: gnuchess.spec
===================================================================
RCS file: /cvs/extras/rpms/gnuchess/devel/gnuchess.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- gnuchess.spec 25 Jul 2009 00:57:03 -0000 1.8
+++ gnuchess.spec 10 Sep 2009 16:05:00 -0000 1.9
@@ -1,7 +1,7 @@
Summary: The GNU chess program
Name: gnuchess
Version: 5.07
-Release: 13%{?dist}
+Release: 14%{?dist}
License: GPLv2+
Group: Amusements/Games
URL: ftp://ftp.gnu.org/pub/gnu/chess/
@@ -11,6 +11,7 @@ Source: ftp://ftp.gnu.org/pub/gnu/chess/
Source1: book_1.01.dat.gz
Patch0: gnuchess-5.07-gcc4.patch
Patch1: gnuchess-5.06-bookpath.patch
+Patch2: gnuchess-5.07-getline.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Provides: chessprogram
BuildRequires: flex
@@ -29,6 +30,7 @@ you'll also need to install the xboard p
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .gcc
%patch1 -p1 -b .bp
+%patch2 -p1 -b .getline
gzip -dc %{SOURCE1} > book/book.dat
%build
@@ -52,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
%doc doc/* COPYING AUTHORS NEWS TODO
%changelog
+* Thu Sep 10 2009 Karsten Hopp <karsten at redhat.com> 5.07-14
+- fix name collision of getline function
+
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 5.07-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- Previous message (by thread): rpms/xpa/devel xpa-makefile.patch, NONE, 1.1 .cvsignore, 1.4, 1.5 sources, 1.4, 1.5 xpa.spec, 1.26, 1.27 xpa-2.1.6-makefile.patch, 1.3, NONE
- Next message (by thread): rpms/qbittorrent/devel .cvsignore, 1.13, 1.14 qbittorrent.spec, 1.32, 1.33 sources, 1.13, 1.14 icons_qrc.patch, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list