summaryrefslogblamecommitdiff
path: root/system/ncurses/ncurses-6.3-20211115.patch
blob: 011e7d5a63a9767eb0709b146351d8738cf20625 (plain) (tree)
































































































































































































































                                                                                                   
# ncurses 6.3 - patch 20211115 - Thomas E. Dickey
#
# ------------------------------------------------------------------------------
#
# Ncurses 6.3 is at
# 	ftp://ftp.invisible-island.net/ncurses/
#	https://invisible-mirror.net/archives/ncurses/
#	https://ftp.gnu.org/gnu/ncurses/
#
# Patches for ncurses 6.3 can be found at
# 	ftp://ftp.invisible-island.net/ncurses//6.3
#	https://invisible-mirror.net/archives/ncurses//6.3
#
# ------------------------------------------------------------------------------
# ftp://ftp.invisible-island.net/ncurses//6.3/ncurses-6.3-20211115.patch.gz
# patch by Thomas E. Dickey <dickey@invisible-island.net>
# created  Tue Nov 16 00:54:00 UTC 2021
# ------------------------------------------------------------------------------
# NEWS                             |    6 +++++-
# VERSION                          |    2 +-
# dist.mk                          |    4 ++--
# ncurses/base/lib_delwin.c        |    4 ++--
# ncurses/tinfo/lib_tparm.c        |    4 +++-
# package/debian-mingw/changelog   |    4 ++--
# package/debian-mingw64/changelog |    4 ++--
# package/debian/changelog         |    4 ++--
# package/mingw-ncurses.nsi        |    4 ++--
# package/mingw-ncurses.spec       |    2 +-
# package/ncurses.spec             |    2 +-
# package/ncursest.spec            |    2 +-
# 12 files changed, 24 insertions(+), 18 deletions(-)
# ------------------------------------------------------------------------------
Index: NEWS
Prereq:  1.3743 
--- ncurses-6.3-20211113+/NEWS	2021-11-14 00:34:58.000000000 +0000
+++ ncurses-6.3-20211115/NEWS	2021-11-16 00:26:15.000000000 +0000
@@ -26,7 +26,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.3743 2021/11/14 00:34:58 tom Exp $
+-- $Id: NEWS,v 1.3745 2021/11/16 00:26:15 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -46,6 +46,10 @@
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
+20211115
+	+ fix memory-leak in delwin for pads (report by Werner Fink, OpenSUSE
+	  #1192668, cf:  20211106),
+
 20211113
 	+ minor clarification to clear.1 (Debian #999437).
 	+ add xterm+sl-alt, use that in foot+base (report by Jonas Grosse
Index: VERSION
--- ncurses-6.3-20211113+/VERSION	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/VERSION	2021-11-15 23:51:41.000000000 +0000
@@ -1 +1 @@
-5:0:10	6.3	20211113
+5:0:10	6.3	20211115
Index: dist.mk
Prereq:  1.1449 
--- ncurses-6.3-20211113+/dist.mk	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/dist.mk	2021-11-15 23:51:41.000000000 +0000
@@ -26,7 +26,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.1449 2021/11/13 11:06:04 tom Exp $
+# $Id: dist.mk,v 1.1450 2021/11/15 23:51:41 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -38,7 +38,7 @@
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 3
-NCURSES_PATCH = 20211113
+NCURSES_PATCH = 20211115
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
Index: ncurses/base/lib_delwin.c
Prereq:  1.22 
--- ncurses-6.3-20211113+/ncurses/base/lib_delwin.c	2021-11-06 21:54:14.000000000 +0000
+++ ncurses-6.3-20211115/ncurses/base/lib_delwin.c	2021-11-15 23:05:32.000000000 +0000
@@ -43,7 +43,7 @@
 
 #include <curses.priv.h>
 
-MODULE_ID("$Id: lib_delwin.c,v 1.22 2021/11/06 21:54:14 tom Exp $")
+MODULE_ID("$Id: lib_delwin.c,v 1.23 2021/11/15 23:05:32 tom Exp $")
 
 static bool
 cannot_delete(WINDOW *win)
@@ -83,7 +83,7 @@
 	    result = ERR;
 	} else if (IS_PAD(win)) {
 	    win->_parent = NULL;
-	    result = OK;
+	    result = _nc_freewin(win);
 	} else {
 #if NCURSES_SP_FUNCS
 	    SCREEN *sp = _nc_screen_of(win);
Index: ncurses/tinfo/lib_tparm.c
Prereq:  1.134 
--- ncurses-6.3-20211113+/ncurses/tinfo/lib_tparm.c	2021-08-21 21:52:08.000000000 +0000
+++ ncurses-6.3-20211115/ncurses/tinfo/lib_tparm.c	2021-11-15 23:31:31.000000000 +0000
@@ -53,7 +53,7 @@
 #include <ctype.h>
 #include <tic.h>
 
-MODULE_ID("$Id: lib_tparm.c,v 1.134 2021/08/21 21:52:08 tom Exp $")
+MODULE_ID("$Id: lib_tparm.c,v 1.135 2021/11/15 23:31:31 tom Exp $")
 
 /*
  *	char *
@@ -209,6 +209,8 @@
 static int
 tparm_error(TPARM_STATE *tps, const char *message)
 {
+    (void) tps;
+    (void) message;
     DEBUG(2, ("%s: %s", message, _nc_visbuf(TPS(tparam_base))));
     return ++_nc_tparm_err;
 }
Index: package/debian-mingw/changelog
--- ncurses-6.3-20211113+/package/debian-mingw/changelog	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/package/debian-mingw/changelog	2021-11-15 23:51:41.000000000 +0000
@@ -1,8 +1,8 @@
-ncurses6 (6.3+20211113) unstable; urgency=low
+ncurses6 (6.3+20211115) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 07 Nov 2021 10:11:03 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Mon, 15 Nov 2021 18:51:41 -0500
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
Index: package/debian-mingw64/changelog
--- ncurses-6.3-20211113+/package/debian-mingw64/changelog	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/package/debian-mingw64/changelog	2021-11-15 23:51:41.000000000 +0000
@@ -1,8 +1,8 @@
-ncurses6 (6.3+20211113) unstable; urgency=low
+ncurses6 (6.3+20211115) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 07 Nov 2021 10:11:03 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Mon, 15 Nov 2021 18:51:41 -0500
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
Index: package/debian/changelog
--- ncurses-6.3-20211113+/package/debian/changelog	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/package/debian/changelog	2021-11-15 23:51:41.000000000 +0000
@@ -1,8 +1,8 @@
-ncurses6 (6.3+20211113) unstable; urgency=low
+ncurses6 (6.3+20211115) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 07 Nov 2021 10:11:03 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Mon, 15 Nov 2021 18:51:41 -0500
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
Index: package/mingw-ncurses.nsi
Prereq:  1.491 
--- ncurses-6.3-20211113+/package/mingw-ncurses.nsi	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/package/mingw-ncurses.nsi	2021-11-15 23:51:41.000000000 +0000
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.491 2021/11/13 11:06:04 tom Exp $
+; $Id: mingw-ncurses.nsi,v 1.492 2021/11/15 23:51:41 tom Exp $
 
 ; TODO add examples
 ; TODO bump ABI to 6
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "6"
 !define VERSION_MINOR "3"
 !define VERSION_YYYY  "2021"
-!define VERSION_MMDD  "1113"
+!define VERSION_MMDD  "1115"
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}
 
 !define MY_ABI   "5"
Index: package/mingw-ncurses.spec
--- ncurses-6.3-20211113+/package/mingw-ncurses.spec	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/package/mingw-ncurses.spec	2021-11-15 23:51:41.000000000 +0000
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.3
-Release: 20211113
+Release: 20211115
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
Index: package/ncurses.spec
--- ncurses-6.3-20211113+/package/ncurses.spec	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/package/ncurses.spec	2021-11-15 23:51:41.000000000 +0000
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.3
-Release: 20211113
+Release: 20211115
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
Index: package/ncursest.spec
--- ncurses-6.3-20211113+/package/ncursest.spec	2021-11-13 11:06:04.000000000 +0000
+++ ncurses-6.3-20211115/package/ncursest.spec	2021-11-15 23:51:41.000000000 +0000
@@ -1,7 +1,7 @@
 Summary: Curses library with POSIX thread support.
 Name: ncursest6
 Version: 6.3
-Release: 20211113
+Release: 20211115
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz