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#64698: 29.0.92; on netbsd 9.3, gmake and "gmake bootstrap" fail to proceed Date: Thu, 20 Jul 2023 19:12:43 +0300 Message-ID: <83a5vq36kk.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12183"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, van.ly@sdf.org, eggert@cs.ucla.edu, 64698@debbugs.gnu.org To: Valtteri Vuorikoski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 20 18:13:24 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 1qMWHL-0002xf-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jul 2023 18:13:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMWH5-0003L4-80; Thu, 20 Jul 2023 12:13: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 1qMWH1-0003Kd-Bd for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 12:13: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 1qMWH1-0000Id-16 for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 12:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMWH0-0006f3-FO for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 12:13: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: Thu, 20 Jul 2023 16:13:02 +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.168986954325538 (code B ref 64698); Thu, 20 Jul 2023 16:13:02 +0000 Original-Received: (at 64698) by debbugs.gnu.org; 20 Jul 2023 16:12:23 +0000 Original-Received: from localhost ([127.0.0.1]:59578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMWGN-0006dp-Bo for submit@debbugs.gnu.org; Thu, 20 Jul 2023 12:12:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMWGK-0006dY-8N for 64698@debbugs.gnu.org; Thu, 20 Jul 2023 12:12:22 -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 1qMWGC-000091-Rj; Thu, 20 Jul 2023 12:12:13 -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=Iss34Vvo+ZT3/bNWxWETWs/csORTyixKcwaLRkkeubg=; b=E2s8BEBnrRdX IP03LO1NhxiH/qa+fO0NLllbAra02i7Qa7ifVJe8p+AXdkah39syvkkAi5JTozVGTLVJxz+B3BGwD zwP2dGstFqdTixbz2f8Row++8Niyx0plFhEogPSmtAs/AxET2K1Xy5chjyKyiyqR82h67sk7VeNJW /9oC4/PNGrcyaNKT+4Jf0Lkj8FFuNxYxG8SjaeNc8vLjvB95pCdTYjSh0ExNjOVOZ7T9X/2mN5Iwy D+ev9quWcgckBKydRNf+WjVlwBPsxQkB8tafjaL0j3IVilYuSuNXP97Gg7u7ZVZ9wvL7TuScwunga m900UV2Up78PGtydxghtGA==; 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 1qMWGB-0004rq-Tt; Thu, 20 Jul 2023 12:12:12 -0400 In-Reply-To: (message from Valtteri Vuorikoski on Thu, 20 Jul 2023 13:13:12 +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:265615 Archived-At: > Date: Thu, 20 Jul 2023 13:13:12 +0300 > From: Valtteri Vuorikoski > Cc: Paul Eggert , van.ly@sdf.org, luangruo@yahoo.com, > 64698@debbugs.gnu.org > > On Thu, Jul 20, 2023 at 07:47:40AM +0300, Eli Zaretskii wrote: > > 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. Thanks. I went with the #ifdef approach on the release branch, since it's simpler and therefore safer. Patches are welcome for preferring bsd-ossaudio on NetBSD.