[packages/hfst-ospell] fix build with gcc 13

atler atler at pld-linux.org
Thu Jun 29 19:41:36 CEST 2023


commit e31ee285ff56598331cadf3cc2d301cb4c4af70e
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jun 29 19:18:46 2023 +0200

    fix build with gcc 13

 gcc-13.patch     | 20 ++++++++++++++++++++
 hfst-ospell.spec |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/hfst-ospell.spec b/hfst-ospell.spec
index 5448aad..cfe0562 100644
--- a/hfst-ospell.spec
+++ b/hfst-ospell.spec
@@ -9,6 +9,7 @@ Group:		Applications/Text
 Source0:	https://github.com/hfst/hfst-ospell/archive/v%{version}/hfstospell-%{version}.tar.gz
 # Source0-md5:	a24167e120746209b4096f199f1f7bb6
 Patch0:		%{name}-demos.patch
+Patch1:		gcc-13.patch
 URL:		http://hfst.github.io/
 BuildRequires:	autoconf >= 2.62
 BuildRequires:	automake >= 1:1.11
@@ -64,6 +65,7 @@ Statyczna biblioteka hfst-ospell.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/gcc-13.patch b/gcc-13.patch
new file mode 100644
index 0000000..ff54561
--- /dev/null
+++ b/gcc-13.patch
@@ -0,0 +1,20 @@
+--- hfst-ospell-0.5.3/hfst-ol.h.orig	2022-03-13 11:48:36.000000000 +0100
++++ hfst-ospell-0.5.3/hfst-ol.h	2023-06-29 19:15:49.581959666 +0200
+@@ -26,6 +26,7 @@
+ #include <vector>
+ #include <map>
+ #include <climits>
++#include <cstdint>
+ #include <cstdio>
+ #include <cstdlib>
+ #include <iostream>
+--- hfst-ospell-0.5.3/office.cc.orig	2022-03-13 11:48:36.000000000 +0100
++++ hfst-ospell-0.5.3/office.cc	2023-06-29 19:16:08.511397682 +0200
+@@ -42,6 +42,7 @@
+ #include <cmath>
+ #include <cerrno>
+ #include <cctype>
++#include <cstdint>
+ #include <getopt.h>
+ 
+ #define U_CHARSET_IS_UTF8 1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hfst-ospell.git/commitdiff/e31ee285ff56598331cadf3cc2d301cb4c4af70e



More information about the pld-cvs-commit mailing list