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.devel Subject: Re: Android port Date: Sun, 06 Aug 2023 08:24:30 +0300 Message-ID: <83h6pcrbe9.fsf@gnu.org> References: <1428589171.162865.1691134964773@mail1.libero.it> <3473524.ldcX8TXnAK@nimes> <83fs4xslst.fsf@gnu.org> <6358080.k4LH7P0x6x@nimes> <83edkhskyq.fsf@gnu.org> <87jzu97hu2.fsf@yahoo.com> <835y5tse75.fsf@gnu.org> <83zg35qz7m.fsf@gnu.org> <87cz016oxn.fsf@yahoo.com> <83msz4rcil.fsf@gnu.org> <878rao7o8o.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9538"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bruno@clisp.org, angelo.g0@libero.it, eggert@cs.ucla.edu, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 06 07:25:15 2023 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 1qSWGR-0002FA-Jm for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Aug 2023 07:25:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSWFY-0000gW-7l; Sun, 06 Aug 2023 01:24:20 -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 1qSWFW-0000gL-6l for emacs-devel@gnu.org; Sun, 06 Aug 2023 01:24:18 -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 1qSWFT-00072a-Ek; Sun, 06 Aug 2023 01:24:15 -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=yHqL7mZjVdsXQOl/1jNzXJozINOpG1D6g/8uEvhAewE=; b=Pna9DdBHR8o6 VIRSEVsUIBjLJrXJW9ECgvwig51AsRkLg2kMyHPFcfMMB1gVc0+NsFLzzNsZhYTh48kfAIy6Dd98D BLuWag5YuRoD8s+F77scZqc9D1NCaChj/JsPgURB/eadXrRd8Lreeuvj5x3ToVZfiBjI/PdQ8EGNV nQDdgy8EbuYZ50BN4ZW0HXUFswglTw4Qi8qFPsSaYGHYKXIdrQuSZEqvh/v8eh30NCLppmUx0tn4M 4Ci01lD8SuHNhcgPtZZ5vzrZtCMt/y6OyLIIQHV+M+ZdX2bhEUISb7fXd/JY/7yXlBeJJXTiZopSC VYtL7zNZCgSTMGPCYMSstw==; 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 1qSWFS-0003yg-Io; Sun, 06 Aug 2023 01:24:14 -0400 In-Reply-To: <878rao7o8o.fsf@yahoo.com> (message from Po Lu on Sun, 06 Aug 2023 13:07:19 +0800) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308328 Archived-At: > From: Po Lu > Cc: bruno@clisp.org, angelo.g0@libero.it, eggert@cs.ucla.edu, > emacs-devel@gnu.org > Date: Sun, 06 Aug 2023 13:07:19 +0800 > > Eli Zaretskii writes: > > > Look, I'm the only person around here who had ever seriously worked > > with these facilities, so please believe me when I say that some ways > > are better than others, okay? > > OK, but the Gnulib developers aren't inclined to introduce any changes > for us here. Paul didn't chime in yet, so I'd like to wait for him to comment on this. I see no reason why we would be unable to omit these modules like we do with others. > So we've got to work with what we have, following practice > that already exists within mingw-cfg.site: > > # We don't need fdopendir > ac_cv_func_fdopendir="not-needed" > gl_cv_func_fdopendir_works="no-but-not-needed-so-yes" > > # Avoid gnulib replacement > gl_threads_api=posix > gl_cv_func_pthread_sigmask_return_works=yes > gl_cv_func_pthread_sigmask_unblock_works="not relevant" > gl_cv_func_pthread_sigmask_macro=no There are good reasons for those (and others like them). fdopendir is not a feature, it's an API that cannot work on Windows. And the pthreads stuff causes Emacs to depend on the pthreads DLL (which is bad for distributing the binaries), and also replaces some time-related structure definitions ('struct timespec', I think) with pthread ones -- and these cannot be undone by omitting some Gnulib modules. Like I said: this stuff is done for very good reasons, and only after careful consideration of the alternatives. It worked for the last 10 years with almost no changes.