summaryrefslogtreecommitdiff
path: root/devel/ncurses/patches/patch-ab
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-01-15 18:39:28 +0000
committerjlam <jlam@pkgsrc.org>2000-01-15 18:39:28 +0000
commitc5d40ff7ecb7e80efb9e81623cf30048c1add72f (patch)
tree41600964362e85be56e2ca29968fbcfac13b7ebb /devel/ncurses/patches/patch-ab
parent47b4471c9138f5f962c29555f412955e14df5532 (diff)
downloadpkgsrc-c5d40ff7ecb7e80efb9e81623cf30048c1add72f.tar.gz
Update ncurses to 5.0. From the release notes:
We decided to release ncurses as a new whole number release (5.0) because it incorporates several interface changes, including some that would invalidate existing shared libraries. These are the highlights from the change-log since ncurses 4.2 release. Interface changes: * The principal source of changes to the interface comes from the release of X/Open Curses in 1997. Earlier versions of ncurses (4.0 and before) were based on a draft version of the specification. The release version adds parameters to some functions to support the evolving internationalization of curses. These summarize the impact: + modified several prototypes to correspond with 1997 version of X/Open Curses (affects ABI since developers have used attr_get). + corrected prototypes for slk_* functions, using chtype rather than attr_t. + the slk_attr_{set,off,on} functions need an additional void* parameter according to XSI. + correct macros for wattr_set, wattr_get, separate wattrset macro from these to preserve behavior that allows attributes to be combined with color pair numbers. + reviewed/updated curses.h, term.h against X/Open Curses Issue 4 Version 2. This includes making some parameters NCURSES_CONST rather than const, e.g., in termcap.h. + reviewed/corrected macros in curses.h as per XSI document. + add set_a_attributes and set_pglen_inch to terminfo structure, as per XSI and Solaris 2.5. * The newest version of the X/Open Curses is implemented on Solaris and other vendor's systems. It adds new features to the terminfo descriptions: + implement tparm %l format. + implement tparm printf-style width and precision for %s, %d, %x, %o as per XSI. * We made additional changes to reduce impact by future interface changes: + rename key_names[] array to _nc_key_names since it is not part of the curses interface. + move macro winch to a function, to hide details of struct ldat * modify configure script to embed ABI in shared libraries for HP-UX 10.x (detailed request by Tim Mooney). * modify configuration of shared libraries on Digital Unix so that versioning is embedded in the library, rather than implied by links (patch by Tim Mooney). New features: * enable sigwinch handler by default. * turn on hashmap scrolling code by default * improved support for termcap applications + modify tput to accept termcap names as an alternative to terminfo names. + provide support for termcap PC variable by copying it from terminfo data and using it as the padding character in tputs. + provide support for termcap ospeed variable by copying it from the internal cur_term member, and using ospeed as the baudrate reference for the delay_output and tputs functions. + change name-comparisons in lib_termcap to compare no more than 2 characters. + add configure option --enable-tcap-names, which essentially allows users to define new capabilities as in termcap. * add mouse support to ncurses menus. * add mouse and dll support for OS/2 EMX * modify terminfo parsing to accept octal and hexadecimal constants * add configure option --enable-no-padding, to allow environment variable $NCURSES_NO_PADDING to eliminate non-mandatory padding, thereby making terminal emulators (e.g., for vt100) a little more efficient. * modify lib_color.c to eliminate dependency on orig_colors and orig_pair, since SVr4 curses does not require these either, but uses them when they are available. * add -f option to infocmp and tic, which formats the terminfo if/then/else/endif so that they are readable (with newlines and tabs). * modify tic to compile into %'char' form in preference to %{number}, since that is a little more efficient. Major bug fixes: * modify lib_tstp.c to block SIGTTOU when handling SIGTSTP, fixes a problem where ncurses applications which were run via a shell script would hang when given a ^Z. Also, check if the terminal's process group is consistent, i.e., a shell has not taken ownership of it, before deciding to save the current terminal settings in the SIGTSTP handler. * suppress sc/rc capabilities from terminal description if they appear in smcup/rmcup. This affects only scrolling optimization, to fix a problem reported by several people with xterm's alternate screen, though the problem is more general. * modify relative_move and tputs to avoid an interaction with the BSD-style padding. The relative_move function could produce a string to replace on the screen which began with a numeric character, which was then interpreted by tputs as padding. * modify setupterm so that cancelled strings are treated the same as absent strings, cancelled and absent booleans false (does not affect tic, infocmp). * modify lib_vidattr.c to allow for terminal types (e.g., xterm-color) which may reset all attributes in the 'op' capability, so that colors are set before turning on bold and other attributes, but still after turning attributes off. * use 'access()' to check if ncurses library should be permitted to open or modify files with fopen/open/link/unlink/remove calls, in case the calling application is running in setuid mode. * correction to doupdate, for case where terminal does not support insert/delete character. The logic did not check that there was a difference in alignment of changes to old/new screens before repainting the whole non-blank portion of the line. Modified to fall through into logic that reduces by the portion which does not differ.
Diffstat (limited to 'devel/ncurses/patches/patch-ab')
-rw-r--r--devel/ncurses/patches/patch-ab73
1 files changed, 33 insertions, 40 deletions
diff --git a/devel/ncurses/patches/patch-ab b/devel/ncurses/patches/patch-ab
index 33037c6b923..63a088ae5af 100644
--- a/devel/ncurses/patches/patch-ab
+++ b/devel/ncurses/patches/patch-ab
@@ -1,44 +1,45 @@
-$NetBSD: patch-ab,v 1.7 1999/09/24 00:39:13 jlam Exp $
+$NetBSD: patch-ab,v 1.8 2000/01/15 18:39:29 jlam Exp $
---- configure.orig Thu Feb 12 18:46:01 1998
-+++ configure Thu Sep 23 16:45:08 1999
-@@ -1628,6 +1628,7 @@
- test -z "$cf_dir" && cf_dir=/usr/man
- cf_rename=""
- cf_format=no
-+ if false; then # install unformatted man pages
- for cf_name in $cf_dir/*/date.[01]* $cf_dir/*/date
- do
- cf_test=`echo $cf_name | sed -e 's/*//'`
-@@ -1641,6 +1642,8 @@
- break
- fi
- done
-+ else cf_form=cat
-+ fi
- if test "$cf_form" != "unknown" ; then
- break
- fi
-@@ -2103,7 +2106,7 @@
+--- configure.orig Sat Oct 23 20:33:18 1999
++++ configure Sat Jan 15 11:24:46 2000
+@@ -2461,7 +2461,7 @@
case $DFT_LWR_MODEL in
- normal) DFT_DEP_SUFFIX='.a' ;;
-+ normal) DFT_DEP_SUFFIX='.la' ;;
++ normal) DFT_DEP_SUFFIX='.la' ;;
debug) DFT_DEP_SUFFIX='_g.a' ;;
profile) DFT_DEP_SUFFIX='_p.a' ;;
shared)
-@@ -5310,7 +5313,8 @@
+@@ -2581,6 +2581,9 @@
+
+ cf_cv_rm_so_locs=no
+
++LINK_PROGS='$(LIBTOOL)'
++LINK_TESTS='$(LIBTOOL)'
++
+ case $cf_cv_system_name in
+ hpux10.*)
+ # (tested with gcc 2.7.2 -- I don't have c89)
+@@ -6440,7 +6443,7 @@
+ ### could override this.
+ if test "$with_termlib" = yes ; then
+ TEST_DEPS="${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
+- TEST_ARGS="-l${TINFO_NAME}${DFT_ARG_SUFFIX}"
++ TEST_ARGS="${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
+ fi
+ PROG_DEPS="$TEST_DEPS"
+ PROG_ARGS="$TEST_ARGS"
+@@ -6454,7 +6457,7 @@
# dependencies and linker-arguments for test-programs
TEST_DEPS="${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
-TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
+TEST_ARGS="${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_ARGS"
-+
# dependencies and linker-arguments for utility-programs
PROG_ARGS="$TEST_ARGS"
-@@ -5353,16 +5357,16 @@
+@@ -6497,16 +6500,17 @@
EOF
TEST_DEPS="${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
@@ -50,44 +51,36 @@ $NetBSD: patch-ab,v 1.7 1999/09/24 00:39:13 jlam Exp $
echo "$ac_t""$cf_cv_src_modules" 1>&6
-TEST_ARGS="-L${LIB_DIR} -L\$(libdir) $TEST_ARGS"
-
--
+-
-PROG_ARGS="-L${LIB_DIR} -L\$(libdir) $PROG_ARGS"
+# Put $(libdir) last so we ensure programs are linked against newly-built
+# versions of libraries.
++#
+TEST_ARGS="$TEST_ARGS -L\$(libdir)"
+PROG_ARGS="$PROG_ARGS -L\$(libdir)"
SRC_SUBDIRS="man include"
-@@ -5371,7 +5375,7 @@
- SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
- done
- SRC_SUBDIRS="$SRC_SUBDIRS misc test"
--test $cf_cxx_library != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
-+test "X$cf_with_cxx" != Xno && SRC_SUBDIRS="$SRC_SUBDIRS c++"
-
- ADA_SUBDIRS=
- if test "$ac_cv_prog_gnat_correct" = yes && test -d $srcdir/Ada95; then
-@@ -5888,7 +5892,7 @@
+@@ -7048,7 +7052,7 @@
case $cf_item in
- normal) cf_suffix='.a' ;;
-+ normal) cf_suffix='.la' ;;
++ normal) cf_suffix='.la' ;;
debug) cf_suffix='_g.a' ;;
profile) cf_suffix='_p.a' ;;
shared)
-@@ -5931,7 +5935,7 @@
+@@ -7098,7 +7102,7 @@
case $cf_item in
- normal) cf_suffix='.a' ;;
-+ normal) cf_suffix='.la' ;;
++ normal) cf_suffix='.la' ;;
debug) cf_suffix='_g.a' ;;
profile) cf_suffix='_p.a' ;;
shared)
-@@ -6120,7 +6124,7 @@
+@@ -7296,7 +7300,7 @@
for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
do
echo " @ (cd \$(INSTALL_PREFIX)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(INSTALL_PREFIX)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile