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 16:32:39 +0300 Message-ID: <83zg415k7c.fsf@gnu.org> References: <87v8eqrxq8.fsf@notcom.org> <837cr572jt.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29141"; 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 15:33:23 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 1qJZy5-0007Dz-OI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jul 2023 15:33:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJZxo-0006RZ-Bq; Wed, 12 Jul 2023 09:33: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 1qJZxn-0006RO-AJ for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 09:33:03 -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 1qJZxm-0006F8-Lj for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 09:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJZxm-0007ao-Gu for bug-gnu-emacs@gnu.org; Wed, 12 Jul 2023 09:33:02 -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 13:33:02 +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.168916875529150 (code B ref 64577); Wed, 12 Jul 2023 13:33:02 +0000 Original-Received: (at 64577) by debbugs.gnu.org; 12 Jul 2023 13:32:35 +0000 Original-Received: from localhost ([127.0.0.1]:51940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJZxK-0007a5-PS for submit@debbugs.gnu.org; Wed, 12 Jul 2023 09:32:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJZxH-0007Zp-W7 for 64577@debbugs.gnu.org; Wed, 12 Jul 2023 09:32:33 -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 1qJZxC-0006B6-1I; Wed, 12 Jul 2023 09:32:26 -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=vJFT++9vSLYbxhIBIvby3Ft981jQ3J6JNx4QuaGzS7c=; b=BDwoFa8JwkoC rml4ZEeYUNWtxzLJQ/JWZpDPeTlYhWDOUhWmaymsW+h7g1u7juwsyYKomIy43LrIdKHjOr070PTFn c1cD+AGV69rXvOIUXfGFLWODXcP6gK/WAqIkeQQI3Zeohr3yb/L31brjoIOif+sqdP9Tm+zm/lbfY rZlUg7VBYdBAf+/IW5e3xGKWY1lg9txrDp6kKAvE1N9vGuRFUOUzDouCv2nDWgBdF8ig3k/Mk0wAI xJo/mMlbvCl/Y217P03YAMrfkOHpvs6bxWa3X4tnEEtree4Q4DPkutt2v2nCdM9sIgOVvi3m5hyhV a9Io1B8+pbU1mV9GkSNbag==; 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 1qJZxB-0000EC-Gv; Wed, 12 Jul 2023 09:32:25 -0400 In-Reply-To: (message from Valtteri Vuorikoski on Wed, 12 Jul 2023 15:57:29 +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:264962 Archived-At: > Date: Wed, 12 Jul 2023 15:57:29 +0300 > From: Valtteri Vuorikoski > Cc: 64577@debbugs.gnu.org > > > netbsd) > > if test "x$LIBS_TERMCAP" != "x-lterminfo"; then > > TERMINFO=no > > LIBS_TERMCAP="-ltermcap" > > fi > > > > should have set TERMINFO=no, which disables linking against terminfo. > > > > So I don't think I understand what is going on there. > > Finding ncurses is good, but unfortunately ncurses isn't what ends up > getting used. configure says: > > checking for library containing tputs... -lncurses > > but this happens: > > $ ldd src/emacs | egrep 'term|curses' > -lterminfo.1 => /usr/lib/libterminfo.so.1 > > Disabling the test above results in src/emacs being linked with > ncurses. That is, when I remove the whole "netbsd" special case > from configure this is the result: > > $ ldd ~/emacs/bin/emacs | egrep 'term|curses' > -lncurses.6 => /usr/pkg/lib/libncurses.so.6 So does the patch below fix the issue? 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