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
This commit is contained in:
Danilo Spinella 2023-03-09 10:38:28 +00:00 committed by Git OBS Bridge
parent bde7824c78
commit 51e8b4b48c
3 changed files with 29 additions and 1 deletions

21
gcc13-fix.patch Normal file
View File

@ -0,0 +1,21 @@
From 7481bffbf622bc9aee3547183fbe8db9cf8b22ce Mon Sep 17 00:00:00 2001
From: Tino Didriksen <mail@tinodidriksen.com>
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 <climits>
#include <cstdio>
#include <cstdlib>
+#include <cstdint>
#include <iostream>
#include <cstring>
#include <set>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 9 07:04:33 UTC 2023 - Martin Liška <mliska@suse.cz>
- Add upstream patch gcc13-fix.patch in order to support GCC 13.
-------------------------------------------------------------------
Fri Mar 27 14:25:33 UTC 2020 - Martin Liška <mliska@suse.cz>

View File

@ -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