immutable: Implement on native Windows

2021-01-17 Thread Bruno Haible
The 'immutable' module, so far, worked only on platforms with mmap() and mprotect(). With this patch, it also works on native Windows. 2021-01-17 Bruno Haible immutable: Implement on native Windows. * lib/immutable.h (IMMUTABLE_EFFECTIVE): Set to 1 on native Windows. *

Re: canonicalize test failures on Cygwin

2021-01-17 Thread Ken Brown
On 1/17/2021 11:04 AM, Bruno Haible wrote: Hi Paul, Some of the new tests that you added to test-canonicalize.c and test-canonicalize-lgpl.c on 2020-12-24 fail on Cygwin 2.9: /* Check that a non-directory symlink with trailing slash yields NULL, and likewise for other troublesome suffi

Re: canonicalize test failures on Cygwin

2021-01-17 Thread Paul Eggert
On 1/17/21 8:04 AM, Bruno Haible wrote: The tests in the 'for' loop fail for i = 5 ... 10. That is, something with the ".." handling is not working as expected. Do you have access to a Cygwin machine for investigation? Unfortunately not; I'm really not a Cygwin guy. OK with me if we simply di

Re: gnulib-tests/test-suite.log fails with musl libc 1.2.x

2021-01-17 Thread Bruno Haible
Hi, Natanael Copa wrote in : > This happens on Alpine linux (3.13.0_rc4) on aarch64, armv7, mips64, > ppc64le, s390x, x86 and x86_64. > > > The failure is: > > test-canonicalize-lgpl.c:211: assertion 'strcmp (result1, "/") =

canonicalize test failures on Cygwin

2021-01-17 Thread Bruno Haible
Hi Paul, Some of the new tests that you added to test-canonicalize.c and test-canonicalize-lgpl.c on 2020-12-24 fail on Cygwin 2.9: /* Check that a non-directory symlink with trailing slash yields NULL, and likewise for other troublesome suffixes. */ { char const *const file_name[]

Re: different CFLAGS for gnulib code?

2021-01-17 Thread Pádraig Brady
On 15/01/2021 08:55, Bruno Haible wrote: I always thought that GNU package maintainers want their entire package to be compiled with the same CFLAGS and CPPFLAGS. Would compiling the gnulib part with options for fewer warnings be OK with you? Paul, Pádraig, Jim, Paul, Akim, Simon, all: what's yo

argp tests: Avoid test failures on Alpine Linux

2021-01-17 Thread Bruno Haible
On Alpine Linux 3.12, 3.13, I see these test failures: FAIL: test-argp-2.sh FAIL: test-argp-version-etc-1.sh They are caused by a 'diff' program that is not POSIX compliant: it produces unified diffs always and does not accept a '-c' nor a '-u' option. diff: unrecognized option: c BusyBox v1

get-rusage-data tests: Avoid test failure on musl libc

2021-01-17 Thread Bruno Haible
On Alpine Linux 3.12, 3.13, I see this test failure: FAIL: test-get-rusage-data == ../../gltests/test-get-rusage-data.c:60: assertion 'value3 > value1' failed Aborted FAIL test-get-rusage-data (exit status: 134) This patch fixes it. 2021-01-17 Bruno Haible g

immutable, get-rusage-data: Fix autoconf warning

2021-01-17 Thread Bruno Haible
While creating a testdir for the modules 'immutable', 'get-rusage-data', I get this warning: configure.ac:672: warning: AC_REQUIRE: `gl_FUNC_MMAP_ANON' was expanded before it was required configure.ac:672: https://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required glm4/m

vma-iter: Port to 64-bit Haiku

2021-01-17 Thread Bruno Haible
On Haiku/x86_64 the call to get_next_area_info emits a warning, because the signature of this function has changed. This patch fixes it. 2021-01-16 Bruno Haible vma-iter: Port to 64-bit Haiku. * lib/vma-iter.c (vma_iterate): Adapt to changed signature of get_next_area_