From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D44F81F453 for ; Sat, 26 Jan 2019 14:43:24 +0000 (UTC) Received: from localhost ([127.0.0.1]:60262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnPB5-0005w0-B0 for normalperson@yhbt.net; Sat, 26 Jan 2019 09:43:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnPAy-0005vu-Fx for bug-gnulib@gnu.org; Sat, 26 Jan 2019 09:43:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnPAx-0002G1-Jp for bug-gnulib@gnu.org; Sat, 26 Jan 2019 09:43:16 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::3]:12733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gnPAw-00028K-Li for bug-gnulib@gnu.org; Sat, 26 Jan 2019 09:43:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1548513791; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=O7k1BAhY2aSgakrlavYFjwQL7VPCttfZNA8e4WMe8Is=; b=j41vkKH+bbvVbTYl7LOBUVriHJhQ1F9ACvoP1vPmHQTODA98ly+xRDFtnQyByXTSVE FWeFOEWs+Pp0nqZdgjqYCnD//68CoPiAsQgm0qVhkMeNfuvQBMMjH8T19WatrX34Lvug kT4QYV/y51Tw0MuW3rf3WZjyHoql/GZ3b2SgXvTe645RWIrOQXgpmw+HrwnGJmWo2GN8 JeH2SIhiZDLx3ZRfRQYvmAze9inzRPJ6os7Pu6shsVzj0cLzW5OJllq/GjTYny3/P0xp xdTC+YsUzbE9hbOUUffU5VmBck0vTLL9hb1OHpcqrKiMaNKP09X0x18QqGrr0+fd49ww yWvA== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGKf2y/s=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 44.9 DYNA|AUTH) with ESMTPSA id v0a34ev0QEhBo15 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 26 Jan 2019 15:43:11 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: sh-filename: Add support for Android Date: Sat, 26 Jan 2019 15:43:10 +0100 Message-ID: <3198734.lA0q7Mg682@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::3 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On Android 4.3, I'm seeing these test failures: FAIL: test-posix_spawn1 ======================= could not read expected output FAIL test-posix_spawn1 (exit status: 1) FAIL: test-posix_spawn2 ======================= subprocess terminated with unexpected exit status 127 FAIL test-posix_spawn2 (exit status: 1) The cause is that these tests execute a shell script, and the shell is not at /bin/sh in this environment. This patch fixes it. 2019-01-26 Bruno Haible sh-filename: Add support for Android 4.3. * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android. diff --git a/m4/sh-filename.m4 b/m4/sh-filename.m4 index 3e7fe75..dc5f26d 100644 --- a/m4/sh-filename.m4 +++ b/m4/sh-filename.m4 @@ -1,4 +1,4 @@ -# sh-filename.m4 serial 1 +# sh-filename.m4 serial 2 dnl Copyright (C) 2018-2019 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,9 +10,11 @@ AC_DEFUN([gl_SH_FILENAME], [ AH_VERBATIM([SH_FILENAME], [/* File name of the Bourne shell. */ -#if defined __CYGWIN__ -/* Omit the directory part because for 32-bit Cygwin programs in a - 64-bit Cygwin environment, the Cygwin mounts are not visible. */ +#if defined __CYGWIN__ || defined __ANDROID__ +/* Omit the directory part because + - For 32-bit Cygwin programs in a 64-bit Cygwin environment, the Cygwin + mounts are not visible. + - On Android, /bin/sh does not exist. It's /system/bin/sh instead. */ # define BOURNE_SHELL "sh" #else # define BOURNE_SHELL "/bin/sh"