From 51e8b4b48c91cf030378683b6f6d785a62f8cb17c360e03562919961c35dd105 Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Thu, 9 Mar 2023 10:38:28 +0000 Subject: [PATCH] Accepting request 1070337 from home:marxin:branches:LibreOffice:Factory - Add upstream patch gcc13-fix.patch in order to support GCC 13. OBS-URL: https://build.opensuse.org/request/show/1070337 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/hfst-ospell?expand=0&rev=16 --- gcc13-fix.patch | 21 +++++++++++++++++++++ hfst-ospell.changes | 5 +++++ hfst-ospell.spec | 4 +++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 gcc13-fix.patch diff --git a/gcc13-fix.patch b/gcc13-fix.patch new file mode 100644 index 0000000..543f97c --- /dev/null +++ b/gcc13-fix.patch @@ -0,0 +1,21 @@ +From 7481bffbf622bc9aee3547183fbe8db9cf8b22ce Mon Sep 17 00:00:00 2001 +From: Tino Didriksen +Date: Sun, 3 Jul 2022 23:16:52 +0200 +Subject: [PATCH] Include cstdint (fixes #57) + +--- + hfst-ol.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/hfst-ol.h b/hfst-ol.h +index 0a83ec5..ee59b14 100644 +--- a/hfst-ol.h ++++ b/hfst-ol.h +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/hfst-ospell.changes b/hfst-ospell.changes index 13f3171..e22ae3f 100644 --- a/hfst-ospell.changes +++ b/hfst-ospell.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 9 07:04:33 UTC 2023 - Martin Liška + +- Add upstream patch gcc13-fix.patch in order to support GCC 13. + ------------------------------------------------------------------- Fri Mar 27 14:25:33 UTC 2020 - Martin Liška diff --git a/hfst-ospell.spec b/hfst-ospell.spec index 7a2cd15..f3a95ea 100644 --- a/hfst-ospell.spec +++ b/hfst-ospell.spec @@ -1,7 +1,7 @@ # # spec file for package hfst-ospell # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,7 @@ URL: https://hfst.github.io/ Source0: https://github.com/hfst/%{name}/releases/download/v%{version}/%{_name}-%{version}.tar.gz Source99: baselibs.conf Patch0: gcc10-Fix-a-typo-in-wide-string-conversion-function-49.patch +Patch1: gcc13-fix.patch BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: pkgconfig @@ -58,6 +59,7 @@ Development headers and libraries for hfst-ospell %prep %setup -q -n %{_name}-%{version} %patch0 -p1 +%patch1 -p1 %build # disable libxml++ as upstream requires version 2.6