[packages/link-grammar] add missing includes
atler
atler at pld-linux.org
Thu Aug 13 20:59:18 CEST 2026
commit 6b719f97052bbf3ca8949715e97d61c52a86e36a
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Aug 13 20:55:59 2026 +0200
add missing includes
includes.patch | 39 +++++++++++++++++++++++++++++++++++++++
link-grammar.spec | 2 ++
2 files changed, 41 insertions(+)
---
diff --git a/link-grammar.spec b/link-grammar.spec
index 819f725..0fdfc95 100644
--- a/link-grammar.spec
+++ b/link-grammar.spec
@@ -16,6 +16,7 @@ Group: Libraries
Source0: http://www.nl.abisource.com/downloads/link-grammar/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 8550f72456a51d495ee020f9ece89411
Patch0: %{name}-modules.patch
+Patch1: includes.patch
URL: http://www.link.cs.cmu.edu/link/
%{?with_java:BuildRequires: ant}
BuildRequires: autoconf >= 2.50
@@ -120,6 +121,7 @@ Wiązanie Pythona 3 do biblioteki link-grammar.
%prep
%setup -q
%patch -P 0 -p1
+%patch -P 1 -p1
%build
%{__libtoolize}
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..3f228b2
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,39 @@
+--- link-grammar-5.12.3/link-grammar/dict-common/file-utils.c.orig 2023-01-15 07:56:37.000000000 +0100
++++ link-grammar-5.12.3/link-grammar/dict-common/file-utils.c 2026-08-13 20:47:39.373894416 +0200
+@@ -26,6 +26,10 @@
+ #include <stdlib.h>
+ #include <string.h>
+
++#ifdef HAVE_THREADS_H
++#include <threads.h>
++#endif
++
+ #include "file-utils.h"
+ #include "error.h" // verbosity_level
+ #include "link-includes.h"
+--- link-grammar-5.12.3/link-grammar/dict-common/print-dict.c.orig 2023-03-09 14:40:10.000000000 +0100
++++ link-grammar-5.12.3/link-grammar/dict-common/print-dict.c 2026-08-13 20:48:01.980469451 +0200
+@@ -15,6 +15,10 @@
+ #include <inttypes.h> // format macros
+ #include <math.h> // fabsf signbit
+
++#ifdef HAVE_THREADS_H
++#include <threads.h>
++#endif
++
+ #include "api-structures.h" // Parse_Options_s (seems hacky to me)
+ #include "dict-common.h"
+ #include "dict-defines.h"
+--- link-grammar-5.12.3/link-grammar/error.c.orig 2023-01-16 05:38:58.000000000 +0100
++++ link-grammar-5.12.3/link-grammar/error.c 2026-08-13 20:48:37.120328319 +0200
+@@ -16,6 +16,10 @@
+ #include <string.h>
+ #include <stdarg.h>
+
++#ifdef HAVE_THREADS_H
++#include <threads.h>
++#endif
++
+ #include "error.h"
+ #include "api-structures.h" // For Sentence_s
+ #include "print/print.h" // For print_sentence_context()
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/link-grammar.git/commitdiff/6b719f97052bbf3ca8949715e97d61c52a86e36a
More information about the pld-cvs-commit
mailing list