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 16:13:08 +0300 Message-ID: <83msz4pb4r.fsf@gnu.org> References: <1428589171.162865.1691134964773@mail1.libero.it> <87a5v45pmj.fsf@yahoo.com> <83r0ogpdb9.fsf@gnu.org> <3807636.Ya8Q8nTpAt@nimes> <87o7jk49lv.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16002"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bruno@clisp.org, angelo.g0@libero.it, emacs-devel@gnu.org To: Po Lu , eggert@cs.ucla.edu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 06 15:13:19 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 1qSdZP-00041o-4K for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Aug 2023 15:13:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSdZ2-0002iI-Cf; Sun, 06 Aug 2023 09:12:56 -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 1qSdZ0-0002hg-IJ for emacs-devel@gnu.org; Sun, 06 Aug 2023 09:12:54 -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 1qSdYz-0000dj-3I; Sun, 06 Aug 2023 09:12:53 -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=4XQeJXsKko0q+YYoyp1/BvQM3IzCXkoppBtj5XpzWiw=; b=DlHXyxh5/Bx+ pA3AXgJw9iVezDCAhkkAA0WeUAa/qxf/ydDPSguNXzhfhBWNDNm9qXwKKQzKk2eCsT2UwUwj0MOzr snpip/rBNcmpZPWWdCVl64y+xw6G456cOiRlP11TDKg1eVAhDH8GKyaFygyCnTkm9v/MxGVoJL3kM f3GQ5PdYIyYt4zez4vdAmGgvsCB4WBIt9k/ksHd8vgnhLTvWoVflcGp5pbzhip/RziGo6KcTcgNty QKztATJV3CF2StN+qHchO2uMC57z/P6QRkxaln/2oeeVabJOSOC+Kxg0qRH88YXNsr3ViGgp9hLZX HBAq9jcSzYZRv3dvSa3RiQ==; 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 1qSdYy-0006VJ-JE; Sun, 06 Aug 2023 09:12:52 -0400 In-Reply-To: <87o7jk49lv.fsf@yahoo.com> (message from Po Lu on Sun, 06 Aug 2023 20:51:40 +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:308364 Archived-At: > From: Po Lu > Cc: Eli Zaretskii , eggert@cs.ucla.edu, angelo.g0@libero.it, > emacs-devel@gnu.org > Date: Sun, 06 Aug 2023 20:51:40 +0800 > > Bruno Haible writes: > > > 1) Add a file emacs/gnulib-local/modules/printf-for-emacs with the following > > contents: > > > > ========================================================================= > > Description: > > POSIX compatible printf() function on selected platforms. > > > > Depends-on: > > printf-posix [case "$host_os" in mingw*) false;; *) true;; esac] > > ========================================================================= > > > > What this does is to add a module with a conditional dependency to > > 'printf-posix'. > > > > 2) In the gnulib-tool invocation, add the option --local-dir=../gnulib-local > > (so that it references the emacs/gnulib-local/ directory), and add > > the module 'printf-for-emacs' to the module list. > > > > I believe this solution will work unchanged for 10 or 20 years. > > Eli, are you OK with this solution? Yes (assuming it works: that remains to be seen). But: (a) I'd like to hear Paul's opinion on this solution, since he is the one who routinely imports Gnulib into Emacs; and (b) I'd like to see if setting gl_cv_func_vasprintf_posix=yes in mingw-cfg.site (in addition to ac_cv_func_vasprintf, if needed) will disable the compilation of the *printf modules and solve the problem in a way that is simple and doesn't require introduction of any new infrastructure into Emacs.