From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.emacs.devel Subject: Re: Android port Date: Sun, 06 Aug 2023 14:43:55 +0200 Message-ID: <3807636.Ya8Q8nTpAt@nimes> References: <1428589171.162865.1691134964773@mail1.libero.it> <87a5v45pmj.fsf@yahoo.com> <83r0ogpdb9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38354"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eggert@cs.ucla.edu, angelo.g0@libero.it, emacs-devel@gnu.org To: Po Lu , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 06 14:44:38 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 1qSd7e-0009qF-5z for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Aug 2023 14:44:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSd7L-0006XM-SX; Sun, 06 Aug 2023 08:44:20 -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 1qSd7E-0006Rj-AZ for emacs-devel@gnu.org; Sun, 06 Aug 2023 08:44:13 -0400 Original-Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSd79-00008R-Mx; Sun, 06 Aug 2023 08:44:11 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1691325835; cv=none; d=strato.com; s=strato-dkim-0002; b=JLWfSg015WHdTnIt1aMdIdc1D/bs6HQMEwXiqyjTi4xCpbBQ0bTbkW9sgxoayofv6Y 3Br/ExFqqAeSv2BoG72y3iMNltXQTq4Ju3Z73r1T4gyYi7Pq24oiCYJlfXLegie7LO02 taAUu8tsj7CYlYnp4FOFcFJi/+yMDq5bRsKTF9V8lWa5sjLnVvXJeowTW+OCjWLwHLqi xkmh+R5CK9NMf9Sx6IFB9yWE1lsVW8Dk//8usH4LcvTGTiOKqto107lcUG8t4iIhG9o4 H3e1WphkjXBJE1ktmC/nTPDBKXJpoA2+mP73JzfhFumRiJDHLbqsP7NkKuqsn0NSE8MC xq7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1691325835; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=j2YiKCw08V12R6w6BMo8aSNXaFj1Ba1y/tuJrLKe2Vw=; b=laxm9d7em+oCo97mbN/iKhbCDFf7QgN9NehAaIcbUM8x7E3rmM3JTkpzxTTMKRZDdS xgD9yhNnkSQzxahwdP0Vd5mFrKWts+qJq0T/LvFnvjf3l0NX+X5fh4Ora+x0hO+C8kV4 EVD7lnuR4rKpDuyyw1X53/ftJPVqlLHlKqKArS1yVctUFp2xo+PAibtgjPLBSQS8W9be fYRea2L4z+XZLkUkIBf2KViTeGwgAQlt3D9Cd40vT/7FypGbuT1Y3V7m+VVoncNO9UEL IwND/HL/MTNIY1Djo+9pZRejGCV36T2G6mzWylRFos23frqv3sdXcXxUGRo/hqxw5rtg BRqg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1691325835; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=j2YiKCw08V12R6w6BMo8aSNXaFj1Ba1y/tuJrLKe2Vw=; b=Lzp6bSPOIXgmq6Lk+7Ts/ll7N3ONf1ZNmrWxkcJab21JJgtaNMnxp/U7eG5MegDVe/ XfslU6TC7XTIKBK6/E9rbARWs9Gy4Bvlhfv1EyBRfXJEie/D+FJnq0C3eUl4HV8rQvDX i3P3wzLpAHv/2o/1Y5/VebCv6088FlA4Y2/zd/sREv//xPjYZ4BI5dPs7+B2rE6ZGoDo VudfgctJr977FgujLSHN0T64A1eDep3SuWuL5wdBYKPaqj1ZRbKC+pgXhIBEIs6k/yK2 RCH9kj/+o3I4NUep9kvC1kRj8czDDuBsHC4ndVEI2F38LUcEvyGa+5iEBWbs0DCcs2hF NJAA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1691325835; s=strato-dkim-0003; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=j2YiKCw08V12R6w6BMo8aSNXaFj1Ba1y/tuJrLKe2Vw=; b=B2dSI6ppY9Iet+oEKc0FG6Kun2lV/VsQ6Sc6Z+Az7Hm6dnJFSTuAomWoYbj7RS6oao OCxrPW1Ket/ALYA8J7AQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOTiPMPWro5IJ+rUD0ISbPnXXI/" Original-Received: from nimes.localnet by smtp.strato.de (RZmta 49.6.6 AUTH) with ESMTPSA id x129eaz76ChtYsO (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 6 Aug 2023 14:43:55 +0200 (CEST) In-Reply-To: <83r0ogpdb9.fsf@gnu.org> Received-SPF: none client-ip=81.169.146.165; envelope-from=bruno@clisp.org; helo=mo4-p01-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_NONE=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:308359 Archived-At: Po Lu wrote: > > That being said, I'm reluctant to remove the printf-posix module at this > > stage of the port's development. Emacs has undergone extensive testing > > on all supported versions of Android with the Gnulib printf, and hardly > > any at all without. In other words, you want to use the printf-posix module on Android but not on mingw. Eli Zaretskii wrote: > Is there a way of running specific Gnulib tests only on some > platforms (without setting the gl_cv_* variables)? Your question makes me think of a way to use a module on one platform but not on another platform. Namely, the Emacs' invocation of gnulib-tool already contains --conditional-dependencies (see emacs/lib/gnulib.mk.in). Combine this with the feature explained in https://www.gnu.org/software/gnulib/manual/html_node/Extending-Gnulib.html 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. Bruno