]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 6.1 - patch 20190928
authorThomas E. Dickey <dickey@invisible-island.net>
Sat, 28 Sep 2019 15:09:31 +0000 (15:09 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Sat, 28 Sep 2019 15:09:31 +0000 (15:09 +0000)
+ amend the ncurse*-config and pc-files to take into account the rpath
  hack which differed between those files.
+ improve -L option filtering in ncurses*-config
+ improve recovery from error when reading command-character in
  test/ncurses.c, showing the relevant error message and not exiting on
  EINTR (cf: 20180922)

17 files changed:
NEWS
VERSION
aclocal.m4
configure
configure.in
dist.mk
misc/gen-pkgconfig.in
misc/ncurses-config.in
misc/terminfo.src
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec
package/ncursest.spec
test/ncurses.c

diff --git a/NEWS b/NEWS
index 54d79af0a3eddc1137c684cbfee590548c7f74a4..f5a22c165a47a6996945fcd2a0e40fcefe96fdc8 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.3376 2019/09/21 23:47:04 tom Exp $
+-- $Id: NEWS,v 1.3380 2019/09/28 12:57:39 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -45,6 +45,14 @@ 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.
 
+20190928
+       + amend the ncurse*-config and pc-files to take into account the rpath
+         hack which differed between those files.
+       + improve -L option filtering in ncurses*-config
+       + improve recovery from error when reading command-character in
+         test/ncurses.c, showing the relevant error message and not exiting on
+         EINTR (cf: 20180922)
+
 20190921
        + add a note in resizeterm manpage about top-level windows which touch
          the screen's borders.
diff --git a/VERSION b/VERSION
index c288d19035663abc797a07637c287b133dd9889a..4e0166119a3fb9ec328f027e0262166b28800044 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:10 6.1     20190921
+5:0:10 6.1     20190928
index 160b91276c34bba9790b9916c0787e4be4b87ea5..389d1ad939715fb3b325b934c8469a8f83848ab4 100644 (file)
@@ -28,7 +28,7 @@ dnl***************************************************************************
 dnl
 dnl Author: Thomas E. Dickey 1995-on
 dnl
-dnl $Id: aclocal.m4,v 1.883 2019/09/21 22:11:35 tom Exp $
+dnl $Id: aclocal.m4,v 1.884 2019/09/27 21:08:36 tom Exp $
 dnl Macros used in NCURSES auto-configuration script.
 dnl
 dnl These macros are maintained separately from NCURSES.  The copyright on
@@ -3850,6 +3850,76 @@ then
 fi
 ])dnl
 dnl ---------------------------------------------------------------------------
