From 4e8526ad3dbfc77326b32924174441311b57c856cb1258971dee09c86a994eb0 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 17 Aug 2015 12:39:03 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=210 --- ncurses-5.9-avoid-line-markers.dif | 11 --- ncurses-5.9-overwrite.dif | 4 +- ncurses-5.9-patches.tar.bz2 | 3 - ncurses-5.9.tar.bz2 | 3 - ncurses-6.0-avoid-line-markers.dif | 15 +++ ncurses-6.0-patches.tar.bz2 | 3 + ncurses-5.9.dif => ncurses-6.0.dif | 142 ++++++++++------------------- ncurses-6.0.tar.gz | 3 + ncurses.changes | 82 +++++++++++++++++ ncurses.spec | 43 ++++++--- 10 files changed, 181 insertions(+), 128 deletions(-) delete mode 100644 ncurses-5.9-avoid-line-markers.dif delete mode 100644 ncurses-5.9-patches.tar.bz2 delete mode 100644 ncurses-5.9.tar.bz2 create mode 100644 ncurses-6.0-avoid-line-markers.dif create mode 100644 ncurses-6.0-patches.tar.bz2 rename ncurses-5.9.dif => ncurses-6.0.dif (89%) create mode 100644 ncurses-6.0.tar.gz diff --git a/ncurses-5.9-avoid-line-markers.dif b/ncurses-5.9-avoid-line-markers.dif deleted file mode 100644 index 8cea752..0000000 --- a/ncurses-5.9-avoid-line-markers.dif +++ /dev/null @@ -1,11 +0,0 @@ ---- ncurses/Makefile.in.orig 2015-01-21 13:27:02.427199242 +0100 -+++ ncurses/Makefile.in 2015-01-21 13:27:11.946311063 +0100 -@@ -219,7 +219,7 @@ - sh -e $(srcdir)/run_cmd.sh $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_PATH) $(FALLBACK_LIST) >$@ - - ./lib_gen.c : $(base)/MKlib_gen.sh ../include/curses.h -- sh -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated <../include/curses.h >$@ -+ sh -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS) -P" "$(AWK)" generated <../include/curses.h >$@ - - init_keytry.h: make_keys$(BUILD_EXEEXT) keys.list - ./make_keys$(BUILD_EXEEXT) keys.list > $@ diff --git a/ncurses-5.9-overwrite.dif b/ncurses-5.9-overwrite.dif index bc52e02..01b6245 100644 --- a/ncurses-5.9-overwrite.dif +++ b/ncurses-5.9-overwrite.dif @@ -17,9 +17,9 @@ +++ configure 2013-09-30 09:17:52.000000000 +0000 @@ -6956,6 +6956,7 @@ else fi; - echo "$as_me:6982: result: $with_overwrite" >&5 + echo "$as_me:6984: result: $with_overwrite" >&5 echo "${ECHO_T}$with_overwrite" >&6 +WITH_OVERWRITE="$with_overwrite" - echo "$as_me:6985: checking if external terminfo-database is used" >&5 + echo "$as_me:6987: checking if external terminfo-database is used" >&5 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6 diff --git a/ncurses-5.9-patches.tar.bz2 b/ncurses-5.9-patches.tar.bz2 deleted file mode 100644 index 6fc42ac..0000000 --- a/ncurses-5.9-patches.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bf0fd0116c702991ee4f7f5cad540b52c70a5f0eefd799b89c868f66da7646ad -size 5003670 diff --git a/ncurses-5.9.tar.bz2 b/ncurses-5.9.tar.bz2 deleted file mode 100644 index 37a2606..0000000 --- a/ncurses-5.9.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5dd699104648b6da0212bc2c65c2b7bf101795a634c7e2b4f5976715339bcf8d -size 2043534 diff --git a/ncurses-6.0-avoid-line-markers.dif b/ncurses-6.0-avoid-line-markers.dif new file mode 100644 index 0000000..096dce5 --- /dev/null +++ b/ncurses-6.0-avoid-line-markers.dif @@ -0,0 +1,15 @@ +--- + ncurses/Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- ncurses/Makefile.in ++++ ncurses/Makefile.in 2015-08-13 15:08:16.989519655 +0000 +@@ -219,7 +219,7 @@ $(DESTDIR)$(libdir) : + $(SHELL) -e $(srcdir)/run_cmd.sh $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_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 >$@ ++ $(SHELL) -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS) -P" "$(AWK)" generated <../include/curses.h >$@ + + init_keytry.h: make_keys$(BUILD_EXEEXT) keys.list + ./make_keys$(BUILD_EXEEXT) keys.list > $@ diff --git a/ncurses-6.0-patches.tar.bz2 b/ncurses-6.0-patches.tar.bz2 new file mode 100644 index 0000000..8a2a04c --- /dev/null +++ b/ncurses-6.0-patches.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b53f39b902abe42e92cb9439db0bae29beaa889ecdc60980576a29186b2d4a9 +size 45308 diff --git a/ncurses-5.9.dif b/ncurses-6.0.dif similarity index 89% rename from ncurses-5.9.dif rename to ncurses-6.0.dif index e8ec1ba..1bbda99 100644 --- a/ncurses-5.9.dif +++ b/ncurses-6.0.dif @@ -9,7 +9,7 @@ man/ncurses.3x | 4 + misc/gen-pkgconfig.in | 7 +- misc/ncurses-config.in | 2 - misc/terminfo.src | 131 ++++++++++++++++++++++++++++++++++--------- + misc/terminfo.src | 130 ++++++++++++++++++++++++++++++++++--------- ncurses/Makefile.in | 2 ncurses/curses.priv.h | 2 ncurses/run_cmd.sh | 11 +++ @@ -19,11 +19,11 @@ ncurses/tinfo/read_entry.c | 2 ncurses/tinfo/read_termcap.c | 21 ++++-- test/test.priv.h | 4 - - 20 files changed, 240 insertions(+), 79 deletions(-) + 20 files changed, 239 insertions(+), 79 deletions(-) --- aclocal.m4 +++ aclocal.m4 2015-04-27 10:47:04.000000000 +0000 -@@ -554,7 +554,7 @@ AC_MSG_CHECKING([for size of bool]) +@@ -560,7 +560,7 @@ AC_MSG_CHECKING([for size of bool]) AC_CACHE_VAL(cf_cv_type_of_bool,[ rm -f cf_test.out AC_TRY_RUN([ @@ -32,7 +32,7 @@ #include #if defined(__cplusplus) -@@ -4507,12 +4507,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 -@@ -4637,9 +4640,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 -@@ -11456,9 +11459,9 @@ cat >>$cf_edit_man <>$cf_edit_man <>$cf_edit_man <>$cf_edit_man </dev/null ; then reqs="$PANEL_LIBRARY${suffix}, $MENU_LIBRARY${suffix}, $FORM_LIBRARY${suffix}, $MAIN_LIBRARY${suffix}" @@ -392,7 +392,7 @@ desc="$desc add-on library" fi -@@ -130,6 +133,8 @@ do +@@ -131,6 +134,8 @@ do test $NEED_TINFO != yes ; then test -n "$reqs" && reqs="$reqs, " reqs="${reqs}${SUB_LIBRARY}${suffix}" @@ -413,7 +413,7 @@ fi if test "${includedir}" != /usr/include ; then --- misc/terminfo.src -+++ misc/terminfo.src 2015-06-01 08:26:54.890018864 +0000 ++++ misc/terminfo.src 2015-06-01 08:26:55.000000000 +0000 @@ -301,7 +301,9 @@ dumb|80-column dumb tty, am, cols#80, @@ -689,7 +689,7 @@ kc1=\E[8~, kc3=\E[6~, kent=\EOM, khlp=\E[28~, kmous=\E[M, mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=, -@@ -5844,7 +5912,7 @@ pty|4bsd pseudo teletype, +@@ -5849,7 +5917,7 @@ pty|4bsd pseudo teletype, #### Emacs # The codes supported by the term.el terminal emulation in GNU Emacs 19.30 @@ -698,7 +698,7 @@ am, mir, xenl, cols#80, lines#24, bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M, -@@ -5857,6 +5925,13 @@ eterm|gnu emacs term.el terminal emulati +@@ -5862,6 +5930,13 @@ eterm|gnu emacs term.el terminal emulati rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m, sgr0=\E[m, smcup=\E7\E[?47h, smir=\E[4h, smso=\E[7m, smul=\E[4m, @@ -712,7 +712,7 @@ # The codes supported by the term.el terminal emulation in GNU Emacs 22.2 eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96, -@@ -5957,7 +6032,7 @@ screen|VT 100/ANSI X3.64 virtual termina +@@ -5962,7 +6037,7 @@ screen|VT 100/ANSI X3.64 virtual termina dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0, flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, @@ -721,7 +721,7 @@ kcuu1=\EOA, kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, -@@ -6153,7 +6228,7 @@ screen2|old VT 100/ANSI X3.64 virtual te +@@ -6158,7 +6233,7 @@ screen2|old VT 100/ANSI X3.64 virtual te cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=, il=\E[%p1%dL, @@ -730,7 +730,7 @@ kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV, kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH, nel=^M^J, rc=\E8, ri=\EM, rmir=\E[4l, rmso=\E[23m, -@@ -7896,7 +7971,7 @@ hp700-wy|HP700/41 emulating wyse30, +@@ -7901,7 +7976,7 @@ hp700-wy|HP700/41 emulating wyse30, ri=\Ej, rmir=\Er, rmso=\EG0$<10/>, rmul=\EG0$<10/>, sgr0=\EG0$<10/>, smir=\Eq, smso=\EG4$<10/>, smul=\EG8$<10/>, tbc=\E0, vpa=\E[%p1%{32}%+%c, @@ -739,7 +739,7 @@ am, da, db, xhp, cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8, acsc=0cjgktlrmfn/q\,t5u6v8w7x., bel=^G, blink=\E&dA, -@@ -11030,6 +11105,7 @@ msk22714|mskermit22714|UCB MS-DOS Kermit +@@ -11035,6 +11110,7 @@ msk22714|mskermit22714|UCB MS-DOS Kermit # at support for the VT320 itself. # Please send changes with explanations to bug-gnu-emacs@prep.ai.mit.edu. # (vt320-k3: I added / based on the init string -- esr) @@ -747,7 +747,7 @@ vt320-k3|MS-Kermit 3.00's vt320 emulation, am, eslok, hs, km, mir, msgr, xenl, cols#80, it#8, lines#49, pb#9600, vt#3, -@@ -11039,7 +11115,7 @@ vt320-k3|MS-Kermit 3.00's vt320 emulatio +@@ -11044,7 +11120,7 @@ vt320-k3|MS-Kermit 3.00's vt320 emulatio csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, @@ -756,7 +756,7 @@ dsl=\E[0$~, ech=\E[%p1%dX, ed=\E[J, el=\E[K, flash=\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l, fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, -@@ -15315,7 +15391,7 @@ ibm3101|i3101|IBM 3101-10, +@@ -15320,7 +15396,7 @@ ibm3101|i3101|IBM 3101-10, cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ, el=\EI, home=\EH, hts=\E0, ind=^J, kcub1=\ED, kcud1=\EB, kcuf1=\EC, kcuu1=\EA, nel=^M^J, tbc=\EH, @@ -765,7 +765,7 @@ is2=\E S, rmacs=\E>B, rmcup=\E>B, rs2=\E S, s0ds=\E>B, sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;%?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t%{80}%|%;%c%?%p9%t\E>A%e\E>B%;, sgr0=\E4@\E>B, smacs=\E>A, smcup=\E>B, use=ibm3162, -@@ -15556,7 +15632,7 @@ lft|lft-pc850|LFT-PC850|IBM LFT PC850 De +@@ -15561,7 +15637,7 @@ lft|lft-pc850|LFT-PC850|IBM LFT PC850 De tbc=\E[3g, # "Megapel" refers to the display adapter, which was used with the IBM RT # aka IBM 6150. @@ -775,19 +775,19 @@ s1ds=\E(0, sgr0=\E[0m\E(B, use=ibm5154, ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display, --- ncurses/Makefile.in -+++ ncurses/Makefile.in 2011-02-28 13:39:31.000000000 +0000 ++++ ncurses/Makefile.in 2015-08-13 15:06:19.805518465 +0000 @@ -216,7 +216,7 @@ $(DESTDIR)$(libdir) : ../lib : ; mkdir $@ ./fallback.c : $(tinfo)/MKfallback.sh -- sh -e $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_PATH) $(FALLBACK_LIST) >$@ -+ sh -e $(srcdir)/run_cmd.sh $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_PATH) $(FALLBACK_LIST) >$@ +- $(SHELL) -e $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_PATH) $(FALLBACK_LIST) >$@ ++ $(SHELL) -e $(srcdir)/run_cmd.sh $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_PATH) $(FALLBACK_LIST) >$@ ./lib_gen.c : $(base)/MKlib_gen.sh ../include/curses.h - sh -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated <../include/curses.h >$@ + $(SHELL) -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated <../include/curses.h >$@ --- ncurses/curses.priv.h +++ ncurses/curses.priv.h 2014-10-13 12:22:30.000000000 +0000 -@@ -2016,6 +2016,8 @@ extern NCURSES_EXPORT(char *) _nc_tracec +@@ -2017,6 +2017,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); @@ -888,7 +888,7 @@ { --- ncurses/tinfo/lib_setup.c +++ ncurses/tinfo/lib_setup.c 2011-02-28 13:40:42.000000000 +0000 -@@ -583,6 +583,9 @@ _nc_locale_breaks_acs(TERMINAL * termp) +@@ -584,6 +584,9 @@ _nc_locale_breaks_acs(TERMINAL * termp) } else if ((value = tigetnum("U8")) >= 0) { result = value; /* use extension feature */ } else if ((env = getenv("TERM")) != 0) { @@ -980,53 +980,3 @@ #define CANCELLED_NUMERIC (-2) #define CANCELLED_STRING (char *)(-1) ---- progs/dump_entry.c -+++ progs/dump_entry.c 2015-07-06 14:53:52.417518527 +0000 -@@ -778,8 +778,10 @@ fmt_entry(TERMTYPE *tterm, - trimmed_sgr0 = _nc_trim_sgr0(tterm); - if (strcmp(capability, trimmed_sgr0)) - capability = trimmed_sgr0; -- else -- free(trimmed_sgr0); -+ else { -+ if (trimmed_sgr0 != exit_attribute_mode) -+ free(trimmed_sgr0); -+ } - - set_attributes = my_sgr; - } ---- package/ncursest.map -+++ package/ncursest.map 2015-07-07 12:26:54.705559346 +0000 -@@ -362,13 +362,13 @@ NCURSES_TINFO_5.7.20081102 { - _nc_strfnames; - _nc_strnames; - _nc_tracechar; -+ _nc_ttytype; - _nc_use_tracef; - set_tabsize; - local: - _nc__nc_tputs_trace; - _nc_keyname; - _nc_mutex_init; -- _nc_ttytype; - _nc_unctrl; - } NCURSES_TINFO_5.6.20061217; - ---- package/ncursestw.map -+++ package/ncursestw.map 2015-07-07 12:27:23.982012359 +0000 -@@ -362,6 +362,7 @@ NCURSES_TINFO_5.7.20081102 { - _nc_strfnames; - _nc_strnames; - _nc_tracechar; -+ _nc_ttytype; - _nc_use_tracef; - _nc_viswbuf; - _nc_viswbufn; -@@ -373,7 +374,6 @@ NCURSES_TINFO_5.7.20081102 { - _nc__nc_tputs_trace; - _nc_keyname; - _nc_mutex_init; -- _nc_ttytype; - _nc_unctrl; - _nc_viswbuf2; - } NCURSES_TINFO_5.6.20061217; diff --git a/ncurses-6.0.tar.gz b/ncurses-6.0.tar.gz new file mode 100644 index 0000000..9658bea --- /dev/null +++ b/ncurses-6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260 +size 3131891 diff --git a/ncurses.changes b/ncurses.changes index 2765388..e4f58a7 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,85 @@ +------------------------------------------------------------------- +Mon Aug 17 07:18:34 UTC 2015 - werner@suse.de + +- Add ncurses patch 20150815 + + disallow "no" as a possible value for "--with-shlib-version" option, + overlooked in cleanup-changes for 20000708 (report by Tommy Alex). + + update release notes in INSTALL. + + regenerate llib-* files to help with review for release notes. +- Modify patch ncurses-5.9-overwrite.dif + +------------------------------------------------------------------- +Fri Aug 14 14:26:52 UTC 2015 - werner@suse.de + +- Add ncurses patch 20150810 + + workaround for Debian #65617, which was fixed in mawk's upstream + releases in 2009 (report by Sven Joachim). See + http://invisible-island.net/mawk/CHANGES.html#t20090727 +- Move infocmp from devel to utils package for ruby readline implementation + +------------------------------------------------------------------- +Mon Aug 12 10:11:22 UTC 2015 - werner@suse.de + +- Update to official ncurses 6.0 + + based on the patch 20150808 +- Port and rename several patches + ncurses-5.9-avoid-line-markers.dif becomes ncurses-6.0-avoid-line-markers.dif + ncurses-5.9.dif becomes ncurses-6.0.dif +- Add ncurses patch 20150808 + + build-fix for Ada95 on older platforms without stdint.h + + build-fix for Solaris, whose /bin/sh and /usr/bin/sed are non-POSIX. + + update release announcement, summarizing more than 800 changes across + more than 200 snapshots. + + minor fixes to manpages, etc., to simplify linking from announcement + page. + +------------------------------------------------------------------- +Tue Jul 28 12:26:57 UTC 2015 - werner@suse.de + +- Add ncurses patch 20150725 + + updated llib-* files. + + build-fixes for ncurses library "test_progs" rule. + + use alternate workaround for gcc 5.x feature (adapted from patch by + Mikhail Peselnik). + + add status line to tmux via xterm+sl (patch by Nicholas Marriott). + + fixes for st 0.5 from testing with tack -TD + + review/improve several manual pages to break up wall-of-text: + curs_add_wch.3x, curs_attr.3x, curs_bkgd.3x, curs_bkgrnd.3x, + curs_getcchar.3x, curs_getch.3x, curs_kernel.3x, curs_mouse.3x, + curs_outopts.3x, curs_overlay.3x, curs_pad.3x, curs_termattrs.3x + curs_trace.3x, and curs_window.3x + +------------------------------------------------------------------- +Mon Jul 27 12:01:41 UTC 2015 - werner@suse.de + +- Rework fixing the pkg-config files + +------------------------------------------------------------------- +Mon Jul 20 08:09:33 UTC 2015 - werner@suse.de + +- Add ncurses patch 20150719 + + correct an old logic error for %A and %O in tparm (report by "zreed"). + + improve documentation for signal handlers by adding section in the + curs_initscr.3x page. + + modify logic in make_keys.c to not assume anything about the size + of strnames and strfnames variables, since those may be functions + in the thread- or broken-linker configurations (problem found by + Coverity). + + modify test/configure script to check for pthreads configuration, + e.g., ncursestw library. + +------------------------------------------------------------------- +Mon Jul 13 12:34:48 UTC 2015 - werner@suse.de + +- Add ncurses patch 20150711 pre-release + + modify scripts to build/use test-packages for the pthreads + configuration of ncurses6. + + add references to ttytype and termcap symbols in demo_terminfo.c and + demo_termcap.c to ensure that when building ncursest.map, etc., that + the corresponding names such as _nc_ttytype are added to the list of + versioned symbols (report by Werner Fink) + + fix regression from 20150704 (report/patch by Werner Fink). + ------------------------------------------------------------------- Mon Jul 6 13:37:05 UTC 2015 - werner@suse.de diff --git a/ncurses.spec b/ncurses.spec index 13438ac..bf28586 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -50,20 +50,20 @@ License: MIT Group: System/Base #Git: http://ncurses.scripts.mit.edu Url: http://invisible-island.net/ncurses/ncurses.html -Source0: ncurses-5.9.tar.bz2 -Source1: ncurses-5.9-patches.tar.bz2 +Source0: ftp://invisible-island.net/ncurses/ncurses-6.0.tar.gz +Source1: ncurses-6.0-patches.tar.bz2 Source2: handle.linux Source3: README.devel Source4: ncurses-rpmlintrc Source5: tack-1.07-20150606.tar.bz2 Source6: edit.sed Source7: baselibs.conf -Patch0: ncurses-5.9.dif +Patch0: ncurses-6.0.dif Patch1: ncurses-5.9-ibm327x.dif Patch3: ncurses-5.9-overwrite.dif Patch4: ncurses-5.7-tack.dif Patch5: ncurses-5.9-environment.dif -Patch6: ncurses-5.9-avoid-line-markers.dif +Patch6: ncurses-6.0-avoid-line-markers.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _miscdir %{_datadir}/misc @@ -257,7 +257,7 @@ Authors: Eric S. Raymond %prep -%setup -q -n ncurses-5.9 +%setup -q rm -fr tack rm -f Ada95/src/terminal_interface-curses.adb rm -f Ada95/src/library.gpr @@ -519,7 +519,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src # must not use %jobs here (would lead to: ln: ncurses.h already exists) make install DESTDIR=%{root} includedir=%{_incdir} includesubdir=/ncurses libdir=%{_libdir} ln -sf %{_incdir}/ncurses/{curses,ncurses,term,termcap}.h %{root}%{_incdir} - sh %{S:6} --cflags "-I%{_incdir}/ncurses" --libs "-lncurses" --libs "-ltinfo" %{root}%{_bindir}/ncurses6-config + sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncurses" --libs "-lncurses" --libs "-ltinfo" %{root}%{_bindir}/ncurses6-config mkdir pc mv -f %{root}%{_libdir}/pkgconfig/*.pc pc/ # @@ -560,11 +560,13 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src cp fallback.c.build ncurses/fallback.c make -C c++ etip.h make %{?_smp_mflags} - sed -ri "s@^(libdir=).show_libdir@\1%{_libdir}/ncurses5@;s@^(includedir=).show_includedir@\1%{_incdir}/ncurses5/ncurse5@" misc/gen-pkgconfig + sed -ri 's@^(LDFLAGS=)$@\1-L\\${libdir}@ + s@^(libdir=).show_libdir@\1%{_libdir}/ncurses5@ + s@^(includedir=).show_includedir@\1%{_incdir}/ncurses5@' misc/gen-pkgconfig # must not use %jobs here (would lead to: ln: ncurses.h already exists) make install.libs install.includes DESTDIR=%{root} includedir=%{_incdir}/ncurses5 includesubdir=/ncurses libdir=%{_libdir}/ncurses5 ln -sf %{_incdir}/ncurses5/ncurses/{curses,ncurses,term}.h %{root}%{_incdir}/ncurses5/ - sh %{S:6} --cflags "-I%{_incdir}/ncurses5/ncurses -I%{_incdir}/ncurses5" --libs "-L%{_libdir}/ncurses5 -lncurses" --libs "-ltinfo" %{root}%{_bindir}/ncurses5-config + sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncurses5/ncurses -I%{_incdir}/ncurses5" --libs "-L%{_libdir}/ncurses5 -lncurses" --libs "-ltinfo" %{root}%{_bindir}/ncurses5-config pushd man sh ../edit_man.sh normal installing %{root}%{_mandir} . ncurses5-config.1 popd @@ -573,6 +575,10 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src test -e "$pc" || break base=${pc%%.pc} base=${base##*/} + case "$base" in + tic) sed -ri 's@^(Requires.private: ).*@\1tinfo5@' "$pc" ;; + *) sed -ri 's@^(Requires.private: ).*@\1ncurses5@' "$pc" + esac mv -f $pc pc/${base}5.pc done @@ -602,7 +608,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src make %{?_smp_mflags} # must not use %jobs here (would lead to: ln: ncurses.h already exists) make install.libs install.includes DESTDIR=%{root} includedir=%{_incdir} includesubdir=/ncursesw libdir=%{_libdir} - sh %{S:6} --cflags "-I%{_incdir}/ncursesw" --libs "-lncursesw" --libs "-ltinfo" %{root}%{_bindir}/ncursesw6-config + sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncursesw" --libs "-lncursesw" --libs "-ltinfo" %{root}%{_bindir}/ncursesw6-config pushd man sh ../edit_man.sh normal installing %{root}%{_mandir} . ncursesw6-config.1 popd @@ -632,9 +638,12 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src cp fallback.c.build ncurses/fallback.c make -C c++ etip.h make %{?_smp_mflags} + sed -ri 's@^(LDFLAGS=)$@\1-L\\${libdir}@ + s@^(libdir=).show_libdir@\1%{_libdir}/ncurses5@ + s@^(includedir=).show_includedir@\1%{_incdir}/ncurses5/ncursesw@' misc/gen-pkgconfig # must not use %jobs here (would lead to: ln: ncurses.h already exists) make install.libs install.includes DESTDIR=%{root} includedir=%{_incdir}/ncurses5 includesubdir=/ncursesw libdir=%{_libdir}/ncurses5 - sh %{S:6} --cflags "-I%{_incdir}/ncurses5/ncursesw -I%{_incdir}/ncurses5" --libs "-L%{_libdir}/ncurses5 -lncursesw" --libs "-ltinfo" %{root}%{_bindir}/ncursesw5-config + sh %{S:6} --cflags "-D_GNU_SOURCE -I%{_incdir}/ncurses5/ncursesw -I%{_incdir}/ncurses5" --libs "-L%{_libdir}/ncurses5 -lncursesw" --libs "-ltinfo" %{root}%{_bindir}/ncursesw5-config pushd man sh ../edit_man.sh normal installing %{root}%{_mandir} . ncursesw5-config.1 popd @@ -643,6 +652,14 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src test -e "$pc" || break base=${pc%%.pc} base=${base##*/} + case "$base" in + tinfo) sed -ri 's@(includedir=/usr/include/ncurses5/ncurses)w.*@\1@' "$pc" ;; + tic) sed -ri 's@(includedir=/usr/include/ncurses5/ncurses)w.*@\1@' "$pc" ;; + esac + case "$base" in + tic) sed -ri 's@^(Requires.private: ).*@\1tinfo5@' "$pc" ;; + *) sed -ri 's@^(Requires.private: ).*@\1ncurses5@' "$pc" + esac mv -f $pc pc/${base}5.pc done @@ -666,8 +683,8 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src case "${lib##*/}" in libncurses*) rm -f ${lnk} - echo '/* GNU ld script */' > ${lnk} - echo "INPUT(${lib} AS_NEEDED(-ltinfo))" >> ${lnk} + echo '/* GNU ld script */' > ${lnk} + echo "INPUT(${lib} AS_NEEDED(-ltinfo -ldl))" >> ${lnk} ;; *) ln -sf ${lib} %{buildroot}%{_libdir}/${model}.so esac @@ -842,6 +859,7 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src %files -n ncurses-utils %defattr(-,root,root) %{_bindir}/clear +%{_bindir}/infocmp %{_bindir}/reset %{_bindir}/tabs %{_bindir}/toe @@ -871,7 +889,6 @@ sed -ri '/^iTerm/{s@iterm\|@@}' misc/terminfo.src %doc %{_defaultdocdir}/ncurses/* %{_bindir}/ncurses*-config %{_bindir}/captoinfo -%{_bindir}/infocmp %{_bindir}/infotocap %{_bindir}/tic %dir %{_incdir}/ncurses/