diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-02-08 14:50:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-02-08 14:50:08 +0000 |
commit | be61838a57776a9c6bb7eefc7b625c38c6050392 (patch) | |
tree | 9ad776a98e94c11ab943e8f76071aa8702abd22e /hunspell | |
parent | 7a0dc5b37f36871184c107ec82672cb673e1a0bd (diff) |
Resolves: fdo#34031 bump to hunspell 1.3.1
Diffstat (limited to 'hunspell')
-rw-r--r-- | hunspell/hunspell-1.2.8-thesfix.patch | 28 | ||||
-rw-r--r-- | hunspell/hunspell-1.2.9-crashfix.patch | 11 | ||||
-rw-r--r-- | hunspell/hunspell-mingw.patch | 4 | ||||
-rw-r--r-- | hunspell/hunspell-solaris.patch | 4 | ||||
-rw-r--r-- | hunspell/hunspell-stacksmash.patch | 28 | ||||
-rw-r--r-- | hunspell/hunspell-valgrind.patch | 13 | ||||
-rw-r--r-- | hunspell/hunspell-wntconfig.patch | 4 | ||||
-rw-r--r-- | hunspell/makefile.mk | 9 |
8 files changed, 9 insertions, 92 deletions
diff --git a/hunspell/hunspell-1.2.8-thesfix.patch b/hunspell/hunspell-1.2.8-thesfix.patch deleted file mode 100644 index c41fde45050f..000000000000 --- a/hunspell/hunspell-1.2.8-thesfix.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- misc/hunspell-1.2.8/src/hunspell/hunspell.cxx 2010-03-16 14:37:36.998879385 +0100 -+++ misc/build/hunspell-1.2.8/src/hunspell/hunspell.cxx 2010-03-16 14:37:10.416222464 +0100 -@@ -1666,7 +1666,7 @@ - if (!q2) return 0; // bad XML input - if (check_xml_par(q, "type=", "analyze")) { - int n = 0, s = 0; -- if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN)) n = analyze(slst, cw); -+ if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1)) n = analyze(slst, cw); - if (n == 0) return 0; - // convert the result to <code><a>ana1</a><a>ana2</a></code> format - for (int i = 0; i < n; i++) s+= strlen((*slst)[i]); -@@ -1687,13 +1687,13 @@ - (*slst)[0] = r; - return 1; - } else if (check_xml_par(q, "type=", "stem")) { -- if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN)) return stem(slst, cw); -+ if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1)) return stem(slst, cw); - } else if (check_xml_par(q, "type=", "generate")) { -- int n = get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN); -+ int n = get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1); - if (n == 0) return 0; - char * q3 = strstr(q2 + 1, "<word"); - if (q3) { -- if (get_xml_par(cw2, strchr(q3, '>'), MAXWORDUTF8LEN)) { -+ if (get_xml_par(cw2, strchr(q3, '>'), MAXWORDUTF8LEN - 1)) { - return generate(slst, cw, cw2); - } - } else { diff --git a/hunspell/hunspell-1.2.9-crashfix.patch b/hunspell/hunspell-1.2.9-crashfix.patch deleted file mode 100644 index 73244d21a99b..000000000000 --- a/hunspell/hunspell-1.2.9-crashfix.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- misc/hunspell-1.2.9/src/hunspell/affixmgr.cxx 2010-02-27 12:59:53.000000000 +0100 -+++ misc/build/hunspell-1.2.9/src/hunspell/affixmgr.cxx 2011-01-06 16:18:23.361159724 +0100 -@@ -1542,7 +1542,7 @@ - } - - if (!rv) { -- if (compoundflag && -+ if (compoundflag && !words && - !(rv = prefix_check(st, i, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN, compoundflag))) { - if ((rv = suffix_check(st, i, 0, NULL, NULL, 0, NULL, - FLAG_NULL, compoundflag, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN)) && !hu_mov_rule && diff --git a/hunspell/hunspell-mingw.patch b/hunspell/hunspell-mingw.patch index 0120e01ddba1..391aa9220fc1 100644 --- a/hunspell/hunspell-mingw.patch +++ b/hunspell/hunspell-mingw.patch @@ -1,5 +1,5 @@ ---- misc/hunspell-1.2.9/src/tools/hunspell.cxx 2010-02-27 23:37:14.000000000 +0900 -+++ misc/build/hunspell-1.2.9/src/tools/hunspell.cxx 2010-04-25 07:57:39.233875000 +0900 +--- misc/hunspell-1.3.1/src/tools/hunspell.cxx 2010-02-27 23:37:14.000000000 +0900 ++++ misc/build/hunspell-1.3.1/src/tools/hunspell.cxx 2010-04-25 07:57:39.233875000 +0900 @@ -27,7 +27,9 @@ #ifdef WIN32 diff --git a/hunspell/hunspell-solaris.patch b/hunspell/hunspell-solaris.patch index 37c5101364b4..3a5146250b99 100644 --- a/hunspell/hunspell-solaris.patch +++ b/hunspell/hunspell-solaris.patch @@ -1,5 +1,5 @@ ---- misc/hunspell-1.2.9.orig/src/tools/hunspell.cxx 2010-02-27 23:42:05.000000000 +0000 -+++ misc/build/hunspell-1.2.9/src/tools/hunspell.cxx 2010-02-27 23:43:02.000000000 +0000 +--- misc/hunspell-1.3.1.orig/src/tools/hunspell.cxx 2010-02-27 23:42:05.000000000 +0000 ++++ misc/build/hunspell-1.3.1/src/tools/hunspell.cxx 2010-02-27 23:43:02.000000000 +0000 @@ -10,6 +10,9 @@ #include "hunspell.hxx" #include "csutil.hxx" diff --git a/hunspell/hunspell-stacksmash.patch b/hunspell/hunspell-stacksmash.patch deleted file mode 100644 index 8765b6d784d3..000000000000 --- a/hunspell/hunspell-stacksmash.patch +++ /dev/null @@ -1,28 +0,0 @@ ---- misc/hunspell-1.2.9/src/hunspell/hunspell.cxx 2010-03-04 10:25:06.000000000 +0000 -+++ misc/build/hunspell-1.2.9/src/hunspell/hunspell.cxx 2010-03-04 10:25:38.000000000 +0000 -@@ -1665,7 +1665,7 @@ - if (!q2) return 0; // bad XML input - if (check_xml_par(q, "type=", "analyze")) { - int n = 0, s = 0; -- if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN)) n = analyze(slst, cw); -+ if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1)) n = analyze(slst, cw); - if (n == 0) return 0; - // convert the result to <code><a>ana1</a><a>ana2</a></code> format - for (int i = 0; i < n; i++) s+= strlen((*slst)[i]); -@@ -1686,13 +1686,13 @@ - (*slst)[0] = r; - return 1; - } else if (check_xml_par(q, "type=", "stem")) { -- if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN)) return stem(slst, cw); -+ if (get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1)) return stem(slst, cw); - } else if (check_xml_par(q, "type=", "generate")) { -- int n = get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN); -+ int n = get_xml_par(cw, strchr(q2, '>'), MAXWORDUTF8LEN - 1); - if (n == 0) return 0; - char * q3 = strstr(q2 + 1, "<word"); - if (q3) { -- if (get_xml_par(cw2, strchr(q3, '>'), MAXWORDUTF8LEN)) { -+ if (get_xml_par(cw2, strchr(q3, '>'), MAXWORDUTF8LEN - 1)) { - return generate(slst, cw, cw2); - } - } else { diff --git a/hunspell/hunspell-valgrind.patch b/hunspell/hunspell-valgrind.patch deleted file mode 100644 index 5ae1a86bdf14..000000000000 --- a/hunspell/hunspell-valgrind.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- misc/hunspell-1.2.9/tests/test.sh -+++ misc/build/hunspell-1.2.9/tests/test.sh -@@ -41,8 +41,8 @@ - if [ ! -d $TEMPDIR/badlogs ]; then - mkdir $TEMPDIR/badlogs - fi -- alias hunspell='valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/.libs/lt-hunspell' -- alias analyze='valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/.libs/lt-analyze' -+ alias hunspell='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/hunspell' -+ alias analyze='../libtool --mode=execute -dlopen ../src/hunspell/.libs/libhunspell*.la valgrind --tool=$VALGRIND --leak-check=yes --show-reachable=yes --log-file=$TEMPDIR/test.pid ../src/tools/analyze' - fi - - # Tests good words diff --git a/hunspell/hunspell-wntconfig.patch b/hunspell/hunspell-wntconfig.patch index 9b6bc9c3fbb2..1d35c362d1fd 100644 --- a/hunspell/hunspell-wntconfig.patch +++ b/hunspell/hunspell-wntconfig.patch @@ -1,4 +1,4 @@ ---- misc/hunspell-1.2.9/config.h 2010-02-25 14:38:38.000000000 +0000 -+++ misc/build/hunspell-1.2.9/config.h 2010-02-25 14:38:42.000000000 +0000 +--- misc/hunspell-1.3.1/config.h 2010-02-25 14:38:38.000000000 +0000 ++++ misc/build/hunspell-1.3.1/config.h 2010-02-25 14:38:42.000000000 +0000 @@ -1 +0,0 @@ -dummy diff --git a/hunspell/makefile.mk b/hunspell/makefile.mk index a4f7b0662006..440e63b56ec1 100644 --- a/hunspell/makefile.mk +++ b/hunspell/makefile.mk @@ -36,16 +36,13 @@ TARGET=hunspell # --- Files -------------------------------------------------------- -TARFILE_NAME=hunspell-1.2.9 -TARFILE_MD5=68dd2e8253d9a7930e9fd50e2d7220d0 +TARFILE_NAME=hunspell-1.3.1 +TARFILE_MD5=9ed97fce60a9a65852402248a6659492 ADDITIONAL_FILES+=config.h PATCH_FILES=\ hunspell-wntconfig.patch \ - hunspell-solaris.patch \ - hunspell-stacksmash.patch \ - hunspell-valgrind.patch \ - hunspell-1.2.9-crashfix.patch + hunspell-solaris.patch .IF "$(GUI)"=="UNX" |