[packages/SFST] - fix variable redefinition

baggins baggins at pld-linux.org
Tue Dec 3 08:46:36 CET 2013


commit 7b428c3c7354db5804063f3f2457c88c3d8481be
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Dec 3 08:46:23 2013 +0100

    - fix variable redefinition

 SFST.spec   |  2 ++
 build.patch | 16 ++++++++++++++++
 2 files changed, 18 insertions(+)
---
diff --git a/SFST.spec b/SFST.spec
index 0b874e3..a6306c6 100644
--- a/SFST.spec
+++ b/SFST.spec
@@ -7,6 +7,7 @@ License:	GPL v2+
 Group:		Development/Tools
 Source0:	ftp://ftp.ims.uni-stuttgart.de/pub/corpora/SFST/%{name}-%{version}.tar.gz
 # Source0-md5:	574f124731ab1b87696fdd9b8a6e4a7d
+Patch0:		build.patch
 URL:		http://www.ims.uni-stuttgart.de/projekte/gramotron/SOFTWARE/SFST.html
 BuildRequires:	bison
 BuildRequires:	flex
@@ -54,6 +55,7 @@ Pliki nagłówkowe biblioteki SFST.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 sed -i -e '/^	strip/d' src/Makefile
 
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..0dd11d4
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,16 @@
+--- SFST/src/fst.C~	2012-02-20 13:34:34.000000000 +0100
++++ SFST/src/fst.C	2013-12-03 08:43:28.287475829 +0100
+@@ -511,11 +511,11 @@
+     for( ArcsIter it(node->arcs()); it; it++ ) {
+       Arc *arc=it;
+ 
+-      NodeHashSet::iterator it=previous.insert(node).first;
++      NodeHashSet::iterator itp=previous.insert(node).first;
+       path.push_back(arc->label());
+       enumerate_paths_node( arc->target_node(), path, previous, result );
+       path.pop_back();
+-      previous.erase(it);
++      previous.erase(itp);
+     }
+   }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/SFST.git/commitdiff/7b428c3c7354db5804063f3f2457c88c3d8481be



More information about the pld-cvs-commit mailing list