[packages/cmuclmtk] Rel 4
arekm
arekm at pld-linux.org
Wed May 20 21:10:50 CEST 2026
commit 4e5fc6c80364af3108ce3506b34e911b81720357
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 20 21:10:34 2026 +0200
Rel 4
cmuclmtk-implicit-decls.patch | 53 +++++++++++++++++++++++++++++++++++++++++++
cmuclmtk.spec | 4 +++-
2 files changed, 56 insertions(+), 1 deletion(-)
---
diff --git a/cmuclmtk.spec b/cmuclmtk.spec
index dc85f10..5fd9c90 100644
--- a/cmuclmtk.spec
+++ b/cmuclmtk.spec
@@ -7,12 +7,13 @@ Summary: CMU-Cambridge Language Modeling Toolkit
Summary(pl.UTF-8): CMU-Cambridge Language Modeling Toolkit - narzędzia do tworzenia modeli językowych
Name: cmuclmtk
Version: 0.7
-Release: 3
+Release: 4
License: BSD, parts for research only
Group: Libraries
Source0: http://downloads.sourceforge.net/cmusphinx/%{name}-%{version}.tar.gz
# Source0-md5: 21bfb116d309e43e61def3692f98cdac
Patch0: %{name}-missing.patch
+Patch1: %{name}-implicit-decls.patch
URL: https://cmusphinx.github.io/
%if %{with perl}
BuildRequires: perl-devel
@@ -67,6 +68,7 @@ językowych.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%configure \
diff --git a/cmuclmtk-implicit-decls.patch b/cmuclmtk-implicit-decls.patch
new file mode 100644
index 0000000..ab1915f
--- /dev/null
+++ b/cmuclmtk-implicit-decls.patch
@@ -0,0 +1,53 @@
+Fix implicit function declarations - GCC 14 makes them errors by default.
+
+- rr_mkdtemp.c needs <sys/stat.h> (mkdir) and <sys/types.h>
+- text2wngram.c needs <unistd.h> (rmdir) and ac_lmfunc_impl.h (merge_tempfiles)
+- text2idngram.c needs <unistd.h> (rmdir)
+- wngram2idngram.c needs <unistd.h> (rmdir)
+
+--- cmuclmtk-0.7/src/libs/rr_mkdtemp.c.orig
++++ cmuclmtk-0.7/src/libs/rr_mkdtemp.c
+@@ -36,6 +36,8 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <sys/stat.h>
++#include <sys/types.h>
+
+ #include <../win32/compat.h>
+
+--- cmuclmtk-0.7/src/programs/text2wngram.c.orig
++++ cmuclmtk-0.7/src/programs/text2wngram.c
+@@ -41,10 +41,12 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <errno.h>
++#include <unistd.h>
+
+ #include "../liblmest/toolkit.h"
+ #include "../libs/pc_general.h"
+ #include "../libs/general.h"
++#include "../libs/ac_lmfunc_impl.h"
+ #include "../win32/compat.h"
+
+ int cmp_strings(const void *string1,const void *string2) {
+--- cmuclmtk-0.7/src/programs/text2idngram.c.orig
++++ cmuclmtk-0.7/src/programs/text2idngram.c
+@@ -53,6 +53,7 @@
+ #include <string.h>
+ #include <sys/types.h>
+ #include <errno.h>
++#include <unistd.h>
+
+ #include "../liblmest/toolkit.h"
+ #include "../libs/general.h"
+--- cmuclmtk-0.7/src/programs/wngram2idngram.c.orig
++++ cmuclmtk-0.7/src/programs/wngram2idngram.c
+@@ -47,6 +47,7 @@
+ #include <string.h>
+ #include <sys/types.h>
+ #include <errno.h>
++#include <unistd.h>
+
+ #include "../liblmest/toolkit.h"
+ #include "../libs/general.h"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cmuclmtk.git/commitdiff/4e5fc6c80364af3108ce3506b34e911b81720357
More information about the pld-cvs-commit
mailing list