From 5910fa0edfa9fa6e01f2538409d50b5a29b47aeca16a4034b4eada1fd4ab1269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 3 Oct 2024 18:06:42 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main wordcut revision e7488be60270bba083073bb0f0c6873c --- wordcut-gcc14.patch | 11 +++++++++++ wordcut.changes | 7 +++++++ wordcut.spec | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 wordcut-gcc14.patch 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