From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Valtteri Vuorikoski Newsgroups: gmane.emacs.bugs Subject: bug#64698: 29.0.92; on netbsd 9.3, gmake and "gmake bootstrap" fail to proceed Date: Thu, 20 Jul 2023 13:13:12 +0300 Message-ID: References: <202307180931.36I9VBHK004438@sdf.org> <87sf9l5xj9.fsf@yahoo.com> <83edl578r7.fsf@gnu.org> <202307190310.36J3ADWp017577@sdf.org> <837cqw5bho.fsf@gnu.org> <838rbb42ab.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35261"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20230517-193-0143df-dirty Cc: luangruo@yahoo.com, van.ly@sdf.org, Paul Eggert , 64698@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 20 12:14: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 1qMQfs-0008wh-Kh for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jul 2023 12:14:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMQfe-0006ri-RS; Thu, 20 Jul 2023 06:14:07 -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 1qMQfb-0006pF-F0 for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 06:14:03 -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 1qMQfa-0003fD-7X for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 06:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMQfZ-0000wV-Pe for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 06:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Valtteri Vuorikoski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jul 2023 10:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64698 X-GNU-PR-Package: emacs Original-Received: via spool by 64698-submit@debbugs.gnu.org id=B64698.16898480213560 (code B ref 64698); Thu, 20 Jul 2023 10:14:01 +0000 Original-Received: (at 64698) by debbugs.gnu.org; 20 Jul 2023 10:13:41 +0000 Original-Received: from localhost ([127.0.0.1]:57712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMQfE-0000vL-Vp for submit@debbugs.gnu.org; Thu, 20 Jul 2023 06:13:41 -0400 Original-Received: from jkusti.notcom.org ([118.27.113.153]:34974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMQfC-0000vC-2u for 64698@debbugs.gnu.org; Thu, 20 Jul 2023 06:13:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=notcom.org; s=jk; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WB1+6SK97OEcwF/9uEOf55xe46sPmUqRAD4UxBpMPF8=; t=1689848018; x=1690712018; b=WV3Xr5IwKBB1Dldyb8gGqCx8xHNJeB6bNb7bTtCRH9DcPnsW0EeGtZ8oaJTVJ/dkdQf52VlDstv goV3OOynUKsyNk5TtmGXFBGyKTEiIw8P0fLzPg/yVZilASCFBl8LkgqUStyPtxH3J58Hw+n/fIlBV Ewo3MUoTnY+TXSU7o1syoNl17+eGBM18GMmPxjm+Co6RXa0Xo2c08+UYXEF5XPJPaYSYBhNvfyMNw h1cTk/p5NxVFzgNrFapxoouStFGW1HyO5wXA/6M9gmLQ1XBqTydrc3bwJAnEsDvZFOde5cdWKSmfT rTm1dGJl7VU90pOZC+Uv0mv2eDvuMtbSpuAw==; Original-Received: from submission.internal (id=9cdceae8c7b5bf2d4c2c643b5341fa4197f0c084) by jkusti.notcom.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.x) (envelope-from ) id 1qMQes-003Qqt-20; Thu, 20 Jul 2023 10:13:18 +0000 Original-Received: from a10d750d756b015054aa81d63d047a232e64e839 by sendhost.internal with local (Exim 4.x) (envelope-from ) id 1qMQem-006TFI-FY; Thu, 20 Jul 2023 13:13:12 +0300 Content-Disposition: inline In-Reply-To: <838rbb42ab.fsf@gnu.org> 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:265581 Archived-At: On Thu, Jul 20, 2023 at 07:47:40AM +0300, Eli Zaretskii wrote: > > On 2023-07-19 05:31, Eli Zaretskii wrote: > > > Paul, any ideas? Do we just condition that by ESTRPIPE being defined? > > > > The right way to do it would be to look at the NetBSD source code and > > see how their ALSA libraries deal with the situation. Whoever's > > reporting the problem would be in a better position to investigate this. > > Thanks. > > Valtteri, could you perhaps look into this? Also, I'd be interested > to know why you didn't bump into this problem in your builds. I've been building with --without-sound, and didn't have the ALSA library package installed either. I don't have a machine where I could actually test whether sound comes out, but the alsa-lib package in NetBSD pkgsrc includes an internal type_compat.h header that does this: #ifndef ESTRPIPE #define ESTRPIPE EPIPE #endif Building emacs with sound enabled but alsa-lib _not_ installed seems to work (= compiles and starts) by using the system OSS library. Since Emacs's audio needs are modest, it may be better to use "bsd-ossaudio" on NetBSD if --with-sound=yes. AFAICT "ALSA" on NetBSD is just a proxy for the native audio system anyway. The other option is to try and use ALSA if --with-sound=yes, but #ifdef out the ESTRPIPE branch if ESTRPIPE is not defined. Personally I'd go with the default-to-ossaudio option, since pulling in alsa libraries introduces a pkgsrc dependency into the binary and doesn't seem like it provides a lot of benefit. I'm not quite sure what's the best way to convince configure.ac to act like this, but I can test patches at least on a compiles/doesn't-compile level. -Valtteri