diff options
author | gutteridge <gutteridge@pkgsrc.org> | 2020-04-16 14:45:14 +0000 |
---|---|---|
committer | gutteridge <gutteridge@pkgsrc.org> | 2020-04-16 14:45:14 +0000 |
commit | 1649977d8bc67810406fbb5fa8d3d0608be6ab63 (patch) | |
tree | 63e3b9a21b97d89281816925b94454355e83a3ff /textproc | |
parent | daba16b6ad8783af3114a76caba42ac48a976925 (diff) | |
download | pkgsrc-1649977d8bc67810406fbb5fa8d3d0608be6ab63.tar.gz |
link-grammar: fix macOS and SunOS builds
A vestigial reference to removed functionality was causing a failure to
link on macOS and SunOS. Separately, an expectation about the presence
of strtod_l(3) was causing a build failure on SunOS.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/link-grammar/distinfo | 4 | ||||
-rw-r--r-- | textproc/link-grammar/patches/patch-link-grammar_link-grammar.def | 13 | ||||
-rw-r--r-- | textproc/link-grammar/patches/patch-link-grammar_utilities.c | 15 |
3 files changed, 31 insertions, 1 deletions
diff --git a/textproc/link-grammar/distinfo b/textproc/link-grammar/distinfo index 8286cac92b6..5ddc9ae6844 100644 --- a/textproc/link-grammar/distinfo +++ b/textproc/link-grammar/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2020/03/30 23:20:20 gutteridge Exp $ +$NetBSD: distinfo,v 1.10 2020/04/16 14:45:14 gutteridge Exp $ SHA1 (link-grammar-5.8.0.tar.gz) = 8a874ea7214cf635d2edb064bdaf368577c08efa RMD160 (link-grammar-5.8.0.tar.gz) = ef8b6eca527754afc12991f84f04f8f966e575bc @@ -6,3 +6,5 @@ SHA512 (link-grammar-5.8.0.tar.gz) = 1262e2faf1de6f05a62f9d622f43c02253b4c241342 Size (link-grammar-5.8.0.tar.gz) = 3782125 bytes SHA1 (patch-aa) = 3be918c26b639442b56efab2e9416974f31969c5 SHA1 (patch-configure) = 0131e74f9f51bb380ab91d1cfdba2600fcee131a +SHA1 (patch-link-grammar_link-grammar.def) = 1df6fefa9828c969d71277202158b2aebc5760f7 +SHA1 (patch-link-grammar_utilities.c) = 973109d4da35bd10b9e827d4eace66963aea40a6 diff --git a/textproc/link-grammar/patches/patch-link-grammar_link-grammar.def b/textproc/link-grammar/patches/patch-link-grammar_link-grammar.def new file mode 100644 index 00000000000..1f5f4d68136 --- /dev/null +++ b/textproc/link-grammar/patches/patch-link-grammar_link-grammar.def @@ -0,0 +1,13 @@ +$NetBSD: patch-link-grammar_link-grammar.def,v 1.1 2020/04/16 14:45:15 gutteridge Exp $ + +Fix build on macOS and SunOS. +https://github.com/opencog/link-grammar/pull/1092 + +--- link-grammar/link-grammar.def.orig 2020-02-29 01:44:12.000000000 +0000 ++++ link-grammar/link-grammar.def +@@ -118,5 +118,4 @@ lg_error_clearall + lg_error_flush + lg_exp_stringify + prt_error +-regex_tokenizer_test + utf8_strwidth diff --git a/textproc/link-grammar/patches/patch-link-grammar_utilities.c b/textproc/link-grammar/patches/patch-link-grammar_utilities.c new file mode 100644 index 00000000000..21db21e3abb --- /dev/null +++ b/textproc/link-grammar/patches/patch-link-grammar_utilities.c @@ -0,0 +1,15 @@ +$NetBSD: patch-link-grammar_utilities.c,v 1.1 2020/04/16 14:45:15 gutteridge Exp $ + +Fix SunOS build. + +--- link-grammar/utilities.c.orig 2020-02-29 01:44:12.000000000 +0000 ++++ link-grammar/utilities.c +@@ -757,7 +757,7 @@ bool strtodC(const char *s, float *r) + { + char *err; + +-#ifdef HAVE_LOCALE_T ++#if defined(HAVE_LOCALE_T) && !defined(__sun__) + double val = strtod_l(s, &err, get_C_LC_NUMERIC()); + #else + /* dictionary_setup_locale() invokes setlocale(LC_NUMERIC, "C") */ |