diff --git a/0001-build-fix-configure-failure-in-gcc-14.patch b/0001-build-fix-configure-failure-in-gcc-14.patch new file mode 100644 index 0000000..4e5bbaa --- /dev/null +++ b/0001-build-fix-configure-failure-in-gcc-14.patch @@ -0,0 +1,37 @@ +From 1b808e79311e016f8af3d25ecc64f3de26279f1a Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Sat, 2 Nov 2024 22:48:57 +0100 +Subject: [PATCH] build: fix configure failure in gcc-14 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +References: https://github.com/gphalkes/t3window/pull/2 + +``` +$ ./configure +[ 5s] Checking for curses header file... no +[ 5s] !! Can not find curses/tinfo library. The curses/tinfo library is required to compile libt3key. +$ cat config.log +… +.config.c:8:13: error: implicit declaration of function "setupterm"; +did you mean ‘set_term’? [-Wimplicit-function-declaration] +``` +--- + dist/config.pkg | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/dist/config.pkg b/dist/config.pkg +index be5415e..c397384 100644 +--- a/dist/config.pkg ++++ b/dist/config.pkg +@@ -121,6 +121,7 @@ EOF + #include + #include + #include ++#include + + int main(int argc, char *argv[]) { + int args[9], error, fd; +-- +2.47.0 + diff --git a/libt3window.changes b/libt3window.changes index 92f9566..d4610f5 100644 --- a/libt3window.changes +++ b/libt3window.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 2 21:51:13 UTC 2024 - Jan Engelhardt + +- Add 0001-build-fix-configure-failure-in-gcc-14.patch + ------------------------------------------------------------------- Mon Aug 29 09:49:32 UTC 2022 - Jan Engelhardt diff --git a/libt3window.spec b/libt3window.spec index 281e22b..ae16861 100644 --- a/libt3window.spec +++ b/libt3window.spec @@ -1,7 +1,7 @@ # # spec file for package libt3window # -# 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 @@ -24,10 +24,10 @@ Summary: The Tilde Toolkit's window-based terminal program library License: GPL-3.0-only Group: Development/Libraries/C and C++ URL: https://os.ghalkes.nl/t3/libt3window.html - #Git-Clone: https://github.com/gphalkes/t3widget Source: https://os.ghalkes.nl/dist/%name-%version.tar.bz2 Source2: https://os.ghalkes.nl/dist/%name-%version.tar.bz2.sig +Patch1: 0001-build-fix-configure-failure-in-gcc-14.patch Source3: %name.keyring BuildRequires: fdupes BuildRequires: gettext-tools @@ -80,8 +80,7 @@ export CC=gcc rm -f "%buildroot/%_libdir"/*.la %fdupes %buildroot/%_prefix -%post -p /sbin/ldconfig -n %lname -%postun -p /sbin/ldconfig -n %lname +%ldconfig_scriptlets -n %lname %files -n %lname %_libdir/libt3window.so.0*