From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64577: 29.0.92; configure on NetBSD forces unstable terminfo library Date: Sat, 15 Jul 2023 11:17:13 +0300 Message-ID: <83sf9pd1x2.fsf@gnu.org> References: <87v8eqrxq8.fsf@notcom.org> <837cr572jt.fsf@gnu.org> <83zg415k7c.fsf@gnu.org> <83wmz55d2l.fsf@gnu.org> <83jzv45qxy.fsf@gnu.org> <6ootbbstpbikcsxwcb2ek6lg3jbyxzgkdd25fwj2vmjpa77oiw@o5uqewt3upum> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64577-done@debbugs.gnu.org To: Valtteri Vuorikoski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 15 10:18:29 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 1qKaU0-00009G-FX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jul 2023 10:18:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKaTo-0001qi-2n; Sat, 15 Jul 2023 04:18:16 -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 1qKaTc-0001RE-14 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 04:18:06 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qKaTb-0004ie-30 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 04:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKaTa-0002LC-Cy for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 04:18:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2023 08:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 64577 X-GNU-PR-Package: emacs Mail-Followup-To: 64577@debbugs.gnu.org, eliz@gnu.org, vuori@notcom.org Original-Received: via spool by 64577-done@debbugs.gnu.org id=D64577.16894090648965 (code D ref 64577); Sat, 15 Jul 2023 08:18:02 +0000 Original-Received: (at 64577-done) by debbugs.gnu.org; 15 Jul 2023 08:17:44 +0000 Original-Received: from localhost ([127.0.0.1]:44052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKaTI-0002KX-1H for submit@debbugs.gnu.org; Sat, 15 Jul 2023 04:17:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKaTF-0002KK-G4 for 64577-done@debbugs.gnu.org; Sat, 15 Jul 2023 04:17:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKaT4-0004eL-GF; Sat, 15 Jul 2023 04:17:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ZqKz6hNcRtg6w7KP0zcfEA1TidwXzsOuUWQVh4jiNIQ=; b=lO/y1EJgzJms qYBt/4bzcs0tvfwUrLWKQYE+9HqFjpxuwy1jPdlcahYr5TDusjm1fmjqSbUKJaJKLMsIaVz0OFbpT dvCzLSnc+XolmmUJEIqP918K81JCjYGGCn3W1uaJON/ii7V6dHJuzBk+g0miRWJRwpNOlILJAlTLk 8KL3fzSA9zO+plzX8SjZpAX2+EAzMtTCTwifq7VMY8IsB1GADCk6h8USLD5eVW3rrGaedS6/SJX3b gJsACRsVV9KlSmKiafmSw8/7WMf6uIhmvxA6XS9lmEtxyY3e059nyoElj4zMxw2jU2bWwBjjrvpKq duqwNfGbv06kTMMj679APA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKaSX-00012n-Nr; Sat, 15 Jul 2023 04:17:06 -0400 In-Reply-To: <6ootbbstpbikcsxwcb2ek6lg3jbyxzgkdd25fwj2vmjpa77oiw@o5uqewt3upum> (message from Valtteri Vuorikoski on Thu, 13 Jul 2023 12:35:51 +0300) 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:265166 Archived-At: > Date: Thu, 13 Jul 2023 12:35:51 +0300 > From: Valtteri Vuorikoski > Cc: 64577@debbugs.gnu.org > > > I don't mind installing the above instead of my proposal, thanks. > > Great. I looked at NetBSD 5.1 sources and expanded the check somewhat: > > --- a/configure.ac > +++ b/configure.ac > @@ -5212,7 +5212,11 @@ AC_DEFUN > ;; > > netbsd) > - if test "x$LIBS_TERMCAP" != "x-lterminfo"; then > + # NetBSD versions prior to 6.0 lack native terminfo, but have a > + # tputs() built on top of termcap in these libraries. Use native > + # termcap instead in this case. NetBSD >= 6.0 has native terminfo > + # implementation in -lterminfo. > + if test "x$LIBS_TERMCAP" = "x-ltermcap" -o "x$LIBS_TERMCAP" = "x-lcurses"; then > TERMINFO=no > LIBS_TERMCAP="-ltermcap" > fi > > On 5.1 and older (no ncurses installed), configure's scan through > tputs_libraries matches either -ltermcap or -lcurses (both seem to > include tputs() in 5.1, but situation may differ in older versions), > but this will be termcap under the hood. Therefore force TERMINFO=no > and also force -ltermcap (as before) to avoid pulling in curses > unnecessarily. > > On 6.0 and newer (again no ncurses) the order of tputs_libraries > should always cause -lterminfo to match first, so the branch will not > be taken and TERMINFO stays enabled. > > Installing ncurses should now enable full terminfo support on any > version. > > Tested on 9.3 with and without ncurses installed and the result is > full functionality with TERM=xterm-256color. Thanks, installed on the emacs-29 branch, and closing the bug.