From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: vuori@notcom.org Newsgroups: gmane.emacs.bugs Subject: bug#64577: 29.0.92; configure on NetBSD forces unstable terminfo library Date: Tue, 11 Jul 2023 20:37:19 +0000 Message-ID: <87v8eqrxq8.fsf@notcom.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37143"; mail-complaints-to="usenet@ciao.gmane.io" To: 64577@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 11 22:38:30 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qJK7y-0009Sj-3U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jul 2023 22:38:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJK7Y-0000MJ-6W; Tue, 11 Jul 2023 16:38:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJK7W-0000Lw-Eh for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 16:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJK7W-0008JO-6v for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 16:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJK7W-00051U-2D for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 16:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: vuori@notcom.org Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jul 2023 20:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64577 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168910785519272 (code B ref -1); Tue, 11 Jul 2023 20:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Jul 2023 20:37:35 +0000 Original-Received: from localhost ([127.0.0.1]:51155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJK74-00050k-M4 for submit@debbugs.gnu.org; Tue, 11 Jul 2023 16:37:35 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJK73-00050c-1r for submit@debbugs.gnu.org; Tue, 11 Jul 2023 16:37:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJK72-0000L0-EW for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 16:37:32 -0400 Original-Received: from uslohestin.notcom.org ([2604:180:2:2e8::2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJK70-0008F3-2n for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 16:37:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=notcom.org; s=usl; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fllvTV5tRuwcZpVsC4vknq9BSj8SQpkm1yGGFq26uWI=; t=1689107843; x=1689971843; b=FX7qZPWSflif1J0wy0jz3dEV5vM2uA3tnnjaSUxleISzcTKMr+RcKnj2GfxQ2v8NBIlTSdL7sZs LfZ4+7DI0IgDHWAlFnbWPreav2sB4+0XFNDNpElgs+5+qgw6kZGgFbzK5CfPHIC5e8Iv7ix4e+3NC B8FubmJaPH9LkYMGJQrc+rxEDNinjfb0g6g8kWyuY9amnAINdjVBwCZGaIds+HESd0loA5S8eQP00 v/A6lLx0mF2mMXPIsLTQ8TUpN45cB1ME0ncdmpeVeMs1pzK6ynAljm2FNEckUZ81NaprWIZsALYVX 4WkKscXggXST2/Ut+TDM/bSB4hOh/tVbw2Ow==; Original-Received: from submission.internal (id=312efe4a2b31e0bdf15d7a3617f56a5a569dba14) by uslohestin.notcom.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.x) (envelope-from ) id 1qJK6q-005THf-Iy for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 16:37:20 -0400 Original-Received: from [10.0.40.33] (helo=netbsd.himad.notcom.org) by mkarpo.dyn.notcom.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qJK6p-000P2V-Io for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 20:37:19 +0000 Original-Received: by netbsd.himad.notcom.org (Postfix, from userid 1000) id 1CAB11C9B99; Tue, 11 Jul 2023 20:37:19 +0000 (UTC) Received-SPF: pass client-ip=2604:180:2:2e8::2; envelope-from=vuori@notcom.org; helo=uslohestin.notcom.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264945 Archived-At: configure on NetBSD forces using the native libterminfo library, even when ncurses is available. When started with a TERM such xterm-256color, this results in abort() in tputs1 (TERM=xterm works). Hacking configure to use ncurses when available provides stable operation on xterm-256color. The current special configure logic originates from this issue: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6190 . This check is probably not a good idea today. Either NetBSD should do a) what the other BSDs do (= force ncurses) or b) what gnu* does (use what configure found, otherwise force ncurses). My vote goes to b (possibly with a warning from configure if libterminfo is picked): keep it possible to build emacs without installing ncurses, but use ncurses for terminfo when available. To reproduce: 1. Compile Emacs 29 on NetBSD 9.3 (same logic is present on master, so I assume that won't work any better). 2. Note that configure prints "-lncurses" if ncurses is installed, but actually emacs is linked with libterminfo. 3. Run TERM=xterm-256color emacs -nw. You should get an abort in tputs1. In GNU Emacs 29.0.92 (build 4, x86_64-unknown-netbsd9.3, X toolkit, cairo version 1.16.0) of 2023-07-10 built on netbsd Repository revision: 419b4d44914701cedf308df58c3e5789715c87e7 Repository branch: emacs-29 System Description: NetBSD netbsd 9.3_STABLE NetBSD 9.3_STABLE (VUORI) #4: Sat Jun 3 09:32:53 UTC 2023 vuori@netbsd:/usr/src/sys/arch/amd64/compile/VUORI amd64 Configured using: 'configure --prefix=/home/vuori/emacs --with-x-toolkit=athena --without-sound --with-modules --with-json --without-toolkit-scroll-bars CFLAGS=-I/usr/pkg/include 'LDFLAGS=-L/usr/pkg/lib -R/usr/pkg/lib -R/usr/X11R7/lib'' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE PDUMPER PNG SQLITE3 THREADS TIFF WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings: value of $LC_COLLATE: C.UTF-8 value of $LC_TIME: C.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm byte-opt gv bytecomp byte-compile rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind kqueue lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 46279 8331) (symbols 48 5824 0) (strings 32 14914 1175) (string-bytes 1 424404) (vectors 16 8323) (vector-slots 8 105495 7095) (floats 8 24 247) (intervals 56 217 0) (buffers 976 10))