From f1a93d3ce8508326b1ab90d5b8411622288a8283fd475e251ff7ae39a6790801 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 5 Aug 2020 07:54:07 +0000 Subject: [PATCH 1/7] ncurses-6.2-20200801 OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=500 --- ncurses-6.2-patches.tar.bz2 | 4 ++-- ncurses-6.2.dif | 28 ++++++++++++++-------------- ncurses.changes | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 16 deletions(-) diff --git a/ncurses-6.2-patches.tar.bz2 b/ncurses-6.2-patches.tar.bz2 index 7563a48..92fa0c8 100644 --- a/ncurses-6.2-patches.tar.bz2 +++ b/ncurses-6.2-patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7e123544d2bde8999bf7bb8a615ac59ce4b9cea2d4115c414c88263c69dae1d1 -size 537488 +oid sha256:12f41b197259a24d17e0f64d77a74c17c47a84dcba669f89acc6370120330a53 +size 654391 diff --git a/ncurses-6.2.dif b/ncurses-6.2.dif index 920c33c..4945f3c 100644 --- a/ncurses-6.2.dif +++ b/ncurses-6.2.dif @@ -151,7 +151,7 @@ done --- configure +++ configure 2020-03-09 09:17:28.749300145 +0000 -@@ -5621,7 +5621,7 @@ echo $ECHO_N "checking for an rpath opti +@@ -5628,7 +5628,7 @@ echo $ECHO_N "checking for an rpath opti fi ;; (linux*|gnu*|k*bsd*-gnu|freebsd*) @@ -160,7 +160,7 @@ ;; (openbsd[2-9].*|mirbsd*) LD_RPATH_OPT="-Wl,-rpath," -@@ -14224,12 +14224,15 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <\$TMP CF_EOF if test -n "$cf_compress" ; then -@@ -14354,9 +14357,9 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man < + +- Add ncurses patch 20200801 + + remove remaining parts of checks for ISC Unix (cf: 20121006). + + add user32.lib to LDFLAGS for Visual Studio C++ configuration + (discussion with "Maarten Anonymous"). + + modify MKkey_defs.sh to hide ncurses' definition of KEY_EVENTS to + reduce Visual Studio C++ redefinition warnings. + + improve/update checks for external functions in test/configure + +------------------------------------------------------------------- +Mon Jul 27 09:42:00 UTC 2020 - Dr. Werner Fink + +- Add ncurses patch 20200725 + + set LINK_TESTS in CF_SHARED_OPTS for msvc (patch by + "Maarten Anonymous") + + improved workaround for redefinition-warnings for KEY_EVENT. + + improve man/term.5 section on legacy storage format (report by + Florian Weimer). + +------------------------------------------------------------------- +Mon Jul 20 10:51:35 UTC 2020 - Dr. Werner Fink + +- Add ncurses patch 20200718 + + reduce redefinition-warnings for KEY_EVENT when building with Visual + Studio C++. + + define NCURSES_STATIC when compiling programs to link with static + libraries, to work with MinGW vs Visual Studio C++. + > additional changes for building with Visual Studio C++ and msys2 + (reports/patches by "Maarten Anonymous") + + modify c++/Makefile.in to set the current directory while compiling + the main program, so the linker can find related objects. + + several changes to allow the c++/demo program to compile/link. + + change an ifdef in test-directory, to use VC++ wide-character funcs. + ------------------------------------------------------------------- Mon Jul 13 09:20:28 UTC 2020 - Dr. Werner Fink From af3d7473f8e3b9023bfec15ec03b080e8a81feea28d4b86872043166aa34d7e4 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 18 Aug 2020 07:05:39 +0000 Subject: [PATCH 2/7] ncurses-6.2-20200817 OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=501 --- ncurses-6.2-patches.tar.bz2 | 4 +- ncurses-6.2.dif | 90 ++++++++++++++++++++++--------------- ncurses.changes | 38 ++++++++++++++++ 3 files changed, 94 insertions(+), 38 deletions(-) diff --git a/ncurses-6.2-patches.tar.bz2 b/ncurses-6.2-patches.tar.bz2 index 92fa0c8..95d21a8 100644 --- a/ncurses-6.2-patches.tar.bz2 +++ b/ncurses-6.2-patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:12f41b197259a24d17e0f64d77a74c17c47a84dcba669f89acc6370120330a53 -size 654391 +oid sha256:2adb671bd9d12831cbee6b3532d5e2690bda68a057e7776b200cace56f08e600 +size 732276 diff --git a/ncurses-6.2.dif b/ncurses-6.2.dif index 4945f3c..355c827 100644 --- a/ncurses-6.2.dif +++ b/ncurses-6.2.dif @@ -11,17 +11,17 @@ ncurses/Makefile.in | 2 ncurses/curses.priv.h | 2 ncurses/run_cmd.sh | 11 +++ - ncurses/tinfo/MKfallback.sh | 6 + + ncurses/tinfo/MKfallback.sh | 10 ++- ncurses/tinfo/access.c | 28 ++++++++ ncurses/tinfo/lib_setup.c | 3 ncurses/tinfo/read_entry.c | 2 ncurses/tinfo/read_termcap.c | 21 ++++-- progs/Makefile.in | 4 - test/test.priv.h | 4 - - 19 files changed, 248 insertions(+), 77 deletions(-) + 19 files changed, 250 insertions(+), 79 deletions(-) --- aclocal.m4 -+++ aclocal.m4 2020-03-09 09:17:28.745300221 +0000 ++++ aclocal.m4 2020-08-17 08:13:47.804152211 +0000 @@ -617,7 +617,7 @@ AC_MSG_CHECKING([for size of bool]) AC_CACHE_VAL(cf_cv_type_of_bool,[ rm -f cf_test.out @@ -150,7 +150,7 @@ esac done --- configure -+++ configure 2020-03-09 09:17:28.749300145 +0000 ++++ configure 2020-08-17 08:13:47.808152141 +0000 @@ -5628,7 +5628,7 @@ echo $ECHO_N "checking for an rpath opti fi ;; @@ -160,7 +160,7 @@ ;; (openbsd[2-9].*|mirbsd*) LD_RPATH_OPT="-Wl,-rpath," -@@ -14232,12 +14232,15 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <\$TMP CF_EOF if test -n "$cf_compress" ; then -@@ -14362,9 +14365,9 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <$@ -+ $(SHELL) -e $(srcdir)/run_cmd.sh $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_PATH) $(INFOCMP_PATH) $(FALLBACK_LIST) >$@ +- $(SHELL) -e $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) "$(TIC_PATH)" "$(INFOCMP_PATH)" $(FALLBACK_LIST) >$@ ++ $(SHELL) -e $(srcdir)/run_cmd.sh $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) "$(TIC_PATH)" "$(INFOCMP_PATH)" $(FALLBACK_LIST) >$@ ./lib_gen.c : $(base)/MKlib_gen.sh ../include/curses.h $(SHELL) -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated <../include/curses.h >$@ --- ncurses/curses.priv.h -+++ ncurses/curses.priv.h 2020-03-09 09:17:28.753300070 +0000 ++++ ncurses/curses.priv.h 2020-08-17 08:13:47.812152071 +0000 @@ -2250,6 +2250,8 @@ extern NCURSES_EXPORT(char *) _nc_tracec extern NCURSES_EXPORT(char *) _nc_tracemouse (SCREEN *, MEVENT const *); extern NCURSES_EXPORT(char *) _nc_trace_mmask_t (SCREEN *, mmask_t); @@ -805,7 +805,7 @@ extern NCURSES_EXPORT(int) _nc_freewin (WINDOW *); extern NCURSES_EXPORT(int) _nc_getenv_num (const char *); --- ncurses/run_cmd.sh -+++ ncurses/run_cmd.sh 2020-03-09 09:17:28.753300070 +0000 ++++ ncurses/run_cmd.sh 2020-08-17 08:13:47.812152071 +0000 @@ -0,0 +1,11 @@ +#!/bin/sh + @@ -819,22 +819,40 @@ + +exec ${1+"$@"} --- ncurses/tinfo/MKfallback.sh -+++ ncurses/tinfo/MKfallback.sh 2020-03-09 09:17:28.753300070 +0000 -@@ -72,6 +72,12 @@ else ++++ ncurses/tinfo/MKfallback.sh 2020-08-17 08:33:39.543183822 +0000 +@@ -74,6 +74,12 @@ else tmp_info= fi +if test -n "$TERMINFO" -a -d "$TERMINFO" ; then -+ infocmp_path="$infocmp_path -v1 -A $TERMINFO" ++ infocmp_args="-v1 -A $TERMINFO" +else -+ infocmp_path="$infocmp_path -v1" ++ infocmp_args="-v1" +fi + cat </NCURSES_INT2/g' ++ "$infocmp_path" $infocmp_args -E "$x" | sed -e 's/\/NCURSES_INT2/g' + done + + cat <= 0) { result = value; /* use extension feature */ @@ -890,7 +908,7 @@ result = 1; /* always broken */ } else if (strstr(env, "screen") != 0 --- ncurses/tinfo/read_entry.c -+++ ncurses/tinfo/read_entry.c 2020-03-09 09:17:28.753300070 +0000 ++++ ncurses/tinfo/read_entry.c 2020-08-17 08:13:47.812152071 +0000 @@ -552,6 +552,7 @@ _nc_read_file_entry(const char *const fi FILE *fp = 0; int code; @@ -908,7 +926,7 @@ return (code); } --- ncurses/tinfo/read_termcap.c -+++ ncurses/tinfo/read_termcap.c 2020-03-09 09:17:28.753300070 +0000 ++++ ncurses/tinfo/read_termcap.c 2020-08-17 08:13:47.812152071 +0000 @@ -323,14 +323,18 @@ _nc_getent( */ if (fd >= 0) { @@ -955,7 +973,7 @@ } if (copied != 0) --- progs/Makefile.in -+++ progs/Makefile.in 2020-07-07 09:13:53.548391492 +0000 ++++ progs/Makefile.in 2020-08-17 08:13:47.812152071 +0000 @@ -101,7 +101,7 @@ CFLAGS_LIBTOOL = $(CCFLAGS) CFLAGS_NORMAL = $(CCFLAGS) -DNCURSES_STATIC CFLAGS_DEBUG = $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE @@ -975,7 +993,7 @@ LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@) --- test/test.priv.h -+++ test/test.priv.h 2020-03-09 09:17:28.753300070 +0000 ++++ test/test.priv.h 2020-08-17 08:13:47.812152071 +0000 @@ -1005,12 +1005,12 @@ extern char *_nc_strstr(const char *, co #endif diff --git a/ncurses.changes b/ncurses.changes index b427aae..072e44c 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Tue Aug 18 06:44:15 UTC 2020 - Dr. Werner Fink + +- Add ncurses patch 20200817 + + reduce build-warnings by excluding ncurses-internals from deprecation + warnings. + + mark wgetch-events feature as deprecated. + + add definition for $(LIBS) to ncurses/Makefile.in, to simplify builds + using the string-hacks option. + + prevent KEY_EVENT from appearing in curses.h unless the configure + option --enable-wgetch-events is used (report by Werner Fink). + +------------------------------------------------------------------- +Mon Aug 17 08:08:37 UTC 2020 - Dr. Werner Fink + +- Add ncurses patch 20200816 + + amend tic/infocmp check to allow for the respective tool's absence + (report by Steve Wills, cf: 20200808). + + improved some of the build-scripts with shellcheck + + filter out -MT/-MD/-MTd/-MDd options in script for Visual Studio C++ + (discussion with "Maarten Anonymous"). + +------------------------------------------------------------------- +Tue Aug 11 09:09:09 UTC 2020 - Dr. Werner Fink + +- Add ncurses patch 20200808 + + improve discussion of the system's tic utility when used as part + of cross-compiling (discussion with Keith Marshall). + + modify configuration checks for build-time tic/infocmp to use + AC_CHECK_TOOL. That can still be overridden by --with-tic-path and + --with-infocmp-path when fallbacks are used, but even if not using + fallbacks, the improved check may help with cross-compiling + (discussion with Keith Marshall). + + other build-fixes for Ada95 with MinGW. + + modify Ada95 source-generation utility to write to a file given as + parameter rather than to the standard output, allowing builds with + MinGW. + ------------------------------------------------------------------- Mon Aug 3 08:36:51 UTC 2020 - Dr. Werner Fink From 91b93cefc5cf95b004282ada08b13983ceeb0ef21ad857ca94e570ea4720b626 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 19 Aug 2020 06:54:19 +0000 Subject: [PATCH 3/7] Disable wgetch-events OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=502 --- ncurses.changes | 6 ++++++ ncurses.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ncurses.changes b/ncurses.changes index 072e44c..7c2a38b 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 19 06:43:29 UTC 2020 - Dr. Werner Fink + +- Disable wgetch-events as it is deprecated and breaks build of + other packages + ------------------------------------------------------------------- Tue Aug 18 06:44:15 UTC 2020 - Dr. Werner Fink diff --git a/ncurses.spec b/ncurses.spec index ed9a240..e9cbcb1 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -503,7 +503,7 @@ mv tack-* tack %endif --enable-ext-colors \ --enable-weak-symbols \ - --enable-wgetch-events \ + --disable-wgetch-events \ --enable-pthreads-eintr \ --enable-string-hacks \ --prefix=%{_prefix} \ From 82e1c12567cd121b6ab42711deb2991135c383e24f0c4d758a32229401d863d3 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 24 Aug 2020 07:16:36 +0000 Subject: [PATCH 4/7] ncurses-6.2-20200822 OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=503 --- ncurses-6.2-patches.tar.bz2 | 4 ++-- ncurses-6.2.dif | 18 +++++++++--------- ncurses.changes | 14 ++++++++++++++ 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/ncurses-6.2-patches.tar.bz2 b/ncurses-6.2-patches.tar.bz2 index 95d21a8..186509f 100644 --- a/ncurses-6.2-patches.tar.bz2 +++ b/ncurses-6.2-patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2adb671bd9d12831cbee6b3532d5e2690bda68a057e7776b200cace56f08e600 -size 732276 +oid sha256:0b0eaf9127321b02a3cf806aaa8a632753afc8ceaaea2091381b48357def6c12 +size 761807 diff --git a/ncurses-6.2.dif b/ncurses-6.2.dif index 355c827..327998e 100644 --- a/ncurses-6.2.dif +++ b/ncurses-6.2.dif @@ -160,7 +160,7 @@ ;; (openbsd[2-9].*|mirbsd*) LD_RPATH_OPT="-Wl,-rpath," -@@ -14385,12 +14385,15 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <\$TMP CF_EOF if test -n "$cf_compress" ; then -@@ -14515,9 +14518,9 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man < + +- Add ncurses patch 20200822 + + improve version-number extraction in MKlib_gen.sh + + make the test-package for manpages installable by adjusting the + man_db.renames file. + + correct an off-by-one loop-limit in convert_strings function + (report by Yue Tai). + + add CF_SHARED_OPTS cases for HPE NonStop systems (Randall S Becker). + + modify CF_SHARED_OPTS case for NetBSD to use the same "-shared" + option for the non-rpath case as for the rpath case, to allow gcc to + provide suitable runtime initialization (report by Rajeev V Pillai). + ------------------------------------------------------------------- Wed Aug 19 06:43:29 UTC 2020 - Dr. Werner Fink From 938360d730ffe2e2cb6a211412b8129ea7fcb827bb17ef16e74a9304ef361f69 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 31 Aug 2020 14:02:28 +0000 Subject: [PATCH 5/7] Update to ncurses-6.2-20200829 OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=504 --- awk-scripts.patch | 39 ++++++++++++++++ ncurses-6.2-patches.tar.bz2 | 4 +- ncurses-6.2.dif | 90 +++++++++++++++++-------------------- ncurses.changes | 22 +++++++++ ncurses.spec | 12 +++++ 5 files changed, 116 insertions(+), 51 deletions(-) create mode 100644 awk-scripts.patch diff --git a/awk-scripts.patch b/awk-scripts.patch new file mode 100644 index 0000000..5acaa0d --- /dev/null +++ b/awk-scripts.patch @@ -0,0 +1,39 @@ +--- + mk-1st.awk | 2 +- + mk-2nd.awk | 2 +- + mk-hdr.awk | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +--- mk-1st.awk ++++ mk-1st.awk 2020-08-31 13:43:20.574386946 +0000 +@@ -262,7 +262,7 @@ function install_dll(directory,filename) + function in_subset(value) { + value = " " value " "; + check = subset; +- sub(" .*$", "", check); ++ sub(" *$", "", check); + gsub("[+]", " ", check); + check = " " check " "; + return index(check,value); +--- mk-2nd.awk ++++ mk-2nd.awk 2020-08-31 13:43:26.250284434 +0000 +@@ -56,7 +56,7 @@ + function in_subset(value) { + value = " " value " "; + check = subset; +- sub(" .*$", "", check); ++ sub(" *$", "", check); + gsub("[+]", " ", check); + check = " " check " "; + return index(check,value); +--- mk-hdr.awk ++++ mk-hdr.awk 2020-08-31 13:43:32.146177950 +0000 +@@ -42,7 +42,7 @@ function basename(path) { + function in_subset(value) { + value = " " value " "; + check = subset; +- sub(" .*$", "", check); ++ sub(" *$", "", check); + gsub("[+]", " ", check); + check = " " check " "; + return index(check,value); diff --git a/ncurses-6.2-patches.tar.bz2 b/ncurses-6.2-patches.tar.bz2 index 186509f..5cc7f94 100644 --- a/ncurses-6.2-patches.tar.bz2 +++ b/ncurses-6.2-patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0b0eaf9127321b02a3cf806aaa8a632753afc8ceaaea2091381b48357def6c12 -size 761807 +oid sha256:d18ed32b226a3229686e553ed41f89461aca0a17b6c3d998272a7dab3fc7adca +size 914261 diff --git a/ncurses-6.2.dif b/ncurses-6.2.dif index 327998e..f1f5996 100644 --- a/ncurses-6.2.dif +++ b/ncurses-6.2.dif @@ -1,6 +1,6 @@ --- aclocal.m4 | 40 ++++++------ - configure | 41 +++++++----- + configure | 40 ++++++------ include/curses.h.in | 3 include/termcap.h.in | 2 include/tic.h | 4 - @@ -18,10 +18,10 @@ ncurses/tinfo/read_termcap.c | 21 ++++-- progs/Makefile.in | 4 - test/test.priv.h | 4 - - 19 files changed, 250 insertions(+), 79 deletions(-) + 19 files changed, 249 insertions(+), 79 deletions(-) --- aclocal.m4 -+++ aclocal.m4 2020-08-17 08:13:47.804152211 +0000 ++++ aclocal.m4 2020-08-31 12:06:53.682411288 +0000 @@ -617,7 +617,7 @@ AC_MSG_CHECKING([for size of bool]) AC_CACHE_VAL(cf_cv_type_of_bool,[ rm -f cf_test.out @@ -31,7 +31,7 @@ #include #if defined(__cplusplus) -@@ -5409,12 +5409,15 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <\$TMP CF_EOF if test -n "$cf_compress" ; then -@@ -5539,9 +5542,9 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <\$TMP CF_EOF if test -n "$cf_compress" ; then -@@ -14523,9 +14526,9 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <$@ --- ncurses/curses.priv.h -+++ ncurses/curses.priv.h 2020-08-17 08:13:47.812152071 +0000 -@@ -2250,6 +2250,8 @@ extern NCURSES_EXPORT(char *) _nc_tracec ++++ ncurses/curses.priv.h 2020-08-31 12:06:53.690411143 +0000 +@@ -2278,6 +2278,8 @@ extern NCURSES_EXPORT(char *) _nc_tracec extern NCURSES_EXPORT(char *) _nc_tracemouse (SCREEN *, MEVENT const *); extern NCURSES_EXPORT(char *) _nc_trace_mmask_t (SCREEN *, mmask_t); extern NCURSES_EXPORT(int) _nc_access (const char *, int); @@ -805,7 +797,7 @@ extern NCURSES_EXPORT(int) _nc_freewin (WINDOW *); extern NCURSES_EXPORT(int) _nc_getenv_num (const char *); --- ncurses/run_cmd.sh -+++ ncurses/run_cmd.sh 2020-08-17 08:13:47.812152071 +0000 ++++ ncurses/run_cmd.sh 2020-08-31 12:06:53.690411143 +0000 @@ -0,0 +1,11 @@ +#!/bin/sh + @@ -819,7 +811,7 @@ + +exec ${1+"$@"} --- ncurses/tinfo/MKfallback.sh -+++ ncurses/tinfo/MKfallback.sh 2020-08-17 08:33:39.543183822 +0000 ++++ ncurses/tinfo/MKfallback.sh 2020-08-31 12:06:53.690411143 +0000 @@ -74,6 +74,12 @@ else tmp_info= fi @@ -852,7 +844,7 @@ done --- ncurses/tinfo/access.c -+++ ncurses/tinfo/access.c 2020-08-17 08:13:47.812152071 +0000 ++++ ncurses/tinfo/access.c 2020-08-31 12:06:53.690411143 +0000 @@ -31,6 +31,10 @@ * Author: Thomas E. Dickey * ****************************************************************************/ @@ -896,7 +888,7 @@ _nc_access(const char *path, int mode) { --- ncurses/tinfo/lib_setup.c -+++ ncurses/tinfo/lib_setup.c 2020-08-17 08:13:47.812152071 +0000 ++++ ncurses/tinfo/lib_setup.c 2020-08-31 12:06:53.690411143 +0000 @@ -605,6 +605,9 @@ _nc_locale_breaks_acs(TERMINAL *termp) } else if ((value = tigetnum("U8")) >= 0) { result = value; /* use extension feature */ @@ -908,7 +900,7 @@ result = 1; /* always broken */ } else if (strstr(env, "screen") != 0 --- ncurses/tinfo/read_entry.c -+++ ncurses/tinfo/read_entry.c 2020-08-17 08:13:47.812152071 +0000 ++++ ncurses/tinfo/read_entry.c 2020-08-31 12:06:53.690411143 +0000 @@ -552,6 +552,7 @@ _nc_read_file_entry(const char *const fi FILE *fp = 0; int code; @@ -926,7 +918,7 @@ return (code); } --- ncurses/tinfo/read_termcap.c -+++ ncurses/tinfo/read_termcap.c 2020-08-17 08:13:47.812152071 +0000 ++++ ncurses/tinfo/read_termcap.c 2020-08-31 12:06:53.690411143 +0000 @@ -323,14 +323,18 @@ _nc_getent( */ if (fd >= 0) { @@ -973,7 +965,7 @@ } if (copied != 0) --- progs/Makefile.in -+++ progs/Makefile.in 2020-08-17 08:13:47.812152071 +0000 ++++ progs/Makefile.in 2020-08-31 12:06:53.690411143 +0000 @@ -101,7 +101,7 @@ CFLAGS_LIBTOOL = $(CCFLAGS) CFLAGS_NORMAL = $(CCFLAGS) -DNCURSES_STATIC CFLAGS_DEBUG = $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE @@ -993,8 +985,8 @@ LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@) --- test/test.priv.h -+++ test/test.priv.h 2020-08-17 08:13:47.812152071 +0000 -@@ -1005,12 +1005,12 @@ extern char *_nc_strstr(const char *, co ++++ test/test.priv.h 2020-08-31 12:06:53.690411143 +0000 +@@ -1012,12 +1012,12 @@ extern char *_nc_strstr(const char *, co #endif /* out-of-band values for representing absent capabilities */ diff --git a/ncurses.changes b/ncurses.changes index 75e66eb..ace5bd3 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Mon Aug 31 13:56:18 UTC 2020 - Dr. Werner Fink + +- Add patch awk-scripts.patch as workaround for patch 20200829 + +------------------------------------------------------------------- +Mon Aug 31 08:47:56 UTC 2020 - Dr. Werner Fink + +- Add ncurses patch 20200829 + + remove a redundant NCURSES_EXPORT as a build-fix for "Maarten + Anonymous". + + merge/adapt in-progress work by Juergen Pfeifer for new version of + win32-driver. + + modify configure script, moving gcc -Werror options to EXTRA_CFLAGS + to avoid breaking configure-checks (adapted from ongoing work on + mawk and lynx). + > errate for terminfo.src (report by Florian Weimer): + + correct icl6404 csr + + correct ti916 cup + + improve ndr9500 +- Refresh patch ncurses-6.2.dif + ------------------------------------------------------------------- Mon Aug 24 06:47:44 UTC 2020 - Dr. Werner Fink diff --git a/ncurses.spec b/ncurses.spec index e9cbcb1..18b4539 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -48,6 +48,7 @@ BuildRequires: gpm-devel %else BuildRequires: gpm %endif +BuildRequires: makedepend %define terminfo() %{_datadir}/%{0}/%{1} %define tabset() %{_datadir}/%{0}/%{1} # bug437293 @@ -78,6 +79,7 @@ Source7: baselibs.conf Patch0: ncurses-6.2.dif Patch1: ncurses-5.9-ibm327x.dif Patch2: ncurses-5.7-tack.dif +Patch3: awk-scripts.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _miscdir %{_datadir}/misc %global _incdir %{_includedir} @@ -314,9 +316,14 @@ tar -xzf %{S:5} mv tack-* tack %patch1 -p0 -b .327x %patch2 -p0 -b .hs +%patch3 -p0 -b .xyz %patch0 -p0 -b .p0 %build +# +# Do not run auto(re)conf here as this will fail later on ncurses +# is build with special autoconf based on autoconf-2.13 at upstream +# %global _lto_cflags %{?_lto_cflags} -ffat-lto-objects # # Note that there is a test if the system call poll(2) really works @@ -534,6 +541,7 @@ mv tack-* tack # It has been verified several times that this works. # c=$(grep '^ *$ *\./configure' config.log) + make depend make -C c++ etip.h make %{?_smp_mflags} # @@ -580,6 +588,7 @@ mv tack-* tack # find -name fallback.o -print -delete cp fallback.c.build ncurses/fallback.c + make depend make -C c++ etip.h make %{?_smp_mflags} %else @@ -675,6 +684,7 @@ mv tack-* tack find -name fallback.o -print -delete cp fallback.c.build ncurses/fallback.c %endif + make depend make -C c++ etip.h make %{?_smp_mflags} sed -ri 's@^(LDFLAGS=)$@\1-L\\${libdir}@ @@ -736,6 +746,7 @@ includedir5=%{_incdir}/ncurses5' "$pc" find -name fallback.o -print -delete cp fallback.c.build ncurses/fallback.c %endif + make depend make -C c++ etip.h make %{?_smp_mflags} # must not use %jobs here (would lead to: ln: ncurses.h already exists) @@ -809,6 +820,7 @@ includedir5=%{_incdir}/ncurses5' "$pc" find -name fallback.o -print -delete cp fallback.c.build ncurses/fallback.c %endif + make depend make -C c++ etip.h make %{?_smp_mflags} sed -ri 's@^(LDFLAGS=)$@\1-L\\${libdir}@ From 36de1039abd2b2fd16848ab560002476d3901ce056667102af4ead7f29fa33c3 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 1 Sep 2020 07:21:56 +0000 Subject: [PATCH 6/7] Update to ncurses-6.2-20200831 OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=505 --- awk-scripts.patch | 39 ------------------------------------- ncurses-6.2-patches.tar.bz2 | 4 ++-- ncurses.changes | 8 ++++++++ ncurses.spec | 2 -- 4 files changed, 10 insertions(+), 43 deletions(-) delete mode 100644 awk-scripts.patch diff --git a/awk-scripts.patch b/awk-scripts.patch deleted file mode 100644 index 5acaa0d..0000000 --- a/awk-scripts.patch +++ /dev/null @@ -1,39 +0,0 @@ ---- - mk-1st.awk | 2 +- - mk-2nd.awk | 2 +- - mk-hdr.awk | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - ---- mk-1st.awk -+++ mk-1st.awk 2020-08-31 13:43:20.574386946 +0000 -@@ -262,7 +262,7 @@ function install_dll(directory,filename) - function in_subset(value) { - value = " " value " "; - check = subset; -- sub(" .*$", "", check); -+ sub(" *$", "", check); - gsub("[+]", " ", check); - check = " " check " "; - return index(check,value); ---- mk-2nd.awk -+++ mk-2nd.awk 2020-08-31 13:43:26.250284434 +0000 -@@ -56,7 +56,7 @@ - function in_subset(value) { - value = " " value " "; - check = subset; -- sub(" .*$", "", check); -+ sub(" *$", "", check); - gsub("[+]", " ", check); - check = " " check " "; - return index(check,value); ---- mk-hdr.awk -+++ mk-hdr.awk 2020-08-31 13:43:32.146177950 +0000 -@@ -42,7 +42,7 @@ function basename(path) { - function in_subset(value) { - value = " " value " "; - check = subset; -- sub(" .*$", "", check); -+ sub(" *$", "", check); - gsub("[+]", " ", check); - check = " " check " "; - return index(check,value); diff --git a/ncurses-6.2-patches.tar.bz2 b/ncurses-6.2-patches.tar.bz2 index 5cc7f94..a8e4767 100644 --- a/ncurses-6.2-patches.tar.bz2 +++ b/ncurses-6.2-patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d18ed32b226a3229686e553ed41f89461aca0a17b6c3d998272a7dab3fc7adca -size 914261 +oid sha256:62c5daebb24d035419498e0bb90008914ba32b3c1c9a6590c7f868a807e10db9 +size 915695 diff --git a/ncurses.changes b/ncurses.changes index ace5bd3..b0d5e69 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Sep 1 07:20:13 UTC 2020 - Dr. Werner Fink + +- Add ncurses patch 20200831 + + build-fix for awk-scripts modified for win32-driver (report by Werner + Fink). +- Drop workaround patch awk-scripts.patch as now upstream fixed + ------------------------------------------------------------------- Mon Aug 31 13:56:18 UTC 2020 - Dr. Werner Fink diff --git a/ncurses.spec b/ncurses.spec index 18b4539..f53e4eb 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -79,7 +79,6 @@ Source7: baselibs.conf Patch0: ncurses-6.2.dif Patch1: ncurses-5.9-ibm327x.dif Patch2: ncurses-5.7-tack.dif -Patch3: awk-scripts.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _miscdir %{_datadir}/misc %global _incdir %{_includedir} @@ -316,7 +315,6 @@ tar -xzf %{S:5} mv tack-* tack %patch1 -p0 -b .327x %patch2 -p0 -b .hs -%patch3 -p0 -b .xyz %patch0 -p0 -b .p0 %build From b8c5ee9ca4e1fd30a8eba48bf03c02b6eab8421e6b600f156b1b92fbeb92e937 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 15 Sep 2020 07:57:21 +0000 Subject: [PATCH 7/7] Update to ncurses-6.2-20200912 OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=506 --- ncurses-6.2-patches.tar.bz2 | 4 ++-- ncurses-6.2.dif | 8 ++++---- ncurses.changes | 16 ++++++++++++++++ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/ncurses-6.2-patches.tar.bz2 b/ncurses-6.2-patches.tar.bz2 index a8e4767..2aab452 100644 --- a/ncurses-6.2-patches.tar.bz2 +++ b/ncurses-6.2-patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:62c5daebb24d035419498e0bb90008914ba32b3c1c9a6590c7f868a807e10db9 -size 915695 +oid sha256:1866067b87308b68071a41a697839af5d915251f6353f54327708b2c97ff79f7 +size 965192 diff --git a/ncurses-6.2.dif b/ncurses-6.2.dif index f1f5996..ec625d7 100644 --- a/ncurses-6.2.dif +++ b/ncurses-6.2.dif @@ -776,7 +776,7 @@ ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display, --- ncurses/Makefile.in +++ ncurses/Makefile.in 2020-08-31 12:06:53.690411143 +0000 -@@ -231,7 +231,7 @@ $(DESTDIR)$(libdir) : +@@ -230,7 +230,7 @@ $(DESTDIR)$(libdir) : ../lib : ; mkdir $@ ./fallback.c : $(tinfo)/MKfallback.sh @@ -787,7 +787,7 @@ $(SHELL) -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated <../include/curses.h >$@ --- ncurses/curses.priv.h +++ ncurses/curses.priv.h 2020-08-31 12:06:53.690411143 +0000 -@@ -2278,6 +2278,8 @@ extern NCURSES_EXPORT(char *) _nc_tracec +@@ -2277,6 +2277,8 @@ extern NCURSES_EXPORT(char *) _nc_tracec extern NCURSES_EXPORT(char *) _nc_tracemouse (SCREEN *, MEVENT const *); extern NCURSES_EXPORT(char *) _nc_trace_mmask_t (SCREEN *, mmask_t); extern NCURSES_EXPORT(int) _nc_access (const char *, int); @@ -889,7 +889,7 @@ { --- ncurses/tinfo/lib_setup.c +++ ncurses/tinfo/lib_setup.c 2020-08-31 12:06:53.690411143 +0000 -@@ -605,6 +605,9 @@ _nc_locale_breaks_acs(TERMINAL *termp) +@@ -613,6 +613,9 @@ _nc_locale_breaks_acs(TERMINAL *termp) } else if ((value = tigetnum("U8")) >= 0) { result = value; /* use extension feature */ } else if ((env = getenv("TERM")) != 0) { @@ -986,7 +986,7 @@ --- test/test.priv.h +++ test/test.priv.h 2020-08-31 12:06:53.690411143 +0000 -@@ -1012,12 +1012,12 @@ extern char *_nc_strstr(const char *, co +@@ -1024,12 +1024,12 @@ extern char *_nc_strstr(const char *, co #endif /* out-of-band values for representing absent capabilities */ diff --git a/ncurses.changes b/ncurses.changes index b0d5e69..59bd115 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Tue Sep 15 07:51:09 UTC 2020 - Dr. Werner Fink + +- Add ncurses patch 20200912 + + add configure-check for systre/tre with mingw configuration, to get + the library-dependencies as seen in msys2 configuration for mingw64. + + build-fixes for the win32-driver configuration. + + use more defensive binary mode setting for Win32 (Juergen Pfeifer). +- Add ncurses patch 20200907 + + fix regression in setupterm validating non-empty $TERM (report by + Soren Tempel). +- Add ncurses patch 20200906 + + merge/adapt in-progress work by Juergen Pfeifer for new version of + win32-driver. + + correct description of vt330/vt340 (Ross Combs). + ------------------------------------------------------------------- Tue Sep 1 07:20:13 UTC 2020 - Dr. Werner Fink