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: Wed, 12 Jul 2023 19:06:42 +0300 Message-ID: <83wmz55d2l.fsf@gnu.org> References: <87v8eqrxq8.fsf@notcom.org> <837cr572jt.fsf@gnu.org> <83zg415k7c.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40032"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64577@debbugs.gnu.org To: Valtteri Vuorikoski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 12 18:07:51 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 1qJcNb-000AFS-Fq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jul 2023 18:07:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJcNJ-0003yb-Lq; Wed, 12 Jul 2023 12:07: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 1qJcN9-0003kO-PJ for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 12:07:25 -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 1qJcMo-0005za-Er for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 12:07:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJcMn-0003gV-Th for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 12:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jul 2023 16:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64577 X-GNU-PR-Package: emacs Original-Received: via spool by 64577-submit@debbugs.gnu.org id=B64577.168917801214145 (code B ref 64577); Wed, 12 Jul 2023 16:07:01 +0000 Original-Received: (at 64577) by debbugs.gnu.org; 12 Jul 2023 16:06:52 +0000 Original-Received: from localhost ([127.0.0.1]:52836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJcMe-0003g5-3p for submit@debbugs.gnu.org; Wed, 12 Jul 2023 12:06:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJcMc-0003fk-GW for 64577@debbugs.gnu.org; Wed, 12 Jul 2023 12:06:51 -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 1qJcMW-0005wj-4q; Wed, 12 Jul 2023 12:06:44 -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=i96LkXqsHQtcrt+WH8GtZ2sbBgLxpAoYEKN06Z9knT4=; b=OLuXbvXkdvpM X+GRYf5uYHeAThKURGiiJRq0AD93qbYG93rz65AuOpDGRRZ81fe8cArkqgg4XzsRyNyX145iv4pGt +IR4u0n5q7lvEaHZScyfkYC8gy0nlkxFThT7CwKHA+Ib9NXGltqoodX/8Cm+jcWJ8CeC6CDBOR9j6 +dOl9ubA7M0SRXS0oNvKJ4mVQgw9UEzjGNozggawKOTP0ZRdwRhwcuJ8CPU/EcK8jbZRKF8dLngDX 1IczZZ/iCBzzsn84+VhHAAqwQxHXiVdZqYpxrTnltzjOYrJFHDeajufQ/eZXwOzwInAWGS1Id6HAk INZIC7+0J9D5phle7SIEdQ==; 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 1qJcMF-00019j-Fh; Wed, 12 Jul 2023 12:06:39 -0400 In-Reply-To: (message from Valtteri Vuorikoski on Wed, 12 Jul 2023 17:06:08 +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:264971 Archived-At: > Date: Wed, 12 Jul 2023 17:06:08 +0300 > From: Valtteri Vuorikoski > Cc: 64577@debbugs.gnu.org > > > diff --git a/configure.ac b/configure.ac > > index 19575e8..21c396f 100644 > > --- a/configure.ac > > +++ b/configure.ac > > @@ -5212,7 +5212,7 @@ AC_DEFUN > > ;; > > > > netbsd) > > - if test "x$LIBS_TERMCAP" != "x-lterminfo"; then > > + if test "x$LIBS_TERMCAP" != "x-lncurses"; then > > TERMINFO=no > > LIBS_TERMCAP="-ltermcap" > > fi > > It fixes the immediate problem, yes. But I don't think this special > case should stick around, since it seems relevant only to a very > ancient version of NetBSD. We don't want to drop support of old versions just because we can, and we don't really know how "ancient" those ancient versions should actually be to require this special case. We know that in May 2010 it was TRT, but not when it stopped being TRT. Without knowing that, I'd like to avoid removing this, at least until we hear a real problem with it. Asking NetBSD users to install ncurses doesn't sound like a problem to me. > I tried out the following patch and it turns out that the thing that > causes tparam1 aborts is actually TERMINFO=no: That's strange, since termcap and terminfo are the same on NetBSD. Maybe the problem is that TERMINFO=no means we don't compile terminfo.c into Emacs, and/or also don't define TERMINFO, which could bypass more code that's needed for terminfo? In that case, just avoiding TERMINFO=no, even if ncurses were not found, could be another good measure. > If users with ancient NetBSD versions experience problems with > libterminfo (that the original special case logic presumably avoided), > they can install ncurses as a workaround. That argument goes both ways, doesn't it?