]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 5.9 - patch 20131027
authorThomas E. Dickey <dickey@invisible-island.net>
Mon, 28 Oct 2013 08:09:20 +0000 (08:09 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Mon, 28 Oct 2013 08:09:20 +0000 (08:09 +0000)
+ 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.

14 files changed:
Ada95/make-tar.sh
MANIFEST
NEWS
dist.mk
ncurses/curses.priv.h
ncurses/tinfo/lib_cur_term.c
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec
test/make-tar.sh
test/package/mingw-ncurses-examples.spec

index 608bbdff84455c9525fd383deb1cf380877c96fb..7569277d84b734335a6cd1c151fc22eb78069f9c 100644 (file)
@@ -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 <<EOF
-`echo $PKG_NAME|tr '[A-Z]' '[a-z]'` ($NCURSES_PATCH) unstable; urgency=low
+`echo $PKG_NAME|tr '[A-Z]' '[a-z]'` ($NCURSES_MAJOR.$NCURSES_MINOR-$NCURSES_PATCH) unstable; urgency=low
 
   * snapshot of ncurses subpackage for $PKG_NAME.
 
- -- `head -1 $HOME/.signature`  `date -R`
+ -- `head -1 $HOME/.signature`  `date -R`
 EOF
 }
 
@@ -108,7 +108,10 @@ for spec in $BUILD/$ROOTNAME/package/*.spec
 do
        edit_specfile $spec
 done
-make_changelog $BUILD/$ROOTNAME/package/debian/changelog
+for spec in $BUILD/$ROOTNAME/package/debian*
+do
+       make_changelog $spec/changelog
+done
 
 cp -p ../man/MKada_config.in $BUILD/$ROOTNAME/doc/
 if test -z "$NO_HTML_DOCS"
index 04faec085d31f34d4a2b0ec83b6482255d4b91a9..b4284b82423d53e62ff541f48673d8055a92aa8d 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
 ./test/package/debian/rules
 ./test/package/debian/source/format
 ./test/package/debian/watch
+./test/package/mingw-ncurses-examples.spec
 ./test/package/ncurses-examples.spec
 ./test/programs
 ./test/railroad.c
diff --git a/NEWS b/NEWS
index 7b969334fb6e71110328c68f3b19144994ddec4a..4a40bbee99a8c26b1e6bc10424c1d8356c031df0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,7 +25,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.2122 2013/10/20 00:08:12 tom Exp $
+-- $Id: NEWS,v 1.2126 2013/10/28 00:17:08 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -45,6 +45,12 @@ See the AUTHORS file for the corresponding full names.
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
+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.
+
 20131019
        + add nc_mingw.h to installed headers for MinGW port; needed for
          compiling ncurses-examples.
diff --git a/dist.mk b/dist.mk
index 60d0de97eb6fc80fd25bec988dba2ec1be4b1ab7..2acee831be40adf6dcca3e9433f93c20008bf840 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -25,7 +25,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.950 2013/10/19 18:39:58 tom Exp $
+# $Id: dist.mk,v 1.952 2013/10/27 10:27:05 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -37,7 +37,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 5
 NCURSES_MINOR = 9
-NCURSES_PATCH = 20131019
+NCURSES_PATCH = 20131027
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index 46c63bb1f0eefb96011848c3d6a98d4d3f1e410c..836189e04b1a92ca909b399205eab5082355823a 100644 (file)
@@ -34,7 +34,7 @@
  ****************************************************************************/
 
 /*
- * $Id: curses.priv.h,v 1.527 2013/08/31 17:02:41 tom Exp $
+ * $Id: curses.priv.h,v 1.528 2013/10/28 00:02:27 tom Exp $
  *
  *     curses.priv.h
  *
@@ -350,7 +350,7 @@ color_t;
 #define HasTerminal(sp)      (((sp) != 0) && (0 != ((sp)->_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
index c67e163103eeac0b2a4d90441e65f535974f2f25..eaaacbcbe51f9146de687bb097ae93aa63065ea8 100644 (file)
@@ -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            *
 #include <curses.priv.h>
 #include <termcap.h>           /* 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
index a7bdadae9c0d1cf84f766472fcb9135449c755b7..691745cf252ab2040e755382b0c9ac22d82a6fea 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (5.9-20131019) unstable; urgency=low
+ncurses6 (5.9-20131027) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 19 Oct 2013 14:39:58 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Oct 2013 06:27:05 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index a7bdadae9c0d1cf84f766472fcb9135449c755b7..691745cf252ab2040e755382b0c9ac22d82a6fea 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (5.9-20131019) unstable; urgency=low
+ncurses6 (5.9-20131027) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 19 Oct 2013 14:39:58 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Oct 2013 06:27:05 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index f4bca1ab069a693777cb02cdcda58f7e3b5d8fe0..ac1371c0041df5c564ae5f2063084677ad3760fc 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (5.9-20131019) unstable; urgency=low
+ncurses6 (5.9-20131027) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 19 Oct 2013 14:39:58 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Oct 2013 06:27:05 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index 032cade93011d723fc166ec652a643b1a1fd82c1..327c26b464faa804cb82dd097a474d662cf20412 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.7 2013/10/19 20:17:03 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.9 2013/10/27 10:27:05 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "5"\r
 !define VERSION_MINOR "9"\r
 !define VERSION_YYYY  "2013"\r
-!define VERSION_MMDD  "1019"\r
+!define VERSION_MMDD  "1027"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index 2963b01d181431172c6156ee25dbd832e6e63c21..a0d173f120411baa0c26e75eb2f800855fb4b219 100644 (file)
@@ -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
index 27dc3e40d8bc378665b8b1b98357abed81162e61..4080c6cede91842748e58aff7de2be27910b7239 100644 (file)
@@ -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
index 0ebccbbc6e87abada2f350e53cc12065b41b0bc7..a71e1e1e0f97af73a39a22a564cedd6e4a501acf 100644 (file)
@@ -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 <<EOF
-`echo $PKG_NAME|tr '[A-Z]' '[a-z]'` ($NCURSES_PATCH) unstable; urgency=low
+`echo $PKG_NAME|tr '[A-Z]' '[a-z]'` ($NCURSES_MAJOR.$NCURSES_MINOR-$NCURSES_PATCH) unstable; urgency=low
 
   * snapshot of ncurses subpackage for $PKG_NAME.
 
- -- `head -1 $HOME/.signature`  `date -R`
+ -- `head -1 $HOME/.signature`  `date -R`
 EOF
 }
 
@@ -108,7 +108,10 @@ for spec in $BUILD/$ROOTNAME/package/*.spec
 do
        edit_specfile $spec
 done
-make_changelog $BUILD/$ROOTNAME/package/debian/changelog
+for spec in $BUILD/$ROOTNAME/package/debian*
+do
+       make_changelog $spec/changelog
+done
 
 cp -p $SOURCE/NEWS $BUILD/$ROOTNAME
 
index 7eba9c5b6f5c44b2d1ec5277649582473f219562..fdc2a69fac7c1742db9efcc53da8b875acbc9b0a 100644 (file)
@@ -1,14 +1,16 @@
+Summary: ncurses-examples - example/test programs from ncurses
 %?mingw_package_header
 
 %define AppProgram ncurses-examples
-# $Id: mingw-ncurses-examples.spec,v 1.1 2013/10/19 22:04:58 tom Exp $
-Summary: shared libraries for terminal handling
+%define AppVersion MAJOR.MINOR
+%define AppRelease YYYYMMDD
+# $Id: mingw-ncurses-examples.spec,v 1.3 2013/10/26 23:30:21 tom Exp $
 Name: mingw32-ncurses6-examples
-Release: 5.9
-Version: 20131019
+Version: %{AppVersion}
+Release: %{AppRelease}
 License: X11
 Group: Development/Libraries
-Source: ncurses-examples-%{version}.tgz
+Source: ncurses-examples-%{release}.tgz
 # URL: http://invisible-island.net/ncurses/
 
 BuildRequires:  mingw32-ncurses6
@@ -57,7 +59,7 @@ This package is used for testing ABI 6 with cross-compiles to MinGW.
        --verbose
 
 %define debug_package %{nil}
-%setup -q -n ncurses-examples-%{version}
+%setup -q -n ncurses-examples-%{release}
 
 %build
 mkdir BUILD-W32