diff --git a/foma-gcc14.patch b/foma-gcc14.patch new file mode 100644 index 0000000..9ebb560 --- /dev/null +++ b/foma-gcc14.patch @@ -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) { + diff --git a/foma.changes b/foma.changes index b26c0fc..18901fe 100644 --- a/foma.changes +++ b/foma.changes @@ -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 diff --git a/foma.spec b/foma.spec index 775cbde..6eff4fe 100644 --- a/foma.spec +++ b/foma.spec @@ -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