Skip to content

Commit

Permalink
ncurses 6.3 - patch 20221001
Browse files Browse the repository at this point in the history
+ modify configure/scripts to work around interference by GNU grep 3.8
  (report by Sam James).
+ update CF_XOPEN_SOURCE, adding variants "gnueabi" and "gnueabihf" to
  get _DEFAULT_SOURCE special case (report by Adam Sampson)
  • Loading branch information
ThomasDickey committed Oct 2, 2022
1 parent b5d8076 commit 61b684e
Show file tree
Hide file tree
Showing 21 changed files with 100 additions and 80 deletions.
26 changes: 14 additions & 12 deletions Ada95/configure
Original file line number Diff line number Diff line change
Expand Up @@ -18716,6 +18716,8 @@ cat >>"$CONFIG_STATUS" <<EOF
AWK="$AWK"
DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
DFT_LWR_MODEL="$DFT_LWR_MODEL"
EGREP="${EGREP-grep -E}"
FGREP="${FGREP-grep -F}"
LIB_NAME="$LIB_NAME"
LIB_PREFIX="$LIB_PREFIX"
LIB_SUFFIX="$LIB_SUFFIX"
Expand Down Expand Up @@ -18749,7 +18751,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:18752: error: invalid argument: $ac_config_target" >&5
*) { { echo "$as_me:18754: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
Expand Down Expand Up @@ -19109,7 +19111,7 @@ done; }
esac

if test x"$ac_file" != x-; then
{ echo "$as_me:19112: creating $ac_file" >&5
{ echo "$as_me:19114: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
fi
Expand All @@ -19127,7 +19129,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:19130: error: cannot find input file: $f" >&5
test -f "$f" || { { echo "$as_me:19132: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo $f;;
Expand All @@ -19140,7 +19142,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
echo "$srcdir/$f"
else
# /dev/null tree
{ { echo "$as_me:19143: error: cannot find input file: $f" >&5
{ { echo "$as_me:19145: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
Expand All @@ -19156,7 +19158,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:19159: WARNING: datarootdir was used implicitly but not set:
{ echo "$as_me:19161: 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;}
Expand All @@ -19165,7 +19167,7 @@ $ac_seen" >&2;}
fi
ac_seen=`grep '${datarootdir}' "$ac_item"`
if test -n "$ac_seen"; then
{ echo "$as_me:19168: WARNING: datarootdir was used explicitly but not set:
{ echo "$as_me:19170: 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;}
Expand Down Expand Up @@ -19202,7 +19204,7 @@ s,@INSTALL@,$ac_INSTALL,;t t
ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
if test -z "$ac_init"; then
ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
{ echo "$as_me:19205: WARNING: Variable $ac_name is used but was not set:
{ echo "$as_me:19207: 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;}
Expand All @@ -19213,7 +19215,7 @@ $ac_seen" >&2;}
${EGREP-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:19216: WARNING: Some variables may not be substituted:
{ echo "$as_me:19218: WARNING: Some variables may not be substituted:
$ac_seen" >&5
echo "$as_me: WARNING: Some variables may not be substituted:
$ac_seen" >&2;}
Expand Down Expand Up @@ -19262,7 +19264,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:19265: creating $ac_file" >&5
test x"$ac_file" != x- && { echo "$as_me:19267: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}

# First look for the input files in the build tree, otherwise in the
Expand All @@ -19273,7 +19275,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:19276: error: cannot find input file: $f" >&5
test -f "$f" || { { echo "$as_me:19278: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo $f;;
Expand All @@ -19286,7 +19288,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
echo "$srcdir/$f"
else
# /dev/null tree
{ { echo "$as_me:19289: error: cannot find input file: $f" >&5
{ { echo "$as_me:19291: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
Expand Down Expand Up @@ -19344,7 +19346,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:19347: $ac_file is unchanged" >&5
{ echo "$as_me:19349: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
else
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Expand Down
6 changes: 4 additions & 2 deletions Ada95/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dnl***************************************************************************
dnl
dnl Author: Thomas E. Dickey
dnl
dnl $Id: configure.in,v 1.85 2022/03/05 22:20:52 tom Exp $
dnl $Id: configure.in,v 1.86 2022/10/01 14:12:41 tom Exp $
dnl Process this file with autoconf to produce a configure script.
dnl
dnl For additional information, see
Expand All @@ -38,7 +38,7 @@ dnl https://invisible-island.net/autoconf/my-autoconf.html
dnl
dnl ---------------------------------------------------------------------------
AC_PREREQ(2.52.20210509)
AC_REVISION($Revision: 1.85 $)
AC_REVISION($Revision: 1.86 $)
AC_INIT(gen/gen.c)
AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)

Expand Down Expand Up @@ -598,6 +598,8 @@ fi
AWK="$AWK"
DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
DFT_LWR_MODEL="$DFT_LWR_MODEL"
EGREP="${EGREP-grep -E}"
FGREP="${FGREP-grep -F}"
LIB_NAME="$LIB_NAME"
LIB_PREFIX="$LIB_PREFIX"
LIB_SUFFIX="$LIB_SUFFIX"
Expand Down
10 changes: 6 additions & 4 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $Id: Makefile.in,v 1.45 2021/08/07 22:06:59 tom Exp $
# $Id: Makefile.in,v 1.46 2022/10/01 22:53:36 tom Exp $
##############################################################################
# Copyright 2018-2020,2021 Thomas E. Dickey #
# Copyright 2018-2021,2022 Thomas E. Dickey #
# Copyright 1998-2014,2015 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a #
Expand Down Expand Up @@ -62,6 +62,8 @@ pkgdir = @PKG_CONFIG_LIBDIR@

include_dir = ${includedir}${includesubdir}

FGREP = @FGREP@

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@

Expand Down Expand Up @@ -103,10 +105,10 @@ preinstall :
@ test "$(include_dir)" = "$(prefix)/include" || \
echo '** Include-directory is not in a standard location'
@ test ! -f $(include_dir)/termcap.h || \
fgrep NCURSES_VERSION $(include_dir)/termcap.h >/dev/null || \
$(FGREP) NCURSES_VERSION $(include_dir)/termcap.h >/dev/null || \
echo '** Will overwrite non-ncurses termcap.h'
@ test ! -f $(include_dir)/curses.h || \
fgrep NCURSES_VERSION $(include_dir)/curses.h >/dev/null || \
$(FGREP) NCURSES_VERSION $(include_dir)/curses.h >/dev/null || \
echo '** Will overwrite non-ncurses curses.h'

distclean \
Expand Down
8 changes: 7 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
-- $Id: NEWS,v 1.3860 2022/09/24 20:40:35 tom Exp $
-- $Id: NEWS,v 1.3862 2022/10/01 22:20:28 tom Exp $
-------------------------------------------------------------------------------

This is a log of changes that ncurses has gone through since Zeyd started
Expand All @@ -46,6 +46,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.

20221001
+ modify configure/scripts to work around interference by GNU grep 3.8
(report by Sam James).
+ update CF_XOPEN_SOURCE, adding variants "gnueabi" and "gnueabihf" to
get _DEFAULT_SOURCE special case (report by Adam Sampson)

20220924
+ modify configure macro CF_BUILD_CC to check if the build-compiler
works, rather than that it is different from the cross-compiler, e.g.,
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5:0:10 6.3 20220924
5:0:10 6.3 20221001
10 changes: 5 additions & 5 deletions aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dnl***************************************************************************
dnl
dnl Author: Thomas E. Dickey 1995-on
dnl
dnl $Id: aclocal.m4,v 1.1012 2022/09/24 20:41:12 tom Exp $
dnl $Id: aclocal.m4,v 1.1014 2022/10/01 13:24:04 tom Exp $
dnl Macros used in NCURSES auto-configuration script.
dnl
dnl These macros are maintained separately from NCURSES. The copyright on
Expand Down Expand Up @@ -5690,7 +5690,7 @@ if test -n "$cf_unknown" ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_MANPAGE_RENAMES version: 12 updated: 2021/01/01 16:53:59
dnl CF_MANPAGE_RENAMES version: 13 updated: 2022/10/01 09:13:09
dnl ------------------
dnl The Debian people have their own naming convention for manpages. This
dnl option lets us override the name of the file containing renaming, or
Expand Down Expand Up @@ -5729,7 +5729,7 @@ if test "$MANPAGE_RENAMES" != no ; then
# Construct a sed-script to perform renaming within man-pages
if test -n "$MANPAGE_RENAMES" ; then
test ! -d man && mkdir man
$SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
fi
fi
Expand Down Expand Up @@ -9873,7 +9873,7 @@ fi
AC_SUBST(no_x11_rgb)
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_XOPEN_SOURCE version: 60 updated: 2022/09/10 15:16:16
dnl CF_XOPEN_SOURCE version: 61 updated: 2022/09/30 04:05:55
dnl ---------------
dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
dnl or adapt to the vendor's definitions to get equivalent functionality,
Expand Down Expand Up @@ -9924,7 +9924,7 @@ case "$host_os" in
cf_xopen_source="-D_SGI_SOURCE"
cf_XOPEN_SOURCE=
;;
(linux*gnu|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
(linux*gnu|linux*gnueabi|linux*gnueabihf|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
CF_GNU_SOURCE($cf_XOPEN_SOURCE)
;;
(minix*)
Expand Down
34 changes: 18 additions & 16 deletions configure
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /bin/sh
# From configure.in Revision: 1.748 .
# From configure.in Revision: 1.749 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by Autoconf 2.52.20210509.
#
Expand Down Expand Up @@ -9989,7 +9989,7 @@ case "$host_os" in
cf_xopen_source="-D_SGI_SOURCE"
cf_XOPEN_SOURCE=
;;
(linux*gnu|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
(linux*gnu|linux*gnueabi|linux*gnueabihf|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)

cf_gnu_xopen_source=$cf_XOPEN_SOURCE

Expand Down Expand Up @@ -14774,7 +14774,7 @@ echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
# Construct a sed-script to perform renaming within man-pages
if test -n "$MANPAGE_RENAMES" ; then
test ! -d man && mkdir man
$SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
fi
fi

Expand Down Expand Up @@ -29609,7 +29609,9 @@ CXX_NAME="$CXX_NAME"
DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
DFT_LWR_MODEL="$DFT_LWR_MODEL"
ECHO_LD="$ECHO_LD"
EGREP="${EGREP-grep -E}"
EXTRA_SUFFIX="$EXTRA_SUFFIX"
FGREP="${FGREP-grep -F}"
FORM_NAME="$FORM_NAME"
LDCONFIG="$LDCONFIG"
LIBTOOL_VERSION="$LIBTOOL_VERSION"
Expand Down Expand Up @@ -29691,7 +29693,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:29694: error: invalid argument: $ac_config_target" >&5
*) { { echo "$as_me:29696: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
Expand Down Expand Up @@ -30204,7 +30206,7 @@ done; }
esac

if test x"$ac_file" != x-; then
{ echo "$as_me:30207: creating $ac_file" >&5
{ echo "$as_me:30209: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
fi
Expand All @@ -30222,7 +30224,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:30225: error: cannot find input file: $f" >&5
test -f "$f" || { { echo "$as_me:30227: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo $f;;
Expand All @@ -30235,7 +30237,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
echo "$srcdir/$f"
else
# /dev/null tree
{ { echo "$as_me:30238: error: cannot find input file: $f" >&5
{ { echo "$as_me:30240: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
Expand All @@ -30251,7 +30253,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:30254: WARNING: datarootdir was used implicitly but not set:
{ echo "$as_me:30256: 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;}
Expand All @@ -30260,7 +30262,7 @@ $ac_seen" >&2;}
fi
ac_seen=`grep '${datarootdir}' "$ac_item"`
if test -n "$ac_seen"; then
{ echo "$as_me:30263: WARNING: datarootdir was used explicitly but not set:
{ echo "$as_me:30265: 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;}
Expand Down Expand Up @@ -30297,7 +30299,7 @@ s,@INSTALL@,$ac_INSTALL,;t t
ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
if test -z "$ac_init"; then
ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
{ echo "$as_me:30300: WARNING: Variable $ac_name is used but was not set:
{ echo "$as_me:30302: 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;}
Expand All @@ -30308,7 +30310,7 @@ $ac_seen" >&2;}
${EGREP-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:30311: WARNING: Some variables may not be substituted:
{ echo "$as_me:30313: WARNING: Some variables may not be substituted:
$ac_seen" >&5
echo "$as_me: WARNING: Some variables may not be substituted:
$ac_seen" >&2;}
Expand Down Expand Up @@ -30357,7 +30359,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:30360: creating $ac_file" >&5
test x"$ac_file" != x- && { echo "$as_me:30362: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}

# First look for the input files in the build tree, otherwise in the
Expand All @@ -30368,7 +30370,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:30371: error: cannot find input file: $f" >&5
test -f "$f" || { { echo "$as_me:30373: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo $f;;
Expand All @@ -30381,7 +30383,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
echo "$srcdir/$f"
else
# /dev/null tree
{ { echo "$as_me:30384: error: cannot find input file: $f" >&5
{ { echo "$as_me:30386: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
Expand Down Expand Up @@ -30439,7 +30441,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:30442: $ac_file is unchanged" >&5
{ echo "$as_me:30444: $ac_file is unchanged" >&5
echo "$as_me: $ac_file is unchanged" >&6;}
else
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Expand Down Expand Up @@ -30826,7 +30828,7 @@ cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQ
(cygdll|msysdll|mingw|msvcdll)
test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6

echo "${as_me:-configure}:30829: testing overriding CXX_MODEL to SHARED ..." 1>&5
echo "${as_me:-configure}:30831: testing overriding CXX_MODEL to SHARED ..." 1>&5

with_shared_cxx=yes
;;
Expand Down
Loading

0 comments on commit 61b684e

Please sign in to comment.