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: Fri, 04 Aug 2023 21:23:04 +0800 Message-ID: <87v8dv7xhj.fsf@yahoo.com> References: <1428589171.162865.1691134964773@mail1.libero.it> <837cqbw8df.fsf@gnu.org> <87cz039m4v.fsf@yahoo.com> <831qgjw0nj.fsf@gnu.org> <874jlf9fbr.fsf@yahoo.com> <83v8dvufng.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="13930"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 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 Fri Aug 04 15:24:03 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 1qRumg-0003Kl-NK for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Aug 2023 15:24:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRum1-0000ww-T4; Fri, 04 Aug 2023 09:23:21 -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 1qRulz-0000wQ-Gc for emacs-devel@gnu.org; Fri, 04 Aug 2023 09:23:19 -0400 Original-Received: from sonic303-21.consmr.mail.ne1.yahoo.com ([66.163.188.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRulx-0005hl-Vq for emacs-devel@gnu.org; Fri, 04 Aug 2023 09:23:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691155396; bh=uPSfTscwYWPLIyCGAfhDxyUqHZAQNU7iCboOmlhSzOQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=NeU+6ptT9h7+AaPME7XhkeXLFXapt62cfNhXhafGNYO6FAAjBEr07erblA94WqCY05C7ukJqOKz/pD3nKJY/3dc0+e8gYgMU8KU7K4tB0QCA6+BBU4SbryNKLxP+NVhqvCJOxBsZ3EjzDdhtvI4fHwNP9wwbeSmoqI/Bqk+Di+93e0K40BDZsAsGRhH/ByHmbkZjdJmd9MCsWOnn6ABbr7DHHt1QmvJ1UVpMP2nMJ7LbCKIn3KkfhVv0eJl/mtfp422YL8cK3udO6uMhcMlM1tlBaOWPh+2KvzQFc5ijTSbTiN9Xd9SerkSEdsSadkztNTqwP5ZG31V17apQJOWNkQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691155396; bh=WgY05JzMoSLb3F9knMeqFQ5+K9F7yVZao5PZTatp3KY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=S9RtmFfT+eer97AueV+ZrInHmsmDJYBKHR+erKxRVituxnfPVCzgXKwUQfTrKMKLKLGV5ZpYSYeAl9sX+B2dzRfgLrI6FcabRmftRT+YarIqdhBfhFz7mQ8ioZO2WiApo/CSpKbskIcglZpq62NJ5jRVA3PidndBX6FjT+0A3gnIdlXruz+mIH9y6GhEt1t7ezpJpf4qgwOYPapnPtb0P+UWdrXo85HnLuoBegYQfvrj1icCGlbvaqiX9FxCffvCFIHVKnF8o/V8BcINYDUUa2lWJHBrWKTYNWRibWILiO65PjkJmlsrOCr2k5B37MsgO55nEQZJP+ASGyXRNykP1w== X-YMail-OSG: i6TWJ9EVM1nCL2KrjqfOa3pC7IKGTnuOHX0hStu.eofOMhP0iBd6WQFR_2yM7G3 Py1GEqhM0c57.6uU6HFw59aW6ZLHY.pTKl8VmUqYHC8vg3ofGvXeb9XPNEdt.MXYMEm.8.INeUgA l6CrLttSx03QTIvDXvhoKK9hO1D938LgpCe7aNd1lLSggF5aGD8iy0ORPawhMS7ml8iVirkAvPuZ u2N.xzgGHSE_fV7WhJiQVuR.QLTzmEqZU7eVE.C1GaEdwmvM0ID5Pnagj0YoXNU5xXBhCxq9MmyJ GY9aIlC4K.x9jDe986.Pnk70GoQluTEtaepwsU8ZjyRZ2xM1BrTB8gEy9k8Sqk.AG_bRmApyc3ZN AH1y37hn.uSiVJzNX05YVEoCvYtz39Ai2mnUmpkVoQWhxBNoNAaha7zuwPlY3KaVatxwZDZljsaQ U0ER1usYuo0JXNNU1vq4UPT.Hjeip4R.KmuP.aeVMVWwQVF0AtTt.MqGzrZ7Lxj6oo.bS1zAIJSG UfyctEd.lPXBQHIYFdpwj2N_pcziMz5W8Za9gZWNrrHV8hGvFxez7k2b6iZjVb_woRoqtRC2ynp_ v33VRMo6eNL7Esi1xrmxxnvEb5L3DlvJVm94eI.TYHq1_7LJa0DQ474nN2yuaXym2QC8bYwSUw0f 98Lq17l9xDsI2SFHRkoK801k5uRnc48GjOwlDggCkl8zYoxQC5UkDY6uPLK7PrHRGNfWx2rc7eG4 3Ey0VM_7d.1dCnRQrSh5VRgtva0gwuYFCtiUOlPxMCzFQRIrkClIDuA0gx3WY.ZuIvx0PICRZpop DnStNtipFrpMYKCU_d4Be3Bie67NFmQ32g8ssLjyZw X-Sonic-MF: X-Sonic-ID: cac24f18-db4f-4d2c-be12-49a21e880ba9 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Fri, 4 Aug 2023 13:23:16 +0000 Original-Received: by hermes--production-sg3-6b8fc8d58f-nk7q4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8496287c19529ef2291e63b5b0290527; Fri, 04 Aug 2023 13:23:11 +0000 (UTC) In-Reply-To: <83v8dvufng.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Aug 2023 15:59:47 +0300") X-Mailer: WebService/1.1.21685 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.147; envelope-from=luangruo@yahoo.com; helo=sonic303-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308290 Archived-At: Eli Zaretskii writes: >> From: Po Lu >> Cc: angelo.g0@libero.it, emacs-devel@gnu.org >> Date: Fri, 04 Aug 2023 20:12:24 +0800 >> >> Eli Zaretskii writes: >> >> > That doesn't answer my question, AFAICT. In the current master we >> > have no uses of asprintf and vasnprintf, so I asked whether it is >> > needed on the branch, and if so, whether the MS-Windows build uses the >> > code where these two functions are called. >> >> It doesn't, but vfprintf-posix actually replaces all the printf >> functions, not just (vasn)printf. The replacement functions are not >> necessary on Windows, however. > > Then TRT is to disable the build of vfprintf-posix module on Windows. > >> > The way to override Gnulib tests that conclude that some libc function >> > should be replaced is not to override the feature test (unless that >> > feature is supported, but Gnulib doesn't know about it -- which can >> > only happen if we implement the library function inside Emacs). The >> > way to override those is to exclude the relevant Gnulib modules from >> > the Windows build via nt/gnulib-cfg.mk. >> >> There is already: >> >> OMIT_GNULIB_MODULE_vasnprintf = true >> OMIT_GNULIB_MODULE_vasprintf = true >> OMIT_GNULIB_MODULE_vfprintf-posix = true >> >> within gnulib-cfg.mk, but fudging with the feature tests is also >> necessary to generate the Gnulib stdio.h header correctly; absent that, >> it tries to provide definitions for its printf replacements, which does >> not work. > > OK, then I guess there's something else at work here. In any case, > the information posted by Angelo clearly shows that asprintf.c is > being compiled, and that is strange if vfprintf-posix module is > disabled. Maybe we also need > > OMIT_GNULIB_MODULE_asprintf = true > > ? There's no module by that name; asprintf is a constituent of vasnprintf, and that's already mentioned in gnulib-cfg.mk...