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-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5157E1F4B4 for ; Thu, 17 Sep 2020 20:53:43 +0000 (UTC) Received: from localhost ([::1]:50456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJ0uU-0000LW-4Z for normalperson@yhbt.net; Thu, 17 Sep 2020 16:53:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJ0uR-0000LI-EF; Thu, 17 Sep 2020 16:53:39 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]:14773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJ0uP-0004b9-3i; Thu, 17 Sep 2020 16:53:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1600376014; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=lFC0uhsjMQg9IqBZSnz55iU6539TM57gvD7SyjV9ZUA=; b=NvLuEVqk4ciKnxRZmQzArPpkn7ov8OnVlGqjJVqub41qAKDdZNe7IzS2sy3EkdhgQT Ynm/En0yU5/sXHrY78QXXnwWY0ws1vQSqtobErFX3xgLoKFhWHJGWEuRk6tfFnZ+d3b3 350rKKSkbLYTqXwP1Z/jzCxJXsVaIuv099fqMTTBwdSKk5FzGs8zY7E2Arw/HgZhKuu5 FZ95gNhOgJ/yA0QcgFyotz29HxUXespopMpINqtaYJoSA8zyqPZVe4HoQT4F9ycyVh1G mmcStM8MzVq6HX6/YYzfxrpLcvoNCHf1DAq+l2K2l9M9gry6SGr0gM/nOAAeXjDNOX+i /0Rw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqfyyPs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.10.7 DYNA|AUTH) with ESMTPSA id z05f0fw8HKrT13E (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Thu, 17 Sep 2020 22:53:29 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: grep-3.4-almost.19-ff30 on Solaris 10 Date: Thu, 17 Sep 2020 22:53:27 +0200 Message-ID: <1774887.AL43Kk9qlX@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.161; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/17 16:53:34 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jim Meyering , grep-devel@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On Solaris 10, the configuration aborts: $ ../configure ... checking for raise... yes checking for sigprocmask... ../configure: test: argument expected The reason is that gl_cv_func_sigprocmask_v16 is not set in the statement if test $gl_cv_func_sigprocmask_v16 != yes; then (signalblocking.m4 line 28). Why? Because the Solaris /bin/sh, unlike other shells, does redirected compound statements in a subshell. /bin/sh -c '{ gl_foo=yes; } 6>/dev/null; echo $gl_foo' produces 'yes' on most platforms, but empty output on Solaris 10. This patch fixes it. 2020-09-17 Bruno Haible sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25). * m4/gnulib-common.m4 (GL_TMP_FD): New macro. (gl_SILENT): Use 'exec', not a compound statement, to redirect AS_MESSAGE_FD. diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 33e56fa..35be4d3 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,4 +1,4 @@ -# gnulib-common.m4 serial 57 +# gnulib-common.m4 serial 58 dnl Copyright (C) 2007-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -630,13 +630,18 @@ AC_DEFUN([gl_BIGENDIAN], AC_C_BIGENDIAN ]) +# A temporary file descriptor. +# Must be less than 10, because dash 0.5.8 does not support redirections +# with multi-digit file descriptors. +m4_define([GL_TMP_FD], 9) + # gl_SILENT(command) # executes command, but without the normal configure output. AC_DEFUN([gl_SILENT], [ - { - $1 - } AS_MESSAGE_FD>/dev/null + exec GL_TMP_FD>&AS_MESSAGE_FD AS_MESSAGE_FD>/dev/null + $1 + exec AS_MESSAGE_FD>&GL_TMP_FD AS_MESSAGE_FD>&- ]) # gl_CACHE_VAL_SILENT(cache-id, command-to-set-it)