Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ncurses for openSUSE:Factory checked in at 2022-05-01 18:53:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ncurses (Old)
and /work/SRC/openSUSE:Factory/.ncurses.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ncurses"
Sun May 1 18:53:17 2022 rev:213 rq:973227 version:6.3.MACRO
Changes:
--------
--- /work/SRC/openSUSE:Factory/ncurses/ncurses.changes 2022-04-23 19:44:58.174912224 +0200
+++ /work/SRC/openSUSE:Factory/.ncurses.new.1538/ncurses.changes 2022-05-01 18:53:18.835147668 +0200
@@ -1,0 +2,16 @@
+Wed Apr 27 12:47:05 UTC 2022 - Martin Li��ka
+
+- Include FORTIFY_SOURCE_3-fix.patch as the patch
+ is needed for upcoming -D_FORTIFY_SOURCE=3 $optflag.
+ We discussed the change with upstream, but the project
+ disagrees about stricter rules used with -D_FORTIFY_SOURCE=3.
+
+-------------------------------------------------------------------
+Mon Apr 25 07:40:05 UTC 2022 - Dr. Werner Fink
+
+- Add ncurses patch 20220423
+ + in-progress work on invalid_merge(), disable it (cf: 20220402).
+ + fix memory leak in _nc_tic_dir() when called from _nc_set_writedir().
+ + fix memory leak in tic when "-c" option is used.
+
+-------------------------------------------------------------------
New:
----
FORTIFY_SOURCE_3-fix.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ncurses.spec ++++++
--- /var/tmp/diff_new_pack.1EUTSM/_old 2022-05-01 18:53:19.623148399 +0200
+++ /var/tmp/diff_new_pack.1EUTSM/_new 2022-05-01 18:53:19.631148407 +0200
@@ -98,6 +98,7 @@
Patch0: ncurses-6.3.dif
Patch1: ncurses-5.9-ibm327x.dif
Patch2: ncurses-5.7-tack.dif
+Patch3: FORTIFY_SOURCE_3-fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _miscdir %{_datadir}/misc
%global _incdir %{_includedir}
@@ -350,6 +351,7 @@
%patch1 -p0 -b .327x
%patch2 -p0 -b .hs
%patch0 -p0 -b .p0
+%patch3 -p1
%if ! %{with xtermdsl}
sed -ri '/^xterm-suse/,/use=/{s/use=xterm-new/use=xterm-p370/;}' misc/terminfo.src
%endif
++++++ FORTIFY_SOURCE_3-fix.patch ++++++
diff --git a/ncurses/widechar/lib_unget_wch.c b/ncurses/widechar/lib_unget_wch.c
index 4ea26b6..df82974 100644
--- a/ncurses/widechar/lib_unget_wch.c
+++ b/ncurses/widechar/lib_unget_wch.c
@@ -76,6 +76,8 @@ NCURSES_SP_NAME(unget_wch) (NCURSES_SP_DCLx const wchar_t wch)
init_mb(state);
length = _nc_wcrtomb(0, wch, &state);
+ if (length < MB_CUR_MAX)
+ length = MB_CUR_MAX;
if (length != (size_t) (-1)
&& length != 0) {
++++++ ncurses-6.3-patches.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/patches/ncurses-6.3-20220423.patch new/patches/ncurses-6.3-20220423.patch
--- old/patches/ncurses-6.3-20220423.patch 1970-01-01 01:00:00.000000000 +0100
+++ new/patches/ncurses-6.3-20220423.patch 2022-04-24 02:17:21.000000000 +0200
@@ -0,0 +1,329 @@
+# ncurses 6.3 - patch 20220423 - Thomas E. Dickey
+#
+# ------------------------------------------------------------------------------
+#
+# Ncurses 6.3 is at
+# https://invisible-island.net/archives/ncurses/
+# https://invisible-mirror.net/archives/ncurses/
+# ftp://ftp.invisible-island.net/ncurses/
+# https://ftp.gnu.org/gnu/ncurses/
+#
+# Patches for ncurses 6.3 can be found at
+# https://invisible-island.net/archives/ncurses/6.3
+# https://invisible-mirror.net/archives/ncurses/6.3
+# ftp://ftp.invisible-island.net/ncurses/6.3
+#
+# ------------------------------------------------------------------------------
+# ftp://ftp.invisible-island.net/ncurses/6.3/ncurses-6.3-20220423.patch.gz
+# patch by Thomas E. Dickey
+# created Sun Apr 24 00:17:21 UTC 2022
+# ------------------------------------------------------------------------------
+# NEWS | 7 ++++++-
+# VERSION | 2 +-
+# dist.mk | 4 ++--
+# ncurses/tinfo/comp_parse.c | 12 ++++++++++--
+# ncurses/tinfo/db_iterator.c | 17 +++++++++++++----
+# ncurses/tinfo/write_entry.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 +-
+# progs/tic.c | 6 +++---
+# 14 files changed, 48 insertions(+), 26 deletions(-)
+# ------------------------------------------------------------------------------
+Index: NEWS
+Prereq: 1.3796
+--- ncurses-6.3-20220416+/NEWS 2022-04-16 23:31:41.000000000 +0000
++++ ncurses-6.3-20220423/NEWS 2022-04-23 23:26:44.000000000 +0000
+@@ -26,7 +26,7 @@
+ -- sale, use or other dealings in this Software without prior written --
+ -- authorization. --
+ -------------------------------------------------------------------------------
+--- $Id: NEWS,v 1.3796 2022/04/16 23:31:41 tom Exp $
++-- $Id: NEWS,v 1.3798 2022/04/23 23:26:44 tom Exp $
+ -------------------------------------------------------------------------------
+
+ This is a log of changes that ncurses has gone through since Zeyd started
+@@ -46,6 +46,11 @@
+ Changes through 1.9.9e did not credit all contributions;
+ it is not possible to add this information.
+
++20220423
++ + in-progress work on invalid_merge(), disable it (cf: 20220402).
++ + fix memory leak in _nc_tic_dir() when called from _nc_set_writedir().
++ + fix memory leak in tic when "-c" option is used.
++
+ 20220416
+ + add a limit-check to guard against corrupt terminfo data
+ (report/testcase by NCNIPC of China).
+Index: VERSION
+--- ncurses-6.3-20220416+/VERSION 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/VERSION 2022-04-23 12:44:18.000000000 +0000
+@@ -1 +1 @@
+-5:0:10 6.3 20220416
++5:0:10 6.3 20220423
+Index: dist.mk
+Prereq: 1.1475
+--- ncurses-6.3-20220416+/dist.mk 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/dist.mk 2022-04-23 12:44:18.000000000 +0000
+@@ -26,7 +26,7 @@
+ # use or other dealings in this Software without prior written #
+ # authorization. #
+ ##############################################################################
+-# $Id: dist.mk,v 1.1475 2022/04/16 12:59:30 tom Exp $
++# $Id: dist.mk,v 1.1476 2022/04/23 12:44:18 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 = 20220416
++NCURSES_PATCH = 20220423
+
+ # We don't append the patch to the version, since this only applies to releases
+ VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
+Index: ncurses/tinfo/comp_parse.c
+Prereq: 1.114
+--- ncurses-6.3-20220416+/ncurses/tinfo/comp_parse.c 2022-04-02 22:13:54.000000000 +0000
++++ ncurses-6.3-20220423/ncurses/tinfo/comp_parse.c 2022-04-23 23:23:38.000000000 +0000
+@@ -48,7 +48,7 @@
+
+ #include
+
+-MODULE_ID("$Id: comp_parse.c,v 1.114 2022/04/02 22:13:54 tom Exp $")
++MODULE_ID("$Id: comp_parse.c,v 1.116 2022/04/23 23:23:38 tom Exp $")
+
+ static void sanity_check2(TERMTYPE2 *, bool);
+ NCURSES_IMPEXP void (NCURSES_API *_nc_check_termtype2) (TERMTYPE2 *, bool) = sanity_check2;
+@@ -266,7 +266,7 @@
+ _nc_suppress_warnings = oldsuppress;
+ }
+
+-#if NCURSES_XNAMES
++#if 0 && NCURSES_XNAMES
+ static unsigned
+ find_capname(TERMTYPE2 *p, const char *name)
+ {
+@@ -631,6 +631,14 @@
+
+ _nc_check_termtype2(&qp->tterm, literal);
+
++ /*
++ * Checking calls tparm, which can allocate memory. Fix leaks.
++ */
++#define TPS(name) fake_tm.tparm_state.name
++ FreeAndNull(TPS(out_buff));
++ FreeAndNull(TPS(fmt_buff));
++#undef TPS
++
+ _nc_set_screen(save_SP);
+ set_curterm(save_tm);
+ } else {
+Index: ncurses/tinfo/db_iterator.c
+Prereq: 1.48
+--- ncurses-6.3-20220416+/ncurses/tinfo/db_iterator.c 2020-02-02 23:34:34.000000000 +0000
++++ ncurses-6.3-20220423/ncurses/tinfo/db_iterator.c 2022-04-23 20:03:15.000000000 +0000
+@@ -1,5 +1,5 @@
+ /****************************************************************************
+- * Copyright 2018,2020 Thomas E. Dickey *
++ * Copyright 2018-2020,2022 Thomas E. Dickey *
+ * Copyright 2006-2016,2017 Free Software Foundation, Inc. *
+ * *
+ * Permission is hereby granted, free of charge, to any person obtaining a *
+@@ -44,7 +44,7 @@
+ #include
+ #endif
+
+-MODULE_ID("$Id: db_iterator.c,v 1.48 2020/02/02 23:34:34 tom Exp $")
++MODULE_ID("$Id: db_iterator.c,v 1.49 2022/04/23 20:03:15 tom Exp $")
+
+ #define HaveTicDirectory _nc_globals.have_tic_directory
+ #define KeepTicDirectory _nc_globals.keep_tic_directory
+@@ -202,6 +202,13 @@
+ FreeAndNull(my_list);
+ }
+
++static void
++update_tic_dir(const char *update)
++{
++ free((char *) TicDirectory);
++ TicDirectory = update;
++}
++
+ /*
+ * Record the "official" location of the terminfo directory, according to
+ * the place where we're writing to, or the normal default, if not.
+@@ -211,8 +218,9 @@
+ {
+ T(("_nc_tic_dir %s", NonNull(path)));
+ if (!KeepTicDirectory) {
+- if (path != 0) {
+- TicDirectory = path;
++ if (path != NULL) {
++ if (path != TicDirectory)
++ update_tic_dir(strdup(path));
+ HaveTicDirectory = TRUE;
+ } else if (HaveTicDirectory == 0) {
+ if (use_terminfo_vars()) {
+@@ -444,5 +452,6 @@
+ FreeIfNeeded(my_vars[which].value);
+ my_vars[which].value = 0;
+ }
++ update_tic_dir(NULL);
+ }
+ #endif
+Index: ncurses/tinfo/write_entry.c
+Prereq: 1.119
+--- ncurses-6.3-20220416+/ncurses/tinfo/write_entry.c 2022-02-26 20:59:58.000000000 +0000
++++ ncurses-6.3-20220423/ncurses/tinfo/write_entry.c 2022-04-23 19:59:10.000000000 +0000
+@@ -51,7 +51,7 @@
+ #define TRACE_NUM(n) /* nothing */
+ #endif
+
+-MODULE_ID("$Id: write_entry.c,v 1.119 2022/02/26 20:59:58 tom Exp $")
++MODULE_ID("$Id: write_entry.c,v 1.120 2022/04/23 19:59:10 tom Exp $")
+
+ static int total_written;
+ static int total_parts;
+@@ -248,7 +248,7 @@
+ || getcwd(actual, sizeof(actual)) == 0)
+ _nc_err_abort("%s: not a directory", destination);
+ #endif
+- _nc_keep_tic_dir(strdup(actual));
++ _nc_keep_tic_dir(actual);
+ }
+
+ /*
+Index: package/debian-mingw/changelog
+--- ncurses-6.3-20220416+/package/debian-mingw/changelog 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/package/debian-mingw/changelog 2022-04-23 12:44:18.000000000 +0000
+@@ -1,8 +1,8 @@
+-ncurses6 (6.3+20220416) unstable; urgency=low
++ncurses6 (6.3+20220423) unstable; urgency=low
+
+ * latest weekly patch
+
+- -- Thomas E. Dickey Sat, 16 Apr 2022 08:59:30 -0400
++ -- Thomas E. Dickey Sat, 23 Apr 2022 08:44:18 -0400
+
+ ncurses6 (5.9-20131005) unstable; urgency=low
+
+Index: package/debian-mingw64/changelog
+--- ncurses-6.3-20220416+/package/debian-mingw64/changelog 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/package/debian-mingw64/changelog 2022-04-23 12:44:18.000000000 +0000
+@@ -1,8 +1,8 @@
+-ncurses6 (6.3+20220416) unstable; urgency=low
++ncurses6 (6.3+20220423) unstable; urgency=low
+
+ * latest weekly patch
+
+- -- Thomas E. Dickey Sat, 16 Apr 2022 08:59:30 -0400
++ -- Thomas E. Dickey Sat, 23 Apr 2022 08:44:18 -0400
+
+ ncurses6 (5.9-20131005) unstable; urgency=low
+
+Index: package/debian/changelog
+--- ncurses-6.3-20220416+/package/debian/changelog 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/package/debian/changelog 2022-04-23 12:44:18.000000000 +0000
+@@ -1,8 +1,8 @@
+-ncurses6 (6.3+20220416) unstable; urgency=low
++ncurses6 (6.3+20220423) unstable; urgency=low
+
+ * latest weekly patch
+
+- -- Thomas E. Dickey Sat, 16 Apr 2022 08:59:30 -0400
++ -- Thomas E. Dickey Sat, 23 Apr 2022 08:44:18 -0400
+
+ ncurses6 (5.9-20120608) unstable; urgency=low
+
+Index: package/mingw-ncurses.nsi
+Prereq: 1.515
+--- ncurses-6.3-20220416+/package/mingw-ncurses.nsi 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/package/mingw-ncurses.nsi 2022-04-23 12:44:18.000000000 +0000
+@@ -1,4 +1,4 @@
+-; $Id: mingw-ncurses.nsi,v 1.515 2022/04/16 12:59:30 tom Exp $
++; $Id: mingw-ncurses.nsi,v 1.516 2022/04/23 12:44:18 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 "2022"
+-!define VERSION_MMDD "0416"
++!define VERSION_MMDD "0423"
+ !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}
+
+ !define MY_ABI "5"
+Index: package/mingw-ncurses.spec
+--- ncurses-6.3-20220416+/package/mingw-ncurses.spec 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/package/mingw-ncurses.spec 2022-04-23 12:44:18.000000000 +0000
+@@ -3,7 +3,7 @@
+ Summary: shared libraries for terminal handling
+ Name: mingw32-ncurses6
+ Version: 6.3
+-Release: 20220416
++Release: 20220423
+ License: X11
+ Group: Development/Libraries
+ Source: ncurses-%{version}-%{release}.tgz
+Index: package/ncurses.spec
+--- ncurses-6.3-20220416+/package/ncurses.spec 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/package/ncurses.spec 2022-04-23 12:44:18.000000000 +0000
+@@ -1,7 +1,7 @@
+ Summary: shared libraries for terminal handling
+ Name: ncurses6
+ Version: 6.3
+-Release: 20220416
++Release: 20220423
+ License: X11
+ Group: Development/Libraries
+ Source: ncurses-%{version}-%{release}.tgz
+Index: package/ncursest.spec
+--- ncurses-6.3-20220416+/package/ncursest.spec 2022-04-16 12:59:30.000000000 +0000
++++ ncurses-6.3-20220423/package/ncursest.spec 2022-04-23 12:44:18.000000000 +0000
+@@ -1,7 +1,7 @@
+ Summary: Curses library with POSIX thread support.
+ Name: ncursest6
+ Version: 6.3
+-Release: 20220416
++Release: 20220423
+ License: X11
+ Group: Development/Libraries
+ Source: ncurses-%{version}-%{release}.tgz
+Index: progs/tic.c
+Prereq: 1.310
+--- ncurses-6.3-20220416+/progs/tic.c 2022-04-09 22:17:45.000000000 +0000
++++ ncurses-6.3-20220423/progs/tic.c 2022-04-23 19:47:57.000000000 +0000
+@@ -49,7 +49,7 @@
+ #include
+ #include
+
+-MODULE_ID("$Id: tic.c,v 1.310 2022/04/09 22:17:45 tom Exp $")
++MODULE_ID("$Id: tic.c,v 1.311 2022/04/23 19:47:57 tom Exp $")
+
+ #define STDIN_NAME "<stdin>"
+
+@@ -644,7 +644,7 @@
+ const char *tried = 0;
+
+ if (outdir == NULL) {
+- outdir = _nc_tic_dir(0);
++ outdir = _nc_tic_dir(NULL);
+ }
+ if ((result = valid_db_path(outdir)) != 0) {
+ printf("%s\n", result);
+@@ -1081,7 +1081,7 @@
+ if (total != 0)
+ fprintf(log_fp, "%d entries written to %s\n",
+ total,
+- _nc_tic_dir((char *) 0));
++ _nc_tic_dir(NULL));
+ else
+ fprintf(log_fp, "No entries written\n");
+ }