packages: ispell/ispell.spec, ispell/ispell-3.3.02-glibc-2.10.patch (NEW) -...

arekm arekm at pld-linux.org
Wed Aug 31 22:03:09 CEST 2011


Author: arekm                        Date: Wed Aug 31 20:03:09 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 3; getline fix

---- Files affected:
packages/ispell:
   ispell.spec (1.48 -> 1.49) , ispell-3.3.02-glibc-2.10.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ispell/ispell.spec
diff -u packages/ispell/ispell.spec:1.48 packages/ispell/ispell.spec:1.49
--- packages/ispell/ispell.spec:1.48	Wed Aug 31 20:32:49 2011
+++ packages/ispell/ispell.spec	Wed Aug 31 22:03:04 2011
@@ -8,13 +8,14 @@
 Summary(uk.UTF-8):	ispell - інтерактивна програма перевірки орфографії
 Name:		ispell
 Version:	3.3.02
-Release:	2
+Release:	3
 License:	BSD-like
 Group:		Applications/Text
 Source0:	http://fmg-www.cs.ucla.edu/geoff/tars/%{name}-%{version}.tar.gz
 # Source0-md5:	12087d7555fc2b746425cd167af480fe
 Source1:	spell
 Source2:	%{name}-local.h
+Patch0:		ispell-3.3.02-glibc-2.10.patch
 URL:		http://ficus-www.cs.ucla.edu/geoff/ispell.html
 BuildRequires:	bison
 BuildRequires:	ncurses-devel
@@ -85,6 +86,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 install %{SOURCE2} local.h
 sed -i -e 's#define[ \t]CC[ \t].*#define CC "%{__cc}"#g' local.h
@@ -145,6 +147,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.49  2011/08/31 20:03:04  arekm
+- rel 3; getline fix
+
 Revision 1.48  2011/08/31 18:32:49  arekm
 - release 2
 

================================================================
Index: packages/ispell/ispell-3.3.02-glibc-2.10.patch
diff -u /dev/null packages/ispell/ispell-3.3.02-glibc-2.10.patch:1.1
--- /dev/null	Wed Aug 31 22:03:09 2011
+++ packages/ispell/ispell-3.3.02-glibc-2.10.patch	Wed Aug 31 22:03:04 2011
@@ -0,0 +1,48 @@
+diff -ur ispell-3.3.02.orig/correct.c ispell-3.3.02/correct.c
+--- ispell-3.3.02.orig/correct.c	2009-08-06 18:28:32.000000000 +0300
++++ ispell-3.3.02/correct.c	2009-08-06 18:28:57.000000000 +0300
+@@ -247,7 +247,7 @@
+ 		  struct flagent * sufent,
+ 		  ichar_t savearea[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN],
+ 		  int * nsaved));
+-static char *	getline P ((char * buf, int bufsize));
++static char *	get_line P ((char * buf, int bufsize));
+ void		askmode P ((void));
+ void		copyout P ((unsigned char ** cc, int cnt));
+ static void	lookharder P ((unsigned char * string));
+@@ -573,7 +573,7 @@
+ 
+ 		imove (li - 1, 0);
+ 		(void) putchar ('!');
+-		if (getline ((char *) buf, sizeof buf) == NULL)
++		if (get_line ((char *) buf, sizeof buf) == NULL)
+ 		    {
+ 		    (void) putchar (7);
+ 		    ierase ();
+@@ -598,7 +598,7 @@
+ 		    (void) printf ("%s ", CORR_C_READONLY);
+ 		    }
+ 		(void) printf (CORR_C_REPLACE_WITH);
+-		if (getline ((char *) ctok, ctokl) == NULL)
++		if (get_line ((char *) ctok, ctokl) == NULL)
+ 		    {
+ 		    (void) putchar (7);
+ 		    /* Put it back */
+@@ -666,7 +666,7 @@
+ 		unsigned char	buf[100];
+ 		imove (li - 1, 0);
+ 		(void) printf (CORR_C_LOOKUP_PROMPT);
+-		if (getline ((char *) buf, sizeof buf) == NULL)
++		if (get_line ((char *) buf, sizeof buf) == NULL)
+ 		    {
+ 		    (void) putchar (7);
+ 		    ierase ();
+@@ -1585,7 +1585,7 @@
+     return;
+     }
+ 
+-static char * getline (s, len)
++static char * get_line (s, len)
+     register char *	s;
+     register int	len;
+     {
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ispell/ispell.spec?r1=1.48&r2=1.49&f=u



More information about the pld-cvs-commit mailing list