On Thu, Aug 03 2017, Stuart Henderson <[email protected]> wrote:
> There have been a few things broken around locale handling in various
> ports, does anyone have a handle on what's going on?

This is not a locale-related problem, afaik, just a crash caused by
wordnet accessing an element past the end of the exc_fps array.  I don't
understand why patch-lib_morph_c currently resizes this array, so the
patch below fixes the problem but might not be correct.

Maybe wordnet should be removed?
http://wordnet.princeton.edu/wordnet/download/current-version/#nix
doesn't list newer source tarballs.


Index: Makefile
===================================================================
RCS file: /d/cvs/ports/misc/wordnet/Makefile,v
retrieving revision 1.13
diff -u -p -r1.13 Makefile
--- Makefile    9 Apr 2016 11:42:09 -0000       1.13
+++ Makefile    8 Aug 2017 05:33:26 -0000
@@ -5,7 +5,7 @@ COMMENT=                browser for a large lexical da
 V=                     3.0
 DISTNAME=              WordNet-$V
 PKGNAME=               wordnet-$V
-REVISION=              6
+REVISION=              7
 
 CATEGORIES=            misc
 
Index: patches/patch-lib_morph_c
===================================================================
RCS file: /d/cvs/ports/misc/wordnet/patches/patch-lib_morph_c,v
retrieving revision 1.1
diff -u -p -r1.1 patch-lib_morph_c
--- patches/patch-lib_morph_c   1 Sep 2008 20:02:53 -0000       1.1
+++ patches/patch-lib_morph_c   8 Aug 2017 05:26:27 -0000
@@ -1,7 +1,8 @@
 $OpenBSD: patch-lib_morph_c,v 1.1 2008/09/01 20:02:53 sthen Exp $
---- lib/morph.c.orig   Wed Jan  3 21:51:35 2007
-+++ lib/morph.c        Mon Sep  1 20:53:39 2008
-@@ -51,24 +51,24 @@ static struct {
+Index: lib/morph.c
+--- lib/morph.c.orig
++++ lib/morph.c
+@@ -51,21 +51,21 @@ static struct {
      char *str;
      int strlen;
  } prepositions[NUMPREPS] = {
@@ -37,11 +38,7 @@ $OpenBSD: patch-lib_morph_c,v 1.1 2008/0
 +    { "between", 7 }
  };
  
--static FILE *exc_fps[NUMPARTS + 1];
-+static FILE *exc_fps[NUMPARTS];
- 
- static int do_init();
- static int strend(char *, char *);
+ static FILE *exc_fps[NUMPARTS + 1];
 @@ -100,7 +100,7 @@ int re_morphinit(void)
  {
      int i;



-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to