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: Merging feature/android Date: Sat, 04 Mar 2023 16:19:24 +0800 Message-ID: <87wn3xudwz.fsf@yahoo.com> References: <87edq7ztks.fsf.ref@yahoo.com> <87edq7ztks.fsf@yahoo.com> <83pm9reccn.fsf@gnu.org> <87v8jjxxo9.fsf@yahoo.com> <382933e4-deb5-e107-9165-d41e55949f0a@cs.ucla.edu> <83o7p9atig.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="12753"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Paul Eggert , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 04 09:20:21 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 1pYN7t-0003AB-5Y for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Mar 2023 09:20:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYN7E-0003Au-S7; Sat, 04 Mar 2023 03:19:40 -0500 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 1pYN7C-00039M-Ur for emacs-devel@gnu.org; Sat, 04 Mar 2023 03:19:39 -0500 Original-Received: from sonic314-22.consmr.mail.ne1.yahoo.com ([66.163.189.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYN7B-0002jo-5e for emacs-devel@gnu.org; Sat, 04 Mar 2023 03:19:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677917972; bh=Fcj2gOMm0BEhH3f9s7kjLdKtWy8tAsRQ6fa6h1UieiY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=ZE17v0hP2SDwunAD5Nnpw1MP4exdWi0mX1BoQBgFKlFTGzC9DuAjTjHmYzHcEVRX+rmnCQejasrc1SjVLdHRbjpTCFi//6L5KW2voZ5nQ6oB5QRHTDOvrOscufdFZIKfSwBNSKcHEXGh2cp/xqDUMLcrTjvfUgW7tG2JX67GYCMPaiD22j6JBrz1jjBJazmqz6iDRy9uglb+QqITVsnPSPsKcnX8XwHbJpvkML3UDqTCDTR1f/kyXRhc3r4VV6dxRWZZJXD4gjCvQjcynyjrvfsGOjq/SFVIFQZ+x2aXtKqXF1gIZP44XHX+LrP6GF7olYD8SaoDY5g8oJDWk+6Hww== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677917972; bh=yjQKg7/yfGHPHFKq6s1k6mE6B11PXYB/wnlGNbgAfAt=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=U6rLRZplL0BYkuTM+CCgBm8RGMmaHtjAG2V502Q1VdDSgCcSc/m583duGhomJNm9WNLFX63iadL2MfL0Tw+dWZaAj8yeQx6IOGbIoNRRUzlqUP+fv5SdiqwLXsLCwxK3+sj5/byz/pzlpVzs5ev3CowyX3PZ9OoggAdnGWoIzanxPxjGae8I+ghPrtYXrnhsIYbWlMb/jw0Yicofw6xd5nhzVa2s1gTb71JoSzslIMWkLb1okaVfDCPHFgOCIkZg8rBfZeR9swReDO/ExEh89j7ok+J1p+8bflfKYWZoYyoEVUor5A/W4XNoavUM8bfGKeuTPPIFYxW5/JjMS+8m0Q== X-YMail-OSG: 9TAm68AVM1lqMfc_tDst.WEB6WpyiD8yvo6N_RDEF6lvgYut20kHNuhLeto_h29 1F6JBt9LOLbThgsDC_H9v.Eq9EZqbAAuH8o_Z8TcYrYv4JwPXSIkQQds3mSrK6OXMN84flGk8JHe TjD6ZhLHuOZeziI8dx6kd6nbkkYScNUOx6ysp8NXDOxgad8LQMMy3YEWea0RI21GhB_ol9b3BeMe .JAb0CeI2oaN7fGqrkoymEmlXs3YdlS3Q2Zl7F9GJaNpslbHvsYT7y2Gi6CCdtzYLsyBJmdmw7gS RwloDPkuHewcL9Bus.FHokkL5DZK4pWaVQ4p_5GDyEJo8jDRrkUpsm.kzphMlUNM6qCICQG3Z.yT Rf34j222opbW_htwYsdpRYDX95X0M_CLqlEkkqKE1KAatJDOk6nsdccSlgJSHvzve2p7sc3KBJsR dqGDwo_gptiFS1PCtjHZtB9LSmsiXmRwqnWlun.qWGuFm1LSmgudhSwgF32mGr7fJcEEaaGTdm2h f1e3ORHq6S7sMyYnWdEoz1EaFJ3aUXWu8gKqK8lOAaSR563baCnl4rqmbEYmgtMP.eODgnnmnkIr 0wjgB_8edAQovrIDgcbcL7y0Lu5E2HwCNuaBx.jzo2HkDkDzGfp8Lv_rtiPKqur7bWFWzXgMb6kv umwJXkJlkfSfw88wcp74Ddwxo3RqRXRdg0kzsKywl1Uvj0QJZZE53xn1_HIDAQUskhBRrOEzU6GH MM1G45kumeQa7phkBw4ixhH6cL9t5vn9P8FgUQKDIDhOB8QBpN1EaFJq6uPG4AMO6EorK0DL0DX6 2m.3dOVW0TthEQqexQIrDRsT7zOAveMVuEpY9k5Tbd X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sat, 4 Mar 2023 08:19:32 +0000 Original-Received: by hermes--production-sg3-67c57bccff-5hdhr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 3dce60befcea011764cfce64ae650dd4; Sat, 04 Mar 2023 08:19:29 +0000 (UTC) In-Reply-To: <83o7p9atig.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Mar 2023 09:02:47 +0200") X-Mailer: WebService/1.1.21221 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.148; envelope-from=luangruo@yahoo.com; helo=sonic314-22.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:303938 Archived-At: Eli Zaretskii writes: >> Date: Fri, 3 Mar 2023 13:17:00 -0800 >> Cc: emacs-devel@gnu.org >> From: Paul Eggert >> >> On 2023-03-02 02:19, Po Lu wrote: >> >> > Paul, the Android port really needs the `printf-posix' and >> > `vasprintf-posix' modules (as Android's printf ranges from ``completely >> > broken'' to ``just missing %td'' depending on the OS version being >> > used), but stpncpy and getline are only ``nice-to-have''s. Is there any >> > downside to depending on those additional gnulib modules? And will they >> > build on MS Windows as well? >> >> They should build. They'll bring in a lot of support modules, but if we >> play our cards right those modules will be built only on Android so it's >> only a matter of library code clutter. > > Just having lib/ files that aren't built on some platforms is not a > problem, from my POV. We have that already, actually: many of those > files aren't built on GNU/Linux with new enough kernel and glibc. > >> > I tried multiple times, but the gnulib stuff kept trying to include >> > generated headers from the wrong copy of gnulib, so in the end I >> > couldn't find any way around having to keep two copies of gnulib >> > in-tree. >> >> This should be doable by having two build directories, but only one copy >> of the Gnulib source should be needed. The two build directories would >> have different config.h files. You'd run 'configure' twice (or have two >> 'configure' files if you want to be fancier). That sort of thing. > > I think running configure twice could be a minor annoyance, but we > could arrange for the configure script or for some Makefile to run > another configure script when needed. The Sourceware build tree does > something like that when you build GCC, Binutils, or GDB. We already run configure twice: if you configure --with-android, then very early on (after initializing the Java compiler stuff), configure calls a stripped-down version of itself to generate Makefiles using the Android compiler. This includes gnulib.mk and lib/Makefile.in, which are copied to cross/lib and used there to cross-compile gnulib. So ``cross'' itself kind of serves as this second build directory. The problem is that the ``first'' build directory happens to be the same directory containing the gnulib sources.