From e6319890faa5df5f8cdc9d6bfeb72a3bc3364ed4 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 28 Oct 2013 08:09:20 +0000 Subject: [PATCH] ncurses 5.9 - patch 20131027 + correct/simplify ifdef's for cur_term versus broken-linker and reentrant options (report by Jean-Pierre Flori, cf: 20090530). + modify release/version combinations in test build-scripts to make them more consistent with other packages. --- Ada95/make-tar.sh | 13 ++++++++----- MANIFEST | 1 + NEWS | 8 +++++++- dist.mk | 4 ++-- ncurses/curses.priv.h | 4 ++-- ncurses/tinfo/lib_cur_term.c | 19 ++++++++----------- package/debian-mingw/changelog | 4 ++-- package/debian-mingw64/changelog | 4 ++-- package/debian/changelog | 4 ++-- package/mingw-ncurses.nsi | 4 ++-- package/mingw-ncurses.spec | 8 ++++---- package/ncurses.spec | 10 +++++----- test/make-tar.sh | 13 ++++++++----- test/package/mingw-ncurses-examples.spec | 14 ++++++++------ 14 files changed, 61 insertions(+), 49 deletions(-) diff --git a/Ada95/make-tar.sh b/Ada95/make-tar.sh index 608bbdff..7569277d 100644 --- a/Ada95/make-tar.sh +++ b/Ada95/make-tar.sh @@ -1,7 +1,7 @@ #!/bin/sh -# $Id: make-tar.sh,v 1.12 2011/03/26 19:07:38 tom Exp $ +# $Id: make-tar.sh,v 1.14 2013/10/26 23:10:24 tom Exp $ ############################################################################## -# Copyright (c) 2010,2011 Free Software Foundation, Inc. # +# Copyright (c) 2010-2011,2013 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -66,11 +66,11 @@ edit_specfile() { make_changelog() { test -f $1 && chmod u+w $1 cat >$1 <_term))) #define IsValidScreen(sp) (HasTerminal(sp) && !IsPreScreen(sp)) -#if BROKEN_LINKER || USE_REENTRANT +#if USE_REENTRANT #define CurTerm _nc_prescreen._cur_term #else #define CurTerm cur_term diff --git a/ncurses/tinfo/lib_cur_term.c b/ncurses/tinfo/lib_cur_term.c index c67e1631..eaaacbcb 100644 --- a/ncurses/tinfo/lib_cur_term.c +++ b/ncurses/tinfo/lib_cur_term.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2010,2012 Free Software Foundation, Inc. * + * Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -39,14 +39,12 @@ #include #include /* ospeed */ -MODULE_ID("$Id: lib_cur_term.c,v 1.31 2012/11/18 02:12:43 tom Exp $") +MODULE_ID("$Id: lib_cur_term.c,v 1.32 2013/10/28 00:10:27 tom Exp $") #undef CUR #define CUR termp->type. -#if BROKEN_LINKER && !USE_REENTRANT -NCURSES_EXPORT_VAR(TERMINAL *) cur_term = 0; -#elif BROKEN_LINKER || USE_REENTRANT +#if USE_REENTRANT NCURSES_EXPORT(TERMINAL *) NCURSES_SP_NAME(_nc_get_cur_term) (NCURSES_SP_DCL0) @@ -55,6 +53,7 @@ NCURSES_SP_NAME(_nc_get_cur_term) (NCURSES_SP_DCL0) } #if NCURSES_SP_FUNCS + NCURSES_EXPORT(TERMINAL *) _nc_get_cur_term(void) { @@ -87,10 +86,10 @@ NCURSES_SP_NAME(set_curterm) (NCURSES_SP_DCLx TERMINAL * termp) oldterm = cur_term; if (SP_PARM) SP_PARM->_term = termp; -#if BROKEN_LINKER && !USE_REENTRANT - cur_term = termp; -#else +#if USE_REENTRANT CurTerm = termp; +#else + cur_term = termp; #endif if (termp != 0) { #ifdef USE_TERM_DRIVER @@ -133,9 +132,7 @@ NCURSES_SP_NAME(del_curterm) (NCURSES_SP_DCLx TERMINAL * termp) TERMINAL_CONTROL_BLOCK *TCB = (TERMINAL_CONTROL_BLOCK *) termp; #endif TERMINAL *cur = ( -#if BROKEN_LINKER && !USE_REENTRANT - cur_term -#elif BROKEN_LINKER || USE_REENTRANT +#if USE_REENTRANT NCURSES_SP_NAME(_nc_get_cur_term) (NCURSES_SP_ARG) #else cur_term diff --git a/package/debian-mingw/changelog b/package/debian-mingw/changelog index a7bdadae..691745cf 100644 --- a/package/debian-mingw/changelog +++ b/package/debian-mingw/changelog @@ -1,8 +1,8 @@ -ncurses6 (5.9-20131019) unstable; urgency=low +ncurses6 (5.9-20131027) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Sat, 19 Oct 2013 14:39:58 -0400 + -- Thomas E. Dickey Sun, 27 Oct 2013 06:27:05 -0400 ncurses6 (5.9-20131005) unstable; urgency=low diff --git a/package/debian-mingw64/changelog b/package/debian-mingw64/changelog index a7bdadae..691745cf 100644 --- a/package/debian-mingw64/changelog +++ b/package/debian-mingw64/changelog @@ -1,8 +1,8 @@ -ncurses6 (5.9-20131019) unstable; urgency=low +ncurses6 (5.9-20131027) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Sat, 19 Oct 2013 14:39:58 -0400 + -- Thomas E. Dickey Sun, 27 Oct 2013 06:27:05 -0400 ncurses6 (5.9-20131005) unstable; urgency=low diff --git a/package/debian/changelog b/package/debian/changelog index f4bca1ab..ac1371c0 100644 --- a/package/debian/changelog +++ b/package/debian/changelog @@ -1,8 +1,8 @@ -ncurses6 (5.9-20131019) unstable; urgency=low +ncurses6 (5.9-20131027) unstable; urgency=low * latest weekly patch - -- Thomas E. Dickey Sat, 19 Oct 2013 14:39:58 -0400 + -- Thomas E. Dickey Sun, 27 Oct 2013 06:27:05 -0400 ncurses6 (5.9-20120608) unstable; urgency=low diff --git a/package/mingw-ncurses.nsi b/package/mingw-ncurses.nsi index 032cade9..327c26b4 100644 --- a/package/mingw-ncurses.nsi +++ b/package/mingw-ncurses.nsi @@ -1,4 +1,4 @@ -; $Id: mingw-ncurses.nsi,v 1.7 2013/10/19 20:17:03 tom Exp $ +; $Id: mingw-ncurses.nsi,v 1.9 2013/10/27 10:27:05 tom Exp $ ; TODO add examples ; TODO bump ABI to 6 @@ -10,7 +10,7 @@ !define VERSION_MAJOR "5" !define VERSION_MINOR "9" !define VERSION_YYYY "2013" -!define VERSION_MMDD "1019" +!define VERSION_MMDD "1027" !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD} !define MY_ABI "5" diff --git a/package/mingw-ncurses.spec b/package/mingw-ncurses.spec index 2963b01d..a0d173f1 100644 --- a/package/mingw-ncurses.spec +++ b/package/mingw-ncurses.spec @@ -2,11 +2,11 @@ Summary: shared libraries for terminal handling Name: mingw32-ncurses6 -Release: 5.9 -Version: 20131019 +Version: 5.9 +Release: 20131027 License: X11 Group: Development/Libraries -Source: ncurses-%{release}-%{version}.tgz +Source: ncurses-%{version}-%{release}.tgz # URL: http://invisible-island.net/ncurses/ BuildRequires: mingw32-filesystem >= 95 @@ -74,7 +74,7 @@ This package is used for testing ABI 6 with cross-compiles to MinGW. --without-tests %define debug_package %{nil} -%setup -q -n ncurses-%{release}-%{version} +%setup -q -n ncurses-%{version}-%{release} %build mkdir BUILD-W32 diff --git a/package/ncurses.spec b/package/ncurses.spec index 27dc3e40..4080c6ce 100644 --- a/package/ncurses.spec +++ b/package/ncurses.spec @@ -1,10 +1,10 @@ Summary: shared libraries for terminal handling Name: ncurses6 -Release: 5.9 -Version: 20131019 +Version: 5.9 +Release: 20131027 License: X11 Group: Development/Libraries -Source: ncurses-%{release}-%{version}.tgz +Source: ncurses-%{version}-%{release}.tgz # URL: http://invisible-island.net/ncurses/ %define CC_NORMAL -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion @@ -22,7 +22,7 @@ This package is used for testing ABI 6. %prep %define debug_package %{nil} -%setup -q -n ncurses-%{release}-%{version} +%setup -q -n ncurses-%{version}-%{release} %build CFLAGS="%{CC_NORMAL}" \ @@ -85,7 +85,7 @@ rm -rf $RPM_BUILD_ROOT * Sat Mar 09 2013 Thomas E. Dickey - add --with-cxx-shared option to demonstrate c++ binding as shared library -* Sat Oct 26 2012 Thomas E. Dickey +* Sat Oct 27 2012 Thomas E. Dickey - add ncurses program as "ncurses6" to provide demonstration. * Fri Jun 08 2012 Thomas E. Dickey diff --git a/test/make-tar.sh b/test/make-tar.sh index 0ebccbbc..a71e1e1e 100644 --- a/test/make-tar.sh +++ b/test/make-tar.sh @@ -1,7 +1,7 @@ #!/bin/sh -# $Id: make-tar.sh,v 1.10 2011/03/26 20:46:51 tom Exp $ +# $Id: make-tar.sh,v 1.12 2013/10/26 23:11:43 tom Exp $ ############################################################################## -# Copyright (c) 2010,2011 Free Software Foundation, Inc. # +# Copyright (c) 2010-2011,2013 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -66,11 +66,11 @@ edit_specfile() { make_changelog() { test -f $1 && chmod u+w $1 cat >$1 <