relocatable packages and the Autoconf manual (was Re: Make AX_DEFINE_DIR obsolete?)

2011-09-22 Thread Paolo Bonzini
On 09/16/2011 11:42 PM, Reuben Thomas wrote: 1. Drop the AC_DEFINE item, as it's a dead end (and, being non-GCS, unusable) not a logical refinement of a developing technique (I do agree that gradually building up complex techniques, with motivation and explanation, is a good feature of GNU manual

Re: argp: no --version

2011-09-22 Thread Andrew Schulman
> On 09/22/2011 03:18 AM, Andrew Schulman wrote: > > So far, so good. But now when I build, for example, Argp example #2 > > against it, it works but there's no --version option: > > > > $ ./argpex2 --help > > Usage: argpex2 [OPTION...] > > Argp example #2 -- a pretty minimal program using argp >

strerror_r-posix on MSVC

2011-09-22 Thread Bruno Haible
The module 'strerror_r-posix' leads to a link error on MSVC, because it uses snprintf() which does not exist on this platform. The simplest solution would be to add a dependency to 'snprintf'. But that would drag in vasnprintf.c, which is really overkill for the simple use of snprintf() here. The

select on MSVC [2/2]

2011-09-22 Thread Bruno Haible
On MSVC 9, test-select does not link, because for the functions DispatchMessageA TranslateMessage PeekMessageA MsgWaitForMultipleObjects linking with -luser32 is necessary. On mingw, this linker option is apparently included by default. This fixes it. 2011-09-22 Bruno Haible

select on MSVC [1/2]

2011-09-22 Thread Bruno Haible
The module 'select' gives a compilation error on MSVC, because the code includes , which does not exist. Actually it is not even needed. This fixes it. 2011-09-22 Bruno Haible select: Avoid compilation error on MSVC. * lib/select.c: Don't include . --- lib/select.c.orig Th

Re: [PATCH] Add a new xsumn function to lib/xsize.h.

2011-09-22 Thread Bruno Haible
Hello Mansour, > I have a small feature request for lib/xsize.h: a variadic function, > xsumn, to safely sum any number of size_t type arguments. Similar to > xsum3 and xsum4. Attached is a small patch. Thanks for the suggestion, but I don't see a way to do this in a reliable and efficient manner

Re: argp: no --version

2011-09-22 Thread Eric Blake
On 09/22/2011 03:18 AM, Andrew Schulman wrote: So far, so good. But now when I build, for example, Argp example #2 against it, it works but there's no --version option: $ ./argpex2 --help Usage: argpex2 [OPTION...] Argp example #2 -- a pretty minimal program using argp -?, --help

Re: [PATCH 8/8] fts: do not exhaust memory when processing million-entry directories

2011-09-22 Thread Bruno Haible
Hi Jim, About this change of fts.c from 2011-08-18. The declaration of max_entries in line 1339 comes after a statement. Not valid C99. gnulib's conventions are still to not require a C99 compiler. Bruno -- In memoriam Martha Corey

Re: a saner bootstrap script

2011-09-22 Thread Paul Eggert
On 09/22/11 09:01, Gary V. Vaughan wrote: >> Perhaps you can refresh my >> > memory about the diffutils issue? > No issue that I'm aware of. Ah, sorry, I must have confused diffutils with tar. OK, I'll try to get to diffutils soon, with this. Thanks for keeping us on our toes!

[PATCH] Add a new xsumn function to lib/xsize.h.

2011-09-22 Thread Mansour Moufid
Hello, I have a small feature request for lib/xsize.h: a variadic function, xsumn, to safely sum any number of size_t type arguments. Similar to xsum3 and xsum4. Attached is a small patch. Also, I'm curious if this file needs documentation? I could not find any in doc/. -- Mansour From 9bcc0e94

Re: a saner bootstrap script [Was Re: I fixed this once already]

2011-09-22 Thread Jim Meyering
Gary V. Vaughan wrote: >>> * g...@github.com:gvvaughan/GNU-coreutils.git in gary/bootstrap >>> https://github.com/gvvaughan/GNU-coreutils/commits/gary/bootstrap I'll try to find time for this next week. I glanced through the first few lines of your script and found FGREP=fgrep EGREP=egrep .

Re: a saner bootstrap script

2011-09-22 Thread Gary V. Vaughan
Hi Paul, Thanks for the quick response. On 22 Sep 2011, at 22:40, Paul Eggert wrote: > On 09/22/11 05:42, Gary V. Vaughan wrote: >> I'm treating the bootstrap script in GNU Zile git as the master copy > > It's certainly on my list of things to do. > I was planning to do it with diffutils. > But

Re: a saner bootstrap script [Was Re: I fixed this once already]

2011-09-22 Thread Paul Eggert
On 09/22/11 05:42, Gary V. Vaughan wrote: > I'm treating the bootstrap script in GNU Zile git as the master copy It's certainly on my list of things to do. I was planning to do it with diffutils. But if I recall, you said there was some minor issue with diffutils and that dissuaded me from just sw

a saner bootstrap script [Was Re: I fixed this once already]

2011-09-22 Thread Gary V . Vaughan
[[Resend from subscribed email address. Apologies for duplicates. ]] Anyone: It's beginning to look as though all this work is, once again, in very real danger of just slipping quietly through the cracks. On 8 Sep 2011, at 01:56, Gary V. Vaughan wrote: > Bumping this thread back to the top of th

a saner bootstrap script [Was Re: I fixed this once already]

2011-09-22 Thread Gary V. Vaughan
Anyone: It's beginning to look as though all this work is, once again, in very real danger of just slipping quietly through the cracks. On 8 Sep 2011, at 01:56, Gary V. Vaughan wrote: > Bumping this thread back to the top of the pile for it's 1 month > anniversary... > > On 24 Aug 2011, at 00:5

argp: no --version

2011-09-22 Thread Andrew Schulman
gnulib newbie here. Great collection, y'all. I'm trying to build argp from gnulib as a shared library, libargp, for Cygwin. It works, except for one thing: the programs that link against it don't offer a --version option, which argp is supposed to provide automatically. Can someone please tell

Re: modernize ftruncate module

2011-09-22 Thread Jim Meyering
Bruno Haible wrote: > Hi Jim, > > Here's a proposal to modernize the 'ftruncate' module. It's triggered by link > errors that I got on MSVC 9, because the 'ftruncate' module, while present in > gnulib, is marked as 'obsolete' and therefore not included by default. > This classification was based on

Re: use of PATH_MAX in *.m4 files

2011-09-22 Thread Jim Meyering
Bruno Haible wrote: > Hi Jim, > > Here's another prososed patch > > On MSVC, I got a link error because save-cwd.c was compiled to invoke the > chdir_long() function, but lib/chdir-long.c was not compiled. > > The reason is that while save-cwd.c uses pathmax.h to define PATH_MAX when > it makes sen