Accepting request 1220356 from editors

- Add 0001-build-fix-configure-failure-in-gcc-14.patch

OBS-URL: https://build.opensuse.org/request/show/1220356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libt3window?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2024-11-03 06:18:05 +00:00 committed by Git OBS Bridge
commit 1aaf40dea6
5 changed files with 52 additions and 4 deletions

View File

@ -0,0 +1,37 @@
From 1b808e79311e016f8af3d25ecc64f3de26279f1a Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
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 <stdio.h>
#include <stdlib.h>
#include <curses.h>
+#include <term.h>
int main(int argc, char *argv[]) {
int args[9], error, fd;
--
2.47.0

4
_scmsync.obsinfo Normal file
View File

@ -0,0 +1,4 @@
mtime: 1730584305
commit: 1666afb115b755db9f2c113fec65324c6302aeb73101c7d7299a0b285fdb77af
url: https://src.opensuse.org/jengelh/libt3window
revision: master

3
build.specials.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c458123cff694abc1a65ab5a02a5a8fa171a729e72793a8bdeaae7d716f56bc4
size 256

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 2 21:51:13 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Add 0001-build-fix-configure-failure-in-gcc-14.patch
-------------------------------------------------------------------
Mon Aug 29 09:49:32 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -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*