select tests: Avoid test failure on Cygwin

2018-12-13 Thread Bruno Haible
When running the gnulib unit tests in sed-4.5.48-58eb on Cygwin, I see a failure of the select tests: failed (invalid fd among rfds) failed (invalid fd among wfds) failed (invalid fd among xfds) The sed-4.5.48-58eb snapshot is built with an Autoconf snapshot that contains a bug: it reports

Re: localtime-buffer: Avoid endless recursion in localtime and gmtime

2018-12-13 Thread Jim Meyering
On Thu, Dec 13, 2018 at 3:12 AM Bruno Haible wrote: > When running the gnulib unit tests in sed-4.5.48-58eb on Cygwin, I see > a crash of the test-gettimeofday.exe program. It is caused by endless > recursion: rpl_localtime and rpl_gmtime are compiled into endless > recursions. > > You don't see t

[PATCH v3 2/2] maint.mk: Replace grep with $(GREP)

2018-12-13 Thread Roman Bolshakov
A project that uses maint.mk can specify regular expressions that are not supported in system grep. Autoconf can discover an alias for GNU grep and set it in GREP but it takes no effect for maint.mk The patch provides an ability to use GNU grep if it was discovered by autoconf and by calling GNU g

[PATCH v3 0/2] Fix syntax-check on macOS/FreeBSD

2018-12-13 Thread Roman Bolshakov
Hello, There was an issue with syntax-check on FreeBSD reported a few years ago: https://www.redhat.com/archives/libvir-list/2015-August/msg00758.html http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00019.html The patch series attempts to resolve the issue on gnulib side. With related cha

[PATCH v3 1/2] maint.mk: Split long argument lists

2018-12-13 Thread Roman Bolshakov
$(VC_LIST_EXCEPT) is usually expanded into arguments for a command. When a project contains too many, some operating systems can't pass all the arguments because they hit the limit of arguments. FreeBSD and macOS are known to have the limit of 256k of arguments. More on the issue: http://lists.gnu

Re: [PATCH v2 1/2] maint.mk: Split long argument lists

2018-12-13 Thread Roman Bolshakov
On Wed, Dec 12, 2018 at 07:42:44PM -0600, Eric Blake wrote: > On 12/12/18 3:13 PM, Roman Bolshakov wrote: > > > > > @@ -845,7 +853,10 @@ sc_prohibit_always-defined_macros: > > > > case $$(echo all: | grep -l -f - Makefile) in Makefile);; *) > > > > \ > > > > echo '$(ME): sk

localtime-buffer: Avoid endless recursion in localtime and gmtime

2018-12-13 Thread Bruno Haible
When running the gnulib unit tests in sed-4.5.48-58eb on Cygwin, I see a crash of the test-gettimeofday.exe program. It is caused by endless recursion: rpl_localtime and rpl_gmtime are compiled into endless recursions. You don't see this endless recursion when using a regular Autoconf release. But

localeconv tests: Avoid test failure on Cygwin

2018-12-13 Thread Bruno Haible
2018-12-13 Bruno Haible localeconv tests: Avoid test failure on Cygwin. * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and 'mon_grouping' tests. diff --git a/tests/test-localeconv.c b/tests/test-localeconv.c index 65e364d..d2bd761 100644 --- a/tests/te