Accepting request 1173656 from home:pgajdos

- added patches
  fix 9a99d2d418
  + foma-gcc14.patch

OBS-URL: https://build.opensuse.org/request/show/1173656
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/foma?expand=0&rev=18
This commit is contained in:
Fridrich Strba 2024-05-14 06:41:56 +00:00 committed by Git OBS Bridge
parent 02f5f9f3b7
commit 5fdec5dfeb
3 changed files with 24 additions and 1 deletions

14
foma-gcc14.patch Normal file
View File

@ -0,0 +1,14 @@
diff --git a/foma/io.c b/foma/io.c
index b7bf69b..da1c57a 100644
--- a/foma.orig/io.c
+++ a/foma/io.c
@@ -999,7 +999,7 @@ static BOM BOM_codes[] = {
{ { 0x00, 0x00, 0xFE, 0xFF }, 4, "UTF-32BE" },
{ { 0xFF, 0xFE }, 2, "UTF16-LE" },
{ { 0xFE, 0xFF }, 2, "UTF16-BE" },
- { NULL, 0, NULL },
+ { { 0, } , 0, NULL },
};
BOM *check_BOM(char *buffer) {

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 13 12:10:56 UTC 2024 - pgajdos@suse.com
- added patches
fix https://github.com/mhulden/foma/commit/9a99d2d41809422080606bb49531b38ce1e2111a
+ foma-gcc14.patch
-------------------------------------------------------------------
Sat Aug 27 07:27:45 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package foma
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,6 +26,8 @@ License: Apache-2.0
URL: https://fomafst.github.io/
Source0: foma-%{version}.tar.xz
Patch0: foma-harden-build.patch
# https://github.com/mhulden/foma/commit/9a99d2d41809422080606bb49531b38ce1e2111a
Patch1: foma-gcc14.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: ncurses-devel