www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2009/09/13/15:40:11

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Date: Sun, 13 Sep 2009 22:40:09 +0300
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: [PATCH 1/4] DJGPP fix: Do not redirect standard input in configure scripts.
In-reply-to: <20090913191426.GB29257@gmx.de>
X-012-Sender: halo1 AT inter DOT net DOT il
To: Ralf Wildenhues <Ralf DOT Wildenhues AT gmx DOT de>
Cc: autoconf-patches AT gnu DOT org, rugxulo AT gmail DOT com, rrt AT sc3d DOT org,
djgpp-workers AT delorie DOT com
Message-id: <83fxaqzl9i.fsf@gnu.org>
References: <20090913191226 DOT GA29257 AT gmx DOT de> <20090913191426 DOT GB29257 AT gmx DOT de>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sun, 13 Sep 2009 21:14:27 +0200
> From: Ralf Wildenhues <Ralf DOT Wildenhues AT gmx DOT de>
> Cc: autoconf-patches AT gnu DOT org, Rugxulo <rugxulo AT gmail DOT com>,
> 	Reuben Thomas <rrt AT sc3d DOT org>
> 
> * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): If $DJGPP is
> nonempty, do not dup fd 0 to AS_ORIGINAL_STDIN_FD, do not close
> fd 0.
> ---
> 
> * Ralf Wildenhues wrote on Sun, Sep 13, 2009 at 09:12:28PM CEST:
> > -- ./script: redirection error: Bad file descriptor (EBADF) or other I/O error
> > Test failures, untreated: 88 195
> > Test failures due to redirection of fd 1 in configure: many,
> > (worked around with patch)
> 
> This patch should be changed to use a more reliable way to detect DJGPP.
> 
>  lib/autoconf/general.m4 |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
> index 4e5cddb..b82999a 100644
> --- a/lib/autoconf/general.m4
> +++ b/lib/autoconf/general.m4
> @@ -385,7 +385,8 @@ AU_ALIAS([AC_FD_MSG], [AS_MESSAGE_FD])
>  m4_define([_AC_INIT_DEFAULTS],
>  [m4_divert_push([DEFAULTS])dnl
>  
> -exec AS_ORIGINAL_STDIN_FD<&0 </dev/null AS_MESSAGE_FD>&1
> +test -n "$DJGPP" || exec AS_ORIGINAL_STDIN_FD<&0 </dev/null
> +exec AS_MESSAGE_FD>&1
>  
>  # Name of the host.
>  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
> -- 
> 1.6.3.3.345.gb7132

Thanks.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019