[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: non portable sed scripts
From: |
Ralf Wildenhues |
Subject: |
Re: non portable sed scripts |
Date: |
Fri, 19 May 2006 20:37:06 +0200 |
User-agent: |
Mutt/1.5.11+cvs20060403 |
Hi Tim,
* Tim Rice wrote on Fri, May 19, 2006 at 06:57:48PM CEST:
>
> Autoconf version 2.59c
>
> I had an opportunity to run a configure script generated with 2.59c
> (ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.95.tar.gz) and found
> that it failed.
> config.status: creating config.h
> UX:sed: ERROR: Command garbled: HAVE_DECL_STRNDUP\)[ (].*$,\1define\2 0 ,
I'm pretty sure the syntax of the sed script is ok. It's probably that
your sed has a length restriction. We check the 99 commands limit, but
not the 2000 characters limit any more... :-/
This particular sed script seems to have around 7200 characters before
the failing line though. So what's the limit on your system?
To get at the individual sed scripts for config.h:
- in config.status, search for lines
sed -f "$tmp/defines.sed" "$tmp/out..." >"$tmp/out..."
and rename the file "$tmp/defines.sed" afterwards, so it's not
overwritten by the next file.
- Then, watch
sh -x ./config.status -d
and look at the sed scripts.
Boy, I hope this isn't so difficult to fix, with all that reworking done
to the config.status code.
Cheers, and thanks for reporting this!
Ralf
- non portable sed scripts, Tim Rice, 2006/05/19
- Re: non portable sed scripts,
Ralf Wildenhues <=
- Re: non portable sed scripts, Ralf Wildenhues, 2006/05/19
- Re: non portable sed scripts, Paul Eggert, 2006/05/19
- Re: non portable sed scripts, Ralf Wildenhues, 2006/05/20
- Re: non portable sed scripts, Paul Eggert, 2006/05/21
- Re: non portable sed scripts, Ralf Wildenhues, 2006/05/21
- Re: non portable sed scripts, Ralf Wildenhues, 2006/05/22
- Re: non portable sed scripts, Paul Eggert, 2006/05/22
- Re: non portable sed scripts, Stepan Kasal, 2006/05/22
- Re: non portable sed scripts, Tim Rice, 2006/05/23