From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Emacs macOS build warnings Date: Sun, 6 Feb 2022 16:00:26 +0000 Message-ID: References: <968F1C8D-123F-4692-B035-C999767CC45C@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Emacs-Devel To: Mattias =?iso-8859-1?Q?Engdeg=E5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 06 17:02:49 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nGk01-0009Uq-0b for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Feb 2022 17:02:49 +0100 Original-Received: from localhost ([::1]:52454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGjzz-0003YM-Ns for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Feb 2022 11:02:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGjxp-0002Un-Jh for emacs-devel@gnu.org; Sun, 06 Feb 2022 11:00:33 -0500 Original-Received: from [2a01:4f8:fff0:65::8:228] (port=60677 helo=outbound.soverin.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGjxm-0001SH-5c for emacs-devel@gnu.org; Sun, 06 Feb 2022 11:00:32 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 87E8E210; Sun, 6 Feb 2022 16:00:26 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1644163225; bh=UNlNWJDz71A5Zt5s20GwLCcuyaD5AfE203lK6BmJ6L8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=itMttw/puaI51k1cZcIZiQI4MspAc4c6KOxH/XuEe3ty/i7RSmU4NJ88Qy1FtAwPt JHMHK9pyMsSumM+JlNxBPEDDXE0tCPjUlnkjs6UXuZeWvgHzmU9BDTHBBJ0Xvt9GjT 5JYCsV6lOsZMsW1QCe+wgCrSjoKmrlxLyaaGFsQn5Rq90Rs9troqB4jZxRlWtjno3o 5x6L192P6N8K1rc3/oP/8DJ4cqqTITuoC0Q49GrsVmumVWYh1Qlp3VeEBO1wQeCTnQ lQSZjYyarbvCoD8qZlso/2o/9m/wWHzYrSB5ZISxUkR4RXsRYpxRsbMjue+BasDyDk 8436VscMXK1Cg== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95) (envelope-from ) id 1nGjxi-00050K-5w; Sun, 06 Feb 2022 16:00:26 +0000 Mail-Followup-To: Alan Third , Mattias =?iso-8859-1?Q?Engdeg=E5rd?= , Po Lu , Emacs-Devel Content-Disposition: inline In-Reply-To: <968F1C8D-123F-4692-B035-C999767CC45C@acm.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f8:fff0:65::8:228 (failed) Received-SPF: pass client-ip=2a01:4f8:fff0:65::8:228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:285978 Archived-At: On Wed, Feb 02, 2022 at 12:46:09PM +0100, Mattias Engdegård wrote: > Dear Emacs NS maintainers, > > Building Emacs on macOS 11.6.3 (Big Sur) with Apple clang 13.0.0, I > get deprecation warnings from two uses of `vfork` and one of > `CTGetCoreTextVersion`. I'd like to get rid of them but without > causing trouble for other configurations. > > Silencing the vfork warnings would be straightforward enough but the > question is under what condition it should be done. Maybe it doesn't > make any harm when it isn't needed? On the latest macOS I believe vfork now does the same thing as fork, so it might be easiest to detect the OS version and unset HAVE_VFORK, although since we don't seem to actually check for that directly in configure.ac I guess it's perhaps a standard test in autoconfig which may make it hard to over-ride? The alternative approach is to look at whether we should be using posix_spawn here. I was under the impression that we had already switched to using posix_spawn, at least on macOS, so I guess these calls to vfork were missed. > I treated CTGetCoreTextVersion warning by following the direction in > the deprecation message and used NSProcesInfo instead, and it seems > to work although it's a bit clumsy. Is there a better way? I think your fix for this is good and probably the right thing to do. -- Alan Third