+dnl CF_LD_SEARCHPATH version: 2 updated: 2019/09/26 20:34:14
+dnl ----------------
+dnl Try to obtain the linker's search-path, for use in scripts.
+dnl
+dnl Ignore LD_LIBRARY_PATH, etc.
+AC_DEFUN([CF_LD_SEARCHPATH],[
+AC_CACHE_CHECK(for linker search path,cf_cv_ld_searchpath,[
+
+if test "$cross_compiling" != yes ; then
+
+# GNU binutils' ld does not involve permissions which may stop ldconfig.
+cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[[("=]][[("=]]*,,g' -e 's/"[[)]];//gp' | sort -u`
+
+# The -NX options tell newer versions of Linux ldconfig to not attempt to
+# update the cache, which makes it run faster.
+test -z "$cf_pathlist" && \
+       cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[[         ]]/d' -e 's/:$//' | sort -u`
+
+test -z "$cf_pathlist" &&
+       cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[[  ]]/d' -e 's/:$//p' | sort -u`
+
+# This works with OpenBSD 6.5, which lists only filenames
+test -z "$cf_pathlist" &&
+       cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*[$],\1,p' | sort -u`
+
+if test -z "$cf_pathlist"
+then
+       # dyld default path with MacOS
+       if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
+       then
+               # do this to bypass check
+               cf_cv_ld_searchpath='$HOME/lib'
+               cf_pathlist="/usr/local/lib /lib /usr/lib"
+       fi
+fi
+
+if test -z "$cf_pathlist"
+then
+       # Solaris is hardcoded
+       if test -d /opt/SUNWspro/lib
+       then
+               cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
+       elif test -d /usr/ccs/lib
+       then
+               cf_pathlist="/usr/ccs/lib /usr/lib"
+       fi
+fi
+
+fi
+
+# If nothing else, assume it is conventional
+test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
+
+# Finally, check that this is only directories
+for cf_path in [$]0 $cf_pathlist
+do
+       if test -d "$cf_path"; then
+               test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
+               cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
+       fi
+done
+
+# Ensure that it is nonempty
+test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
+])
+
+LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
+AC_SUBST(LD_SEARCHPATH)
+])dnl
+dnl ---------------------------------------------------------------------------
 dnl CF_LIBRARY_PATH version: 10 updated: 2015/04/15 19:08:48
 dnl ---------------
 dnl Construct a search-list of directories for a nonstandard library-file
index 06250519ef20bb973afe6e6562d5ec4e9c7270de..15a41d6d3df27d8087ad769eb0b08cc38df2edf2 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.689 .
+# From configure.in Revision: 1.690 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by Autoconf 2.52.20190901.
 #
@@ -26022,6 +26022,77 @@ else
        CHECK_BUILD=
 fi
 
+# This is used for the *-config script and *.pc data files.
+
+echo "$as_me:26027: checking for linker search path" >&5
+echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
+if test "${cf_cv_ld_searchpath+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+if test "$cross_compiling" != yes ; then
+
+# GNU binutils' ld does not involve permissions which may stop ldconfig.
+cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
+
+# The -NX options tell newer versions of Linux ldconfig to not attempt to
+# update the cache, which makes it run faster.
+test -z "$cf_pathlist" && \
+       cf_pathlist=`ldconfig -NX -v 2>/dev/null | sed -e '/^[  ]/d' -e 's/:$//' | sort -u`
+
+test -z "$cf_pathlist" &&
+       cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e '/^[   ]/d' -e 's/:$//p' | sort -u`
+
+# This works with OpenBSD 6.5, which lists only filenames
+test -z "$cf_pathlist" &&
+       cf_pathlist=`ldconfig -v 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
+
+if test -z "$cf_pathlist"
+then
+       # dyld default path with MacOS
+       if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
+       then
+               # do this to bypass check
+               cf_cv_ld_searchpath='$HOME/lib'
+               cf_pathlist="/usr/local/lib /lib /usr/lib"
+       fi
+fi
+
+if test -z "$cf_pathlist"
+then
+       # Solaris is hardcoded
+       if test -d /opt/SUNWspro/lib
+       then
+               cf_pathlist="/opt/SUNWspro/lib /usr/ccs/lib /usr/lib"
+       elif test -d /usr/ccs/lib
+       then
+               cf_pathlist="/usr/ccs/lib /usr/lib"
+       fi
+fi
+
+fi
+
+# If nothing else, assume it is conventional
+test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
+
+# Finally, check that this is only directories
+for cf_path in $0 $cf_pathlist
+do
+       if test -d "$cf_path"; then
+               test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
+               cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
+       fi
+done
+
+# Ensure that it is nonempty
+test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
+
+fi
+echo "$as_me:26091: result: $cf_cv_ld_searchpath" >&5
+echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
+
+LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
+
 cat >>confdefs.h <<\EOF
 #define HAVE_CURSES_DATA_BOOLNAMES 1
 EOF
@@ -26107,7 +26178,7 @@ DEFS=-DHAVE_CONFIG_H
 : ${CONFIG_STATUS=./config.status}
 ac_clean_files_save=$ac_clean_files
 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ echo "$as_me:26110: creating $CONFIG_STATUS" >&5
+{ echo "$as_me:26181: creating $CONFIG_STATUS" >&5
 echo "$as_me: creating $CONFIG_STATUS" >&6;}
 cat >$CONFIG_STATUS <<_ACEOF
 #! $SHELL
@@ -26283,7 +26354,7 @@ cat >>$CONFIG_STATUS <<\EOF
     echo "$ac_cs_version"; exit 0 ;;
   --he | --h)
     # Conflict between --help and --header
