From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: enami tsugutomo Newsgroups: gmane.emacs.bugs Subject: bug#6190: 24.0.50; patch to configure emacs to use terminfo on recent NetBSD. Date: Fri, 14 May 2010 17:44:13 +0900 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273827647 13340 80.91.229.12 (14 May 2010 09:00:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 May 2010 09:00:47 +0000 (UTC) To: 6190@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 14 11:00:41 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OCql2-0004UE-7v for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 May 2010 11:00:40 +0200 Original-Received: from localhost ([127.0.0.1]:60309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCqkz-0004Vk-41 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 May 2010 05:00:33 -0400 Original-Received: from [140.186.70.92] (port=38739 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCqhJ-0001u9-M9 for bug-gnu-emacs@gnu.org; Fri, 14 May 2010 04:56:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCqhH-0007BR-Ax for bug-gnu-emacs@gnu.org; Fri, 14 May 2010 04:56:44 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41572) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCqhH-0007BM-6S for bug-gnu-emacs@gnu.org; Fri, 14 May 2010 04:56:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OCqVy-0002dl-NC; Fri, 14 May 2010 04:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: enami tsugutomo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 May 2010 08:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6190 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127382667410127 (code B ref -1); Fri, 14 May 2010 08:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 May 2010 08:44:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCqVV-0002dI-WC for submit@debbugs.gnu.org; Fri, 14 May 2010 04:44:34 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCqVS-0002dC-EQ for submit@debbugs.gnu.org; Fri, 14 May 2010 04:44:31 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:40724) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OCqVP-0004d1-P5 for submit@debbugs.gnu.org; Fri, 14 May 2010 04:44:27 -0400 Original-Received: from [140.186.70.92] (port=50056 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCqVO-0003nw-3L for bug-gnu-emacs@gnu.org; Fri, 14 May 2010 04:44:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCqVM-0004nF-Ud for bug-gnu-emacs@gnu.org; Fri, 14 May 2010 04:44:25 -0400 Original-Received: from ms4.sony.co.jp ([211.125.136.198]:57518) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCqVM-0004mm-FP for bug-gnu-emacs@gnu.org; Fri, 14 May 2010 04:44:24 -0400 Original-Received: from mta8.sony.co.jp (mta8.Sony.CO.JP [137.153.71.15]) by ms4.sony.co.jp (R8/Sony) with ESMTP id o4E8iD1O000980 for ; Fri, 14 May 2010 17:44:13 +0900 (JST) Original-Received: from mta8.sony.co.jp (localhost [127.0.0.1]) by mta8.sony.co.jp (R8/Sony) with ESMTP id o4E8iDg3018863 for ; Fri, 14 May 2010 17:44:13 +0900 (JST) Original-Received: from smail3.sm.sony.co.jp (smail3.sm.sony.co.jp [43.15.151.2]) by mta8.sony.co.jp (R8/Sony) with ESMTP id o4E8iDkP018857 for ; Fri, 14 May 2010 17:44:13 +0900 (JST) Original-Received: from email.sm.sony.co.jp (email.sm.sony.co.jp [43.15.151.3]) by smail3.sm.sony.co.jp (8.11.6p3/8.11.6) with ESMTP id o4E9BOk11920 for ; Fri, 14 May 2010 18:11:24 +0900 (JST) Original-Received: from rplaca.sm.sony.co.jp (rplaca.sm.sony.co.jp [43.15.152.87]) by email.sm.sony.co.jp (8.13.3/8.13.3) with ESMTP id o4E8iDVK012568 for ; Fri, 14 May 2010 17:44:13 +0900 (JST) Original-Received: by rplaca.sm.sony.co.jp (Postfix, from userid 8324) id 7097C3444A; Fri, 14 May 2010 17:44:13 +0900 (JST) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 14 May 2010 04:45:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36916 Archived-At: 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)