diff --git a/wordcut-gcc14.patch b/wordcut-gcc14.patch new file mode 100644 index 0000000..830dd28 --- /dev/null +++ b/wordcut-gcc14.patch @@ -0,0 +1,11 @@ +Index: wordcut-0.5.1b2/wordcut/xmalloc.h +=================================================================== +--- wordcut-0.5.1b2.orig/wordcut/xmalloc.h ++++ wordcut-0.5.1b2/wordcut/xmalloc.h +@@ -37,5 +37,6 @@ + #ifndef __XMALLOC_H__ + #define __XMALLOC_H__ + void* xmalloc(size_t size); ++void* xrealloc(void *ptr,size_t size); + #endif + diff --git a/wordcut.changes b/wordcut.changes index dece6b2..0112586 100644 --- a/wordcut.changes +++ b/wordcut.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue May 14 06:34:35 UTC 2024 - pgajdos@suse.com + +- added patches + fix build with gcc14 + + wordcut-gcc14.patch + ------------------------------------------------------------------- Tue May 30 10:55:00 UTC 2023 - Frederic Crozat diff --git a/wordcut.spec b/wordcut.spec index 7d66cb2..77fe6cc 100644 --- a/wordcut.spec +++ b/wordcut.spec @@ -1,7 +1,7 @@ # # spec file for package wordcut # -# Copyright (c) 2023 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 @@ Group: Development/Libraries/C and C++ URL: https://thaiwordseg.sourceforge.net/ Source0: https://downloads.sourceforge.net/project/thaiwordseg/wordcut/wordcut-%{version}/wordcut-%{version}.tar.gz Patch0: bugzilla-152315-locale-variable-used-before-set.patch +# build with gcc14 +Patch1: wordcut-gcc14.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libtool BuildRequires: pkgconfig