forked from pool/libt3window
Add 0001-build-fix-configure-failure-in-gcc-14.patch
This commit is contained in:
parent
e05d5dea34
commit
1666afb115
37
0001-build-fix-configure-failure-in-gcc-14.patch
Normal file
37
0001-build-fix-configure-failure-in-gcc-14.patch
Normal 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
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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*
|
||||
|
Loading…
Reference in New Issue
Block a user