2 Commits

4 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
--- curses-bsd4.4.orig/tstp.c 2025-04-30 15:23:51.127526307 +0000
+++ curses-bsd4.4/tstp.c 2025-04-30 15:24:43.474605947 +0000
@@ -103,7 +103,7 @@ __stop_signal_handler(signo)
(void)sigprocmask(SIG_SETMASK, &oset, NULL);
}
-static void (*otstpfn)() = SIG_DFL;
+static void (*otstpfn)(int) = SIG_DFL;
/*
* Set the TSTP handler.

13
termcap-gcc15.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: termcap-2.0.8/tparam.c
===================================================================
--- termcap-2.0.8.orig/tparam.c
+++ termcap-2.0.8/tparam.c
@@ -87,7 +87,7 @@ xrealloc (ptr, size)
The fourth and following args to tparam serve as the parameter values. */
-static char *tparam1 ();
+static char *tparam1 (char *, char *, int, char *, char *, register int *);
/* VARARGS 2 */
char *

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 30 15:29:34 UTC 2025 - pgajdos@suse.com
- added patches
+ termcap-curses-gcc15.patch
+ termcap-gcc15.patch
-------------------------------------------------------------------
Mon Feb 26 12:35:10 UTC 2024 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package termcap
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -37,6 +37,8 @@ Patch0: termcap-2.0.8.dif
Patch1: curses-bsd4.4-linux.patch
Patch2: termcap-2.0.8-setuid.patch
Patch3: termcap-2.0.8-fix-tc.patch
Patch4: termcap-gcc15.patch
Patch5: termcap-curses-gcc15.patch
%description
The termcap and curses libraries.
@@ -87,8 +89,10 @@ and libraries needed to build termcap based applications.
%patch -P 0 -p0
%patch -P 2 -p1 -b .setuid
%patch -P 3 -p1 -b .tc
%patch -P 4 -p1
cd ../curses-bsd4.4
%patch -P 1 -p0
%patch -P 5 -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects