GNU bug report logs -
#6190
24.0.50; patch to configure emacs to use terminfo on recent NetBSD.
Previous Next
Reported by: enami tsugutomo <tsugutomo.enami <at> jp.sony.com>
Date: Fri, 14 May 2010 08:45:02 UTC
Severity: normal
Found in version 24.0.50
Fixed in version 24.0.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 21 May 2010 00:08:46 -0400
with message-id <g1sk5lew1d.fsf <at> fencepost.gnu.org>
and subject line Re: bug#6190: 24.0.50; patch to configure emacs to use terminfo on recent NetBSD.
has caused the GNU bug report #6190,
regarding 24.0.50; patch to configure emacs to use terminfo on recent NetBSD.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
6190: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6190
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
On earlier this year, NetBSD have introduced terminfo in its development
tree and termcap library is replaced with small library to provide
minimum compatibility. Specially, tgetent() is changed not to store
termcap entry in the supplied buffer. Since emacs termcap code expects
actual entry filled, emacs doesn't work anymore on such system (strlen
call on the buffer returns meaningless value).
I guess it is better to configure emacs to use terminfo instead on
NetBSD which has terminfo.
Here is a changes to configure.in to check availability of terminfo:
=== modified file 'configure.in'
--- configure.in 2010-05-14 03:05:00 +0000
+++ configure.in 2010-05-14 04:00:58 +0000
@@ -2620,7 +2620,7 @@
## Use terminfo instead of termcap?
## Note only system files NOT using terminfo are:
-## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
+## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
## darwin|gnu without ncurses.
TERMINFO=no
LIBS_TERMCAP=
@@ -2662,13 +2662,22 @@
fi
;;
+ netbsd)
+ if test $ac_cv_search_tputs = -lterminfo; then
+ TERMINFO=yes
+ LIBS_TERMCAP="-lterminfo"
+ else
+ LIBS_TERMCAP="-ltermcap"
+ fi
+ ;;
+
esac
case "$opsys" in
## hpux: Make sure we get select from libc rather than from libcurses
## because libcurses on HPUX 10.10 has a broken version of select.
## We used to use -lc -lcurses, but this may be cleaner.
- hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
+ hpux*) LIBS_TERMCAP="-ltermcap" ;;
openbsd) LIBS_TERMCAP="-lncurses" ;;
In GNU Emacs 24.0.50.5 (x86_64--netbsd)
of 2010-05-14 on rplaca.sm.sony.co.jp
configured using `configure 'x86_64--netbsd' '--with-x=no' 'build_alias=x86_64--netbsd' 'host_alias=x86_64--netbsd' 'target_alias=x86_64--netbsd''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
value of $XMODIFIERS: nil
locale-coding-system: nil
default enable-multibyte-characters: t
Major mode: Fundamental
Minor modes in effect:
file-name-shadow-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Recent input:
ESC x r e p o r TAB RET
Recent messages:
("emacs")
For information about GNU Emacs and the GNU system, type C-h C-a.
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr message sendmail regexp-opt rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils
gmm-utils mailheader emacsbug japan-util ediff-hook vc-hooks
lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
loaddefs button minibuffer faces cus-face files text-properties overlay
md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process multi-tty emacs)
[Message part 3 (message/rfc822, inline)]
Thanks; applied.
This bug report was last modified 15 years and 60 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.