Re: [PATCH] bootstrap: add bootstrap_sync option.

2010-11-15 Thread Ralf Wildenhues
Hello, * Paul Eggert wrote on Mon, Nov 15, 2010 at 07:30:55PM CET: > > One problem I forsee is that, if the script is modified in place, > the modification can occur while the shell is reading the script. > So one must first create the desired script as a separate file, > and then atomically rena

Re: Document reasonable portability targets

2010-11-15 Thread Bruno Haible
Hello Bastien, > I am trying to help bruce with error.c in order to determine the program name > automatically on the so called "reasonable portability targets", but I could > not find a list of this targets... > > Could we document it ? It's already implicitly documented, in the chapter about

Re: Document reasonable portability targets

2010-11-15 Thread Paul Eggert
On 11/15/10 04:23, Bastien ROUCARIES wrote: > I am trying to help bruce with error.c in order to determine the program name > automatically on the so called "reasonable portability targets", but I could > not find a list of this targets... I suggest: http://www.gnu.org/prep/standards/standards.

Re: [PATCH] bootstrap: add bootstrap_sync option.

2010-11-15 Thread Paul Eggert
On 11/15/10 04:24, Pádraig Brady wrote: > I've done it before, but I don't know how general the method is: > http://www.pixelbeat.org/scripts/self_modify.sh One problem I forsee is that, if the script is modified in place, the modification can occur while the shell is reading the script. So one mu

Re: [PATCH] bootstrap: avoid broken Solaris sed

2010-11-15 Thread Paul Eggert
On 11/15/10 08:05, Eric Blake wrote: > I like this alternative. Certainly a smaller patch than my proposal for > guaranteeing a semi-decent sed, and still easy to follow what the sed > script is doing. Thanks for reviewing it; I pushed it.

Re: [PATCH] bootstrap: avoid broken Solaris sed

2010-11-15 Thread Eric Blake
On 11/13/2010 07:16 PM, Paul Eggert wrote: > On 11/13/2010 03:18 PM, Eric Blake wrote: >> +if test -x /usr/xpg4/bin/sed; then > > I'm leery about using XPG4 sed on Solaris. > That has its own set of bugs, which in practice can > bite just as often as the standard 'sed', maybe more > often. On

Document reasonable portability targets

2010-11-15 Thread Bastien ROUCARIES
Hi, I am trying to help bruce with error.c in order to determine the program name automatically on the so called "reasonable portability targets", but I could not find a list of this targets... Could we document it ? Bastien

Re: [PATCH] bootstrap: add bootstrap_sync option.

2010-11-15 Thread Pádraig Brady
On 15/11/10 07:03, Paul Eggert wrote: > On 11/14/2010 03:22 PM, Joel E. Denny wrote: >> To keep things simple, could we just extend the existing bootstrap script >> so that, once it has fetched gnulib sources and before doing anything >> else, it updates itself and re-exec's itself if there are a

Re: libposix stuff

2010-11-15 Thread Bastien ROUCARIES
Le mardi 9 novembre 2010 13:31:03, Bastien ROUCARIES a écrit : Bruce could you try the following program under HPUX ? It will print the program name (i put the following code in public domain if copyrightable I do not think it is) Bastien #include #include #include int main() { stru