From d6063d2d30bdd5f67745ae04756cc1ca3656d2c5 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sun, 15 May 2016 17:57:26 +0200 Subject: [PATCH 1/4] Fix gtkdoc build - Replace hand-written gtk-doc version detection with GTK_DOC_CHECK([0.9]) macro in configure.in - Upgrade doc/ots-docs.sgml DocBook DTD from V3.1 to V4.1.2 with proper declarations --- configure.in | 21 +-------------------- doc/ots-docs.sgml | 16 +++++++++------- 2 files changed, 10 insertions(+), 27 deletions(-) diff --git a/configure.in b/configure.in index eebb2aa..1750a19 100644 --- a/configure.in +++ b/configure.in @@ -129,27 +129,8 @@ AC_SUBST(HTML_DIR) AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false) -gtk_doc_min_version=0.9 if $GTKDOC ; then - gtk_doc_version=`gtkdoc-mkdb --version` - AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version]) - - IFS="${IFS= }"; gtk_save_IFS="$IFS"; IFS="." - set $gtk_doc_version - for min in $gtk_doc_min_version ; do - cur=$1; shift - if test -z $min ; then break; fi - if test -z $cur ; then GTKDOC=false; break; fi - if test $cur -gt $min ; then break ; fi - if test $cur -lt $min ; then GTKDOC=false; break ; fi - done - IFS="$gtk_save_IFS" - - if $GTKDOC ; then - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - fi +GTK_DOC_CHECK([0.9]) fi AC_CHECK_PROG(DB2HTML, db2html, true, false) diff --git a/doc/ots-docs.sgml b/doc/ots-docs.sgml index 199983e..e9a64e5 100644 --- a/doc/ots-docs.sgml +++ b/doc/ots-docs.sgml @@ -1,11 +1,13 @@ - - + + - - - - + + + + ]> From fe6c2c446614d10e83e1f01051c11356a9983920 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Wed, 15 Jan 2014 18:46:29 +0100 Subject: [PATCH 2/4] Remove duplicate en.xml from dictionary list --- dic/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dic/Makefile.am b/dic/Makefile.am index a74dbf1..f2ec141 100644 --- a/dic/Makefile.am +++ b/dic/Makefile.am @@ -1,7 +1,7 @@ DICTS=bg.xml ca.xml cs.xml cy.xml da.xml de.xml el.xml en.xml eo.xml es.xml \ et.xml eu.xml fi.xml fr.xml ga.xml gl.xml he.xml hu.xml ia.xml id.xml \ is.xml it.xml lv.xml mi.xml ms.xml mt.xml nl.xml nn.xml pl.xml pt.xml \ - ro.xml ru.xml sv.xml tl.xml tr.xml uk.xml yi.xml en.xml + ro.xml ru.xml sv.xml tl.xml tr.xml uk.xml yi.xml pkgdata_DATA = $(DICTS) From 6e2521cbe71e027fc15d13e8f3a5837ed6a342fc Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Sat, 16 Mar 2024 19:18:50 +0500 Subject: [PATCH 3/4] Fix the Makefile dependencies Use relative path libots-1.la instead of $(top_builddir)/src/libots-1.la for ots_LDADD. Debian: https://bugs.debian.org/906498 --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 504c3d2..5349897 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -43,7 +43,7 @@ libots_1_include_HEADERS = \ libots.h bin_PROGRAMS=ots -ldadd = $(top_builddir)/src/libots-1.la $(OTS_LIBS) $(POPT_LIBS) +ldadd = libots-1.la $(OTS_LIBS) $(POPT_LIBS) ots_LDADD=$(ldadd) From 75ae5115b3761ee5da19061b4018d35c28ed99ea Mon Sep 17 00:00:00 2001 From: Andrey Rakhmatullin Date: Sat, 16 Mar 2024 19:20:49 +0500 Subject: [PATCH 4/4] Add missing header includes Add #include to src/grader-tf.c --- src/grader-tf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/grader-tf.c b/src/grader-tf.c index d05b19c..0de4687 100644 --- a/src/grader-tf.c +++ b/src/grader-tf.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "libots.h" /*Grader - using the Term frequency algorithm. Will give each line a score*/