From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Android port Date: Sun, 06 Aug 2023 18:10:32 +0800 Message-ID: <87il9s5vmv.fsf@yahoo.com> 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> <83h6pcrbe9.fsf@gnu.org> <87v8ds5xr4.fsf@yahoo.com> <838raoqzro.fsf@gnu.org> <87r0og5wzt.fsf@yahoo.com> <83350wqzci.fsf@gnu.org> <87msz45wd1.fsf@yahoo.com> <831qggqyln.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1118"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eggert@cs.ucla.edu, bruno@clisp.org, angelo.g0@libero.it, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 06 12:11:32 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 1qSajT-00007F-A6 for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Aug 2023 12:11:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSain-0004pG-7h; Sun, 06 Aug 2023 06:10:50 -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 1qSaij-0004nH-HV for emacs-devel@gnu.org; Sun, 06 Aug 2023 06:10:45 -0400 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSaih-0000KO-Ja for emacs-devel@gnu.org; Sun, 06 Aug 2023 06:10:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691316641; bh=eYCHZLXFYkZpMFkfvXUjU+HuvmqjG2qKjQfJhRARG8k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=IU1M0bVLF00nLA4AfWWlB791XHwJrqeKAhhxVeJ+o6MDe+grNz6hyK1Ewa0DUFVyGHTnumusU6McIYO8TPkaBK3fY6HaHQ6gP+PrsXG14y59TVHJX8C8HOYy45RPPc05lCIZw3DRbYwuUAAJJZ/E+WHrr6+k2KLaE1kBrAVFpbaq6iUu74cawmPt1hSGiujo5393TRcTmDW4pXVpcyCu7xokz/ZhxxoLU/IYGBmOFqIJNjTpnyT0Ys6SPL6rFCUY5Z7j1iy/1ACJSDdMKpFsIJvmP52DoGVLVdPz730bhUqoTcEIfmpsJSd2m5ljDzh6fCEsCUV893ZsJrhuFrTRUA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691316641; bh=0D98qx1Z1TVlOhV9htaY19K8+LR8WQMVzWrFH0M7E2o=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=GL86q49DdZ7v1Z2UNGSvHibspvl3AN29F8jgytnsR21A65BIY911OA+XY5xBtWB3Dc7FQxmKWraZuNoyhi3+9zV5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DGQ0eUHP1GA8b JisIZH6lGhyoy4RXxDYZzRIyT7.UYgF8mTkbItkkCH X-Sonic-MF: X-Sonic-ID: 6686bfad-7a43-4f32-a6b0-f33d68a2495f Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sun, 6 Aug 2023 10:10:41 +0000 Original-Received: by hermes--production-sg3-6b8fc8d58f-wskqk (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 34b8dab237329b142d792a5661b55560; Sun, 06 Aug 2023 10:10:38 +0000 (UTC) In-Reply-To: <831qggqyln.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 06 Aug 2023 13:00:52 +0300") X-Mailer: WebService/1.1.21695 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.200; envelope-from=luangruo@yahoo.com; helo=sonic301-31.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308342 Archived-At: Eli Zaretskii writes: > Then I don't think I understand this, since (a) MinGW64 which Angelo > uses does have asprintf, and (b) we could use the configure variable > that records the existence of asprintf to override that, like we do > with other ac_cv_func_* variables. But for some reason you didn't use > that variable (or any similar one) in your proposed patch, why? That's because my patch was an addendum to changes installed on the feature/android branch months ago. The diff between mingw-cfg.site on the branch and on master is more illustrative: diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index 425eaace30d..f78ee525bf1 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site @@ -173,3 +173,21 @@ gl_cv_func_nanosleep=yes # Suppress configure-time diagnostic from unnecessary libxattr check, # as xattr will not be supported here. enable_xattr=no +# Don't build gnulib printf either. +gl_cv_func_printf_sizes_c99=yes +gl_cv_func_printf_sizes_c23=yes +gl_cv_func_printf_long_double=yes +gl_cv_func_printf_infinite_long_double=yes +gl_cv_func_printf_directive_a=yes +gl_cv_func_printf_directive_b=yes +gl_cv_func_printf_directive_f=yes +gl_cv_func_printf_directive_n=yes +gl_cv_func_printf_directive_ls=yes +gl_cv_func_printf_directive_lc=yes +gl_cv_func_printf_positions=yes +gl_cv_func_printf_flag_grouping=yes +gl_cv_func_printf_flag_leftadjust=yes +gl_cv_func_printf_flag_zero=yes +gl_cv_func_printf_precision=yes +gl_cv_func_printf_enomem=yes +ac_cv_func_vasprintf=yes Both the check for vasprintf (Gnulib eschews testing for asprintf, since asprintf is never present where vasprintf is not) and the checks for printf features are overridden, because Gnulib also tries to replace vasprintf if it discovers that the conventional printf functions will need to be replaced.