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: Sat, 05 Aug 2023 09:39:23 +0300 Message-ID: <83tttet2lg.fsf@gnu.org> 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> <87v8dv7xhj.fsf@yahoo.com> <83sf8yvrek.fsf@gnu.org> <87msz68gbi.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32661"; mail-complaints-to="usenet@ciao.gmane.io" Cc: angelo.g0@libero.it, emacs-devel@gnu.org To: Po Lu , Paul Eggert , Bruno Haible Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 05 08:40:14 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 1qSAxS-0008JS-BU for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Aug 2023 08:40:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSAwT-0002kJ-0H; Sat, 05 Aug 2023 02:39:13 -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 1qSAwS-0002k8-6g for emacs-devel@gnu.org; Sat, 05 Aug 2023 02:39:12 -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 1qSAwP-0000us-J7; Sat, 05 Aug 2023 02:39:09 -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=d5DM3tJar+wPL/WyGBOH6c5MXs7ygOz2qbW4BCgHfnc=; b=OAcVwmo3L1tG gMCWEIDqf4bJlVLicIpCULEgRoeKoQEigGsD66MLJ1A90SLOtxA962Gsph748dDcKl5GETDZQMCZN jyl6EbBUcG5DKOWiXbF5yg7KQpMZnZO/YPfLymspQ7fA6/ES/XEbbaCDm3c9WxLeHFzI4vFrbwLH8 UKJ5R/bc4ZJhjm/NCXPdlFKvcUoOSJUp4lzBbcVwF+KbhPn+Q08wO0faM2d1sIof4nX9H8vhqdsNR 7ReBkEc66OFC1/Y2lUTEMnYrXQsul/iqW9P+mmkyi/cJjqfnLPOs9JOO6QJKZv3wTKsdc4+KOtgjM ttqKXBay6SbIJo4JGFrjcA==; 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 1qSAwP-0007A3-1C; Sat, 05 Aug 2023 02:39:09 -0400 In-Reply-To: <87msz68gbi.fsf@yahoo.com> (message from Po Lu on Sat, 05 Aug 2023 08:48:33 +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:308301 Archived-At: > From: Po Lu > Cc: angelo.g0@libero.it, emacs-devel@gnu.org > Date: Sat, 05 Aug 2023 08:48:33 +0800 > > Eli Zaretskii writes: > > > When why is asprintf.c being compiled, if its module is disabled? > > Because the Gnulib configury includes it within LIBOBJ: > > AC_DEFUN([gl_REPLACE_VASPRINTF], > [ > AC_LIBOBJ([vasprintf]) > AC_LIBOBJ([asprintf]) > AC_REQUIRE([gl_STDIO_H_DEFAULTS]) > > whenever it detects that asprintf isn't present on the host system. What is gl_REPLACE_VASPRINTF, and why is it set for MinGW? Can that be disabled somehow (without setting configure variables that test specific features)? > > Disabling a module should disable the lib/Makefile rules that compile > > the module. > > Gnulib doesn't support disabling these modules through Makefile options. Then we should ask them to add that, or help us solve this in another proper way. Paul and Bruno, can you please advise how to resolve this issue? We need to disable the compilation of these *printf modules on MS-Windows, since the Windows build doesn't need them, and compiling them causes compile-time errors. The usual method of omitting a module, like we do in nt/gnulib-cfg.mk, seems not to work in the above case for some reason. Another possible way forward is for Gnulib to modify asprintf.c so that it does compile with MinGW (and then it will be left unused on Windows in libgnu.a). TIA