summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2016-07-26 18:35:15 -0400
committerMichael Orlitzky <mjo@gentoo.org>2016-07-26 18:35:37 -0400
commita31726101fbd16c0520916c2e075012f36f13b93 (patch)
treeef2449a681ffffc2d238f599411d6cf63b3bfc56 /app-dicts/wordnet/files/wordnet-3.0-fix-indexing-bug-314799.patch
parentsys-kernel/hardened-sources: version bump to 4.6.4-r3 (diff)
downloadgentoo-a31726101fbd16c0520916c2e075012f36f13b93.tar.gz
gentoo-a31726101fbd16c0520916c2e075012f36f13b93.tar.bz2
gentoo-a31726101fbd16c0520916c2e075012f36f13b93.zip
app-dicts/wordnet: new revision fixing two bugs.
This package is unmaintained and has two open bugs. The first has a patch, thanks to Edgar Gonzàlez i Pellicer, which fixes a problem introduced by an earlier patch. It is now applied. The second bug reports that the package's SRC_URI is no longer valid, so I have updated it from the homepage. The ebuild was updated to EAPI=6 in the process. This allowed the removal of multilib.eclass in exchange for a call to eapply_user. Gentoo-Bug: 314799 Gentoo-Bug: 543946 Package-Manager: portage-2.2.28
Diffstat (limited to 'app-dicts/wordnet/files/wordnet-3.0-fix-indexing-bug-314799.patch')
-rw-r--r--app-dicts/wordnet/files/wordnet-3.0-fix-indexing-bug-314799.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-dicts/wordnet/files/wordnet-3.0-fix-indexing-bug-314799.patch b/app-dicts/wordnet/files/wordnet-3.0-fix-indexing-bug-314799.patch
new file mode 100644
index 00000000000..fafaa2c331d
--- /dev/null
+++ b/app-dicts/wordnet/files/wordnet-3.0-fix-indexing-bug-314799.patch
@@ -0,0 +1,20 @@
+diff -p -u -r WordNet-3.0/lib/morph.c WordNet-3.0-mine/lib/morph.c
+--- a/lib/morph.c 2010-04-12 13:53:04.000000000 +0200
++++ b/lib/morph.c 2010-04-12 13:54:53.000000000 +0200
+@@ -375,14 +375,14 @@ static char *exc_lookup(char *word, int
+ static char line[WORDBUF], *beglp, *endlp;
+ char *excline;
+
+- if (exc_fps[pos] == NULL)
++ if (exc_fps[pos-1] == NULL)
+ return(NULL);
+
+ /* first time through load line from exception file */
+ if(word != NULL){
+ if (strlen(word) > WORDBUF - 1)
+ return(NULL);
+- if ((excline = bin_search(word, exc_fps[pos])) != NULL) {
++ if ((excline = bin_search(word, exc_fps[pos-1])) != NULL) {
+ strcpy(line, excline);
+ endlp = strchr(line,' ');
+ } else