-    { { echo "$as_me:26286: error: ambiguous option: $1
+    { { echo "$as_me:26357: error: ambiguous option: $1
 Try \`$0 --help' for more information." >&5
 echo "$as_me: error: ambiguous option: $1
 Try \`$0 --help' for more information." >&2;}
@@ -26302,7 +26373,7 @@ Try \`$0 --help' for more information." >&2;}
     ac_need_defaults=false;;
 
   # This is an error.
-  -*) { { echo "$as_me:26305: error: unrecognized option: $1
+  -*) { { echo "$as_me:26376: error: unrecognized option: $1
 Try \`$0 --help' for more information." >&5
 echo "$as_me: error: unrecognized option: $1
 Try \`$0 --help' for more information." >&2;}
@@ -26421,7 +26492,7 @@ do
   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
-  *) { { echo "$as_me:26424: error: invalid argument: $ac_config_target" >&5
+  *) { { echo "$as_me:26495: error: invalid argument: $ac_config_target" >&5
 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
    { (exit 1); exit 1; }; };;
   esac
@@ -26784,6 +26855,7 @@ s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
+s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
 CEOF
 
 EOF
@@ -26916,7 +26988,7 @@ done; }
   esac
 
   if test x"$ac_file" != x-; then
-    { echo "$as_me:26919: creating $ac_file" >&5
+    { echo "$as_me:26991: creating $ac_file" >&5
 echo "$as_me: creating $ac_file" >&6;}
     rm -f "$ac_file"
   fi
@@ -26934,7 +27006,7 @@ echo "$as_me: creating $ac_file" >&6;}
       -) echo $tmp/stdin ;;
       [\\/$]*)
          # Absolute (can't be DOS-style, as IFS=:)
-         test -f "$f" || { { echo "$as_me:26937: error: cannot find input file: $f" >&5
+         test -f "$f" || { { echo "$as_me:27009: error: cannot find input file: $f" >&5
 echo "$as_me: error: cannot find input file: $f" >&2;}
    { (exit 1); exit 1; }; }
          echo $f;;
@@ -26947,7 +27019,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
            echo $srcdir/$f
          else
            # /dev/null tree
-           { { echo "$as_me:26950: error: cannot find input file: $f" >&5
+           { { echo "$as_me:27022: error: cannot find input file: $f" >&5
 echo "$as_me: error: cannot find input file: $f" >&2;}
    { (exit 1); exit 1; }; }
          fi;;
@@ -26963,7 +27035,7 @@ cat >>$CONFIG_STATUS <<\EOF
       if test -n "$ac_seen"; then
         ac_used=`grep '@datarootdir@' $ac_item`
         if test -z "$ac_used"; then
-          { echo "$as_me:26966: WARNING: datarootdir was used implicitly but not set:
+          { echo "$as_me:27038: WARNING: datarootdir was used implicitly but not set:
 $ac_seen" >&5
 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
 $ac_seen" >&2;}
@@ -26972,7 +27044,7 @@ $ac_seen" >&2;}
       fi
       ac_seen=`grep '${datarootdir}' $ac_item`
       if test -n "$ac_seen"; then
-        { echo "$as_me:26975: WARNING: datarootdir was used explicitly but not set:
+        { echo "$as_me:27047: WARNING: datarootdir was used explicitly but not set:
 $ac_seen" >&5
 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
 $ac_seen" >&2;}
@@ -27009,7 +27081,7 @@ s,@INSTALL@,$ac_INSTALL,;t t
             ac_init=`egrep '[  ]*'$ac_name'[   ]*=' $ac_file`
             if test -z "$ac_init"; then
               ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
-              { echo "$as_me:27012: WARNING: Variable $ac_name is used but was not set:
+              { echo "$as_me:27084: WARNING: Variable $ac_name is used but was not set:
 $ac_seen" >&5
 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
 $ac_seen" >&2;}
@@ -27020,7 +27092,7 @@ $ac_seen" >&2;}
     egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
     if test -s $tmp/out; then
       ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
-      { echo "$as_me:27023: WARNING: Some variables may not be substituted:
+      { echo "$as_me:27095: WARNING: Some variables may not be substituted:
 $ac_seen" >&5
 echo "$as_me: WARNING: Some variables may not be substituted:
 $ac_seen" >&2;}
@@ -27069,7 +27141,7 @@ for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
   * )   ac_file_in=$ac_file.in ;;
   esac
 
-  test x"$ac_file" != x- && { echo "$as_me:27072: creating $ac_file" >&5
+  test x"$ac_file" != x- && { echo "$as_me:27144: creating $ac_file" >&5
 echo "$as_me: creating $ac_file" >&6;}
 
   # First look for the input files in the build tree, otherwise in the
@@ -27080,7 +27152,7 @@ echo "$as_me: creating $ac_file" >&6;}
       -) echo $tmp/stdin ;;
       [\\/$]*)
          # Absolute (can't be DOS-style, as IFS=:)
-         test -f "$f" || { { echo "$as_me:27083: error: cannot find input file: $f" >&5
+         test -f "$f" || { { echo "$as_me:27155: error: cannot find input file: $f" >&5
 echo "$as_me: error: cannot find input file: $f" >&2;}
    { (exit 1); exit 1; }; }
          echo $f;;
@@ -27093,7 +27165,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
            echo $srcdir/$f
          else
            # /dev/null tree
-           { { echo "$as_me:27096: error: cannot find input file: $f" >&5
+           { { echo "$as_me:27168: error: cannot find input file: $f" >&5
 echo "$as_me: error: cannot find input file: $f" >&2;}
    { (exit 1); exit 1; }; }
          fi;;
@@ -27151,7 +27223,7 @@ cat >>$CONFIG_STATUS <<\EOF
   rm -f $tmp/in
   if test x"$ac_file" != x-; then
     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
-      { echo "$as_me:27154: $ac_file is unchanged" >&5
+      { echo "$as_me:27226: $ac_file is unchanged" >&5
 echo "$as_me: $ac_file is unchanged" >&6;}
     else
       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
@@ -27496,7 +27568,7 @@ cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQ
                                (cygdll|msysdll|mingw)
                                        test "x$with_shared_cxx" = xno && test -n "$verbose" && echo "  overriding CXX_MODEL to SHARED" 1>&6
 
-echo "${as_me:-configure}:27499: testing overriding CXX_MODEL to SHARED ..." 1>&5
+echo "${as_me:-configure}:27571: testing overriding CXX_MODEL to SHARED ..." 1>&5
 
                                        with_shared_cxx=yes
                                        ;;
index 889261af2efb0d36a1ea5972ce04757af814f940..c8991a4438eaec5ae862750a1fb298b15b74cdbd 100644 (file)
@@ -28,14 +28,14 @@ dnl***************************************************************************
 dnl
 dnl Author: Thomas E. Dickey 1995-on
 dnl
-dnl $Id: configure.in,v 1.689 2019/09/07 20:06:52 tom Exp $
+dnl $Id: configure.in,v 1.690 2019/09/27 21:12:34 tom Exp $
 dnl Process this file with autoconf to produce a configure script.
 dnl
 dnl See https://invisible-island.net/autoconf/ for additional information.
 dnl
 dnl ---------------------------------------------------------------------------
 AC_PREREQ(2.52.20170501)
-AC_REVISION($Revision: 1.689 $)
+AC_REVISION($Revision: 1.690 $)
 AC_INIT(ncurses/base/lib_initscr.c)
 AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
 
@@ -2391,6 +2391,9 @@ AC_SUBST(ADAGEN_LDFLAGS)
 AC_SUBST(CHECK_BUILD)
 AC_SUBST(PRIVATE_LIBS)
 
+# This is used for the *-config script and *.pc data files.
+CF_LD_SEARCHPATH
+
 AC_DEFINE(HAVE_CURSES_DATA_BOOLNAMES,1,[definition needed for in-tree build of tack])
 
 AC_OUTPUT( \
diff --git a/dist.mk b/dist.mk
index d3d025ad4664e1ae04343c88a6958cfb3b0746e9..397ae03aab07d9538b5e0a7a144553b2c1869b2b 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.1306 2019/09/21 14:56:20 tom Exp $
+# $Id: dist.mk,v 1.1307 2019/09/27 18:43:59 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 = 6
 NCURSES_MINOR = 1
-NCURSES_PATCH = 20190921
+NCURSES_PATCH = 20190928
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index a03dd24106cd1cc7d828ddd8ba39fe280b58bde8..aacd681a743d8aaad93972eb44aa7fed612dda90 100644 (file)
@@ -1,7 +1,7 @@
 #!@SHELL@
-# $Id: gen-pkgconfig.in,v 1.34 2018/06/09 22:21:33 tom Exp $
+# $Id: gen-pkgconfig.in,v 1.36 2019/09/28 12:53:53 tom Exp $
 ##############################################################################
-# Copyright (c) 2009-2015,2018 Free Software Foundation, Inc.                #
+# Copyright (c) 2009-2018,2019 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"), #
@@ -46,6 +46,7 @@ CXX_NAME=@CXX_NAME@
 DFT_DEP_SUFFIX=@DFT_DEP_SUFFIX@
 TINFO_ARG_SUFFIX=@TINFO_ARG_SUFFIX@
 CXX_LIB_SUFFIX=@CXX_LIB_SUFFIX@
+RPATH_LIST=@RPATH_LIST@
 PRIVATE_LIBS="@PRIVATE_LIBS@"
 
 suffix=@PC_MODULE_SUFFIX@
@@ -66,10 +67,10 @@ MENU_LIBRARY="${MENU_NAME}@USE_ARG_SUFFIX@"
 FORM_LIBRARY="${FORM_NAME}@USE_ARG_SUFFIX@"
 
 CFLAGS="@PKG_CFLAGS@"
-if test "$includedir" != "/usr/include" ; then
+if [ "$includedir" != "/usr/include" ]; then
        includetop=`echo "$includedir" | sed -e 's,/include/[^/]*$,/include,'`
-       test "$includetop" = "/usr/include" && includetop="$includedir"
-       if test "x$includetop" != "x$includedir"
+       [ "$includetop" = "/usr/include" ] && includetop="$includedir"
+       if [ "x$includetop" != "x$includedir" ]
        then
                CFLAGS="$CFLAGS -I${includetop}"
        fi
@@ -77,10 +78,10 @@ if test "$includedir" != "/usr/include" ; then
 fi
 
 LDFLAGS=
-if test "$libdir" != "/usr/lib" ; then
+if [ "$libdir" != "/usr/lib" ]; then
        LDFLAGS="$LDFLAGS -L\${libdir}"
 fi
-if test "x@EXTRA_LDFLAGS@" != "x" ; then
+if [ "x@EXTRA_LDFLAGS@" != "x" ]; then
        LDFLAGS="$LDFLAGS @EXTRA_LDFLAGS@"
 fi
 
@@ -88,8 +89,8 @@ fi
 # functions or curses variables (which also reside in tinfo) can be linked
 # using the -lncurses option.
 NEED_TINFO=no
-if test "x@TINFO_LIBS@" != "x" && \
-   test "x$TINFO_ARG_SUFFIX" != "x$MAIN_LIBRARY"
+if [ "x@TINFO_LIBS@" != "x" ] && \
+   [ "x$TINFO_ARG_SUFFIX" != "x$MAIN_LIBRARY" ]
 then
        NEED_TINFO=yes
 fi
@@ -102,10 +103,10 @@ do
        desc="ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@"
        reqs=
 
-       if test $name = $MAIN_LIBRARY ; then
+       if [ $name = $MAIN_LIBRARY ]; then
                desc="$desc library"
-               test $NEED_TINFO = yes && LIBS="$LIBS -l$TINFO_ARG_SUFFIX"
-       elif test $name = $SUB_LIBRARY ; then
+               [ $NEED_TINFO = yes ] && LIBS="$LIBS -l$TINFO_ARG_SUFFIX"
+       elif [ $name = $SUB_LIBRARY ]; then
                desc="$desc terminal interface library"
        elif expr $name : ".*${CXX_NAME}.*" >/dev/null ; then
                reqs="$PANEL_LIBRARY${suffix}, $MENU_LIBRARY${suffix}, $FORM_LIBRARY${suffix}, $MAIN_LIBRARY${suffix}"
@@ -115,15 +116,15 @@ do
                desc="$desc add-on library"
        fi
 
-       if test $name != $SUB_LIBRARY && \
-          test $SUB_LIBRARY != $MAIN_LIBRARY && \
-          test $name != $TINFO_NAME && \
-          test $NEED_TINFO != yes ; then
-               test -n "$reqs" && reqs="$reqs, "
+       if [ $name != $SUB_LIBRARY ] && \
+          [ $SUB_LIBRARY != $MAIN_LIBRARY ] && \
+          [ $name != $TINFO_NAME ] && \
+          [ $NEED_TINFO != yes ] ; then
+               [ -n "$reqs" ] && reqs="$reqs, "
                reqs="${reqs}${SUB_LIBRARY}${suffix}"
        fi
 
-       if test $name = $MAIN_LIBRARY
+       if [ $name = $MAIN_LIBRARY ]
        then
                main_libs="$PRIVATE_LIBS"
        else
@@ -154,4 +155,4 @@ Cflags: $CFLAGS
 EOF
 
 done
-# vile:shmode
+# vile:shmode ts=4 sw=4
index 7a6180f83158431f5f6ca47e7c043e7c4929bb66..1054408178925cae3f2d83095ce1855640548085 100644 (file)
@@ -1,7 +1,7 @@
 #!@SHELL@
-# $Id: ncurses-config.in,v 1.37 2018/06/09 22:29:01 tom Exp $
+# $Id: ncurses-config.in,v 1.39 2019/09/28 12:54:17 tom Exp $
 ##############################################################################
-# Copyright (c) 2006-2017,2018 Free Software Foundation, Inc.                #
+# Copyright (c) 2006-2018,2019 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"), #
@@ -54,7 +54,7 @@ includesubdir="@includedir@/${THIS}"
 # Ensure that RPATH_LIST contains only absolute pathnames, if it is nonempty.
 # We cannot filter it out within the build-process since the variable is used
 # in some special cases of installation using a relative path.
-if test -n "$RPATH_LIST"
+if [ -n "$RPATH_LIST" ]
 then
        save_IFS="$IFS"
        IFS='@PATH_SEPARATOR@'
@@ -65,7 +65,7 @@ then
                ./*|../*|*/..|*/../*)
                        ;;
                *)
-                       test -n "$filtered" && filtered="${filtered}@PATH_SEPARATOR@"
+                       [ -n "$filtered" ] && filtered="${filtered}@PATH_SEPARATOR@"
                        filtered="${filtered}${item}"
                        ;;
                esac
@@ -78,7 +78,7 @@ fi
 # with --disable-overwrite, we installed into a subdirectory, but transformed
 # the headers to include like this:
 #      <ncurses@LIB_SUFFIX@/curses.h>
-if test x@WITH_OVERWRITE@ = xno ; then
+if [ x@WITH_OVERWRITE@ = xno ]; then
        case $includedir in
        $prefix/include/ncurses@LIB_SUFFIX@@EXTRA_SUFFIX@)
                includedir=`echo "$includedir" | sed -e 's,/[^/]*$,,'`
@@ -86,9 +86,50 @@ if test x@WITH_OVERWRITE@ = xno ; then
        esac
 fi
 
-test $# = 0 && exec @SHELL@ $0 --error
+LIBS="@LIBS@ @PRIVATE_LIBS@"
+if [ "@TINFO_NAME@" = "@LIB_NAME@" ]; then
+       LIBS="-l${THIS} $LIBS"
+else
+       LIBS="-l${THIS} -l${TINFO_LIB} $LIBS"
+fi
+
+# Ignore -L options which do not correspond to an actual directory, or which
+# are standard library directories (i.e., the linker is supposed to search
+# those directories).
+#
+# There is no portable way to find the list of standard library directories. 
+# Require a POSIX shell anyway, to keep this simple.
+lib_flags=
+for opt in -L$libdir @LDFLAGS@ @EXTRA_LDFLAGS@ $LIBS
+do
+       case $opt in
+       -L*)
+               [ -d ${opt##-L} ] || continue
+               case ${opt##-L} in
+               @LD_SEARCHPATH@) # skip standard libdir
+                       continue
+                       ;;
+               *)
+                       found=no
+                       for check in $lib_flags
+                       do
+                               if [ "x$check" = "x$opt" ]
+                               then
+                                       found=yes
+                                       break
+                               fi
+                       done
+                       [ $found = yes ] && continue
+                       ;;
+               esac
+               ;;
+       esac
+       lib_flags="$lib_flags $opt"
+done
+
+[ $# = 0 ] && exec @SHELL@ $0 --error
 
-while test $# -gt 0; do
+while [ $# -gt 0 ]; do
        case "$1" in
        # basic configuration
        --prefix)
@@ -100,10 +141,10 @@ while test $# -gt 0; do
        # compile/link
        --cflags)
                INCS="@PKG_CFLAGS@"
-               if test "x@WITH_OVERWRITE@" = xno ; then
+               if [ "x@WITH_OVERWRITE@" = xno ]; then
                        INCS="$INCS -I${includesubdir}"
                fi
-               if test "${includedir}" != /usr/include ; then
+               if [ "${includedir}" != /usr/include ]; then
                        INCS="$INCS -I${includedir}"
                fi
                sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
@@ -111,22 +152,54 @@ while test $# -gt 0; do
 ENDECHO
                ;;
        --libs)
-               if test "$libdir" = /usr/lib
-               then
-                       LIBDIR=
-               else
-                       LIBDIR=-L$libdir
-               fi
-               LIBS="@LIBS@ @PRIVATE_LIBS@"
-               if test @TINFO_NAME@ = @LIB_NAME@ ; then
-               sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
-                       $LIBDIR @EXTRA_LDFLAGS@ -l${THIS} $LIBS
-ENDECHO
-               else
-               sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO
-                       $LIBDIR @EXTRA_LDFLAGS@ -l${THIS} -l${TINFO_LIB} $LIBS
-ENDECHO
-               fi
+               OPTS=
+               for opt in $lib_flags
+               do
+                       [ -n "$OPTS" ] && OPTS="$OPTS "
+                       OPTS="${OPTS}${opt}"
+               done
+               printf "%s\n" "$OPTS"
+               ;;
+       --libs-only-L)
+               OPTS=
+               for opt in $lib_flags
+               do
+                       case "x$opt" in
+                       x-L*)
+                               [ -n "$OPTS" ] && OPTS="$OPTS "
+                               OPTS="${OPTS}${opt}"
+                               ;;
+                       esac
+               done
+               printf "%s\n" "$OPTS"
+               ;;
+       --libs-only-l)
+               OPTS=
+               for opt in $lib_flags
+               do
+                       case "x$opt" in
+                       x-l*)
+                               [ -n "$OPTS" ] && OPTS="$OPTS "
+                               OPTS="${OPTS}${opt}"
+                               ;;
+                       esac
+               done
+               printf "%s\n" "$OPTS"
+               ;;
+       --libs-only-other)
+               OPTS=
+               for opt in $lib_flags
+               do
+                       case "x$opt" in
+                       x-[lL]*)
+                               ;;
+                       *)
+                               [ -n "$OPTS" ] && OPTS="$OPTS "
+                               OPTS="${OPTS}${opt}"
+                               ;;
+                       esac
+               done
+               printf "%s\n" "$OPTS"
                ;;
        # identification
        --version)
@@ -147,9 +220,9 @@ ENDECHO
                ;;
        --includedir)
                INCS=
-               if test "x@WITH_OVERWRITE@" = xno ; then
+               if [ "x@WITH_OVERWRITE@" = xno ]; then
                        INCS="${includesubdir}"
-               elif test "${includedir}" != /usr/include ; then
+               elif [ "${includedir}" != /usr/include ]; then
                        INCS="${includedir}"
                fi
                echo $INCS
@@ -181,6 +254,10 @@ Options:
   --cflags           echos the C compiler flags needed to compile with ${THIS}
   --libs             echos the libraries needed to link with ${THIS}
 
+  --libs-only-L      echos -L linker options (search path) for ${THIS}
+  --libs-only-l      echos -l linker options (libraries) for ${THIS}
+  --libs-only-other  echos linker options other than -L/-l
+
   --version          echos the release+patchdate version of ${THIS}
   --abi-version      echos the ABI version of ${THIS}
   --mouse-version    echos the mouse-interface version of ${THIS}
index 4da9f58d964b156beb12b0c4e363f00c58942336..cd72ee47801f1e306b4dff4a34607b82b39d295e 100644 (file)
@@ -6,8 +6,8 @@
 # Report bugs and new terminal descriptions to
 #      bug-ncurses@gnu.org
 #
-#      $Revision: 1.763 $
-#      $Date: 2019/08/03 21:42:15 $
+#      $Revision: 1.765 $
+#      $Date: 2019/09/22 18:48:45 $
 #
 # The original header is preserved below for reference.  It is noted that there
 # is a "newer" version which differs in some cosmetic details (but actually
@@ -3292,7 +3292,7 @@ nsterm-c-s|AppKit Terminal.app v51+ w/MacRoman charset (full color w/statusline)
 # tracked under rdar://problem/7365108 and rdar://problem/7365134
 # in Apple's bug reporter.
 #
-# In OS X 10.7 (Leopard) the TERM which can be set in the preferences dialog
+# In OS X 10.5 (Leopard) the TERM which can be set in the preferences dialog
 # defaults to xterm-color.  Alternative selections are ansi, dtterm, rxvt,
 # vt52, vt100, vt102 and xterm.
 nsterm-16color|AppKit Terminal.app v240.2+ with Mac OS X version 10.5,
@@ -3364,7 +3364,7 @@ nsterm-bce|AppKit Terminal.app v71+/v100.1.8+ with Mac OS X version 10.3/10.4 (b
 
 # This is tested with OS X 10.8 (Mountain Lion), 2012/08/11
 #      TERM_PROGRAM_VERSION=309
-# Earlier reports state that these differences also apply to OS X 10.7 (Leopard),
+# Earlier reports state that these differences also apply to OS X 10.7 (Lion),
 #      TERM_PROGRAM_VERSION=303
 nsterm-build309|Terminal.app in OS X 10.8,
        use=xterm+256setaf, use=nsterm-bce,
@@ -26372,4 +26372,7 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #      + updated alacritty+common entry & notes -TD
 #      + use xterm+sl-twm for consistency -TD
 #
+# 2019-09-22
+#      + correct a comment -TD
+#
 ######## SHANTIH!  SHANTIH!  SHANTIH!
index d999d3cafef7895eb2555e6fa3a57e3ca25d7e52..383661a5aeab62efb472ada3c85059834c16a27e 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20190921) unstable; urgency=low
+ncurses6 (6.1+20190928) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 21 Sep 2019 10:56:20 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 22 Sep 2019 14:43:59 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index d999d3cafef7895eb2555e6fa3a57e3ca25d7e52..383661a5aeab62efb472ada3c85059834c16a27e 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20190921) unstable; urgency=low
+ncurses6 (6.1+20190928) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 21 Sep 2019 10:56:20 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 22 Sep 2019 14:43:59 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 5ab9ff1bb788fd3bc862aa5e80f397724fa000cd..953ec0f924a6ff0ec41f659d589d6d7b81387ffa 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.1+20190921) unstable; urgency=low
+ncurses6 (6.1+20190928) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 21 Sep 2019 10:56:20 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 22 Sep 2019 14:43:59 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index 9763334950cebf75a086ea7de25e7719389e697d..2c5242c8b24a005d195120e7ad7e385c0f397ece 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.352 2019/09/21 14:56:20 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.353 2019/09/27 18:43:59 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "1"\r
 !define VERSION_YYYY  "2019"\r
-!define VERSION_MMDD  "0921"\r
+!define VERSION_MMDD  "0928"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index 5e7875b2c30e33349c39878839beebee4767a96e..0af8c29635591bb8acfd8c26a9fac73261bdf5ee 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.1
-Release: 20190921
+Release: 20190928
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index b619810b334bed3f404b6bc36b950121a5db6ddf..cca5a1c9ee0340be75c047f72421ea4d18c443bb 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.1
-Release: 20190921
+Release: 20190928
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index 5d74ffa3d007881e97630c699cfcc0be1f140740..989481e63e8c74c1447a45d759280cb2683f7bc6 100644 (file)
@@ -1,7 +1,7 @@
 Summary: Curses library with POSIX thread support.
 Name: ncursest6
 Version: 6.1
-Release: 20190921
+Release: 20190928
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index 38657bab4211ef9425dbe3d6b00fc56345185007..b896bc4f3dd1cdb2c874173d0be4893ad2b26c36 100644 (file)
@@ -40,7 +40,7 @@ AUTHOR
    Author: Eric S. Raymond <esr@snark.thyrsus.com> 1993
            Thomas E. Dickey (beginning revision 1.27 in 1996).
 
-$Id: ncurses.c,v 1.518 2019/08/31 23:22:40 tom Exp $
+$Id: ncurses.c,v 1.519 2019/09/22 19:12:40 tom Exp $
 
 ***************************************************************************/
 
@@ -7815,11 +7815,13 @@ main_menu(bool top)
        for (;;) {
            char ch = '\0';
            if (read(fileno(stdin), &ch, (size_t) 1) <= 0) {
-               if (command == 0)
-                   command = 'q';
-               if (errno == EINTR) {
+               int save_err = errno;
+               perror("\nOOPS");
+               if (save_err == EINTR) {
                    clearerr(stdin);
                    continue;
+               } else if (command == 0) {
+                   command = 'q';
                }
                break;
            } else if (command == 0 && !isspace(UChar(ch))) {