Re: FYI: update-copyright: also work with two or more updatable lines

2023-01-10 Thread Jim Meyering
On Tue, Jan 10, 2023 at 8:37 PM Jim Meyering wrote: > FYI, I've just pushed this fix. > I noticed this bug when attempting to update gzip's copyright dates. > It has a few files with two copyright lines. > The old version of this script would update only the first one. For the record, that fix ad

FYI: update-copyright: also work with two or more updatable lines

2023-01-10 Thread Jim Meyering
FYI, I've just pushed this fix. I noticed this bug when attempting to update gzip's copyright dates. It has a few files with two copyright lines. The old version of this script would update only the first one. >From 7f1b32336b063be3a672e9285f62c6b8ce5eb6e1 Mon Sep 17 00:00:00 2001 From: Jim Meyeri

utimens: Fix warning on Android

2023-01-10 Thread Bruno Haible
Building a testdir on Android, I see these warnings: ../../gllib/utimens.c:420:16: warning: call to undeclared function 'futimesat'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ../../gllib/utimens.c:441:13: warning: call to undeclared functio

immutable: Fix initialization failure on Android

2023-01-10 Thread Bruno Haible
On Android, within the Termux app, I see this test failure: FAIL: test-immutable.sh === glimm: Cannot open /tmp/glimmdata-5358-1804289383! Aborted test-immutable.sh: test case 1 failed glimm: Cannot open /tmp/glimmdata-5364-1804289383! Aborted test-immutable.sh: test case 2 f

Fix some test failures on Android ≥ 11

2023-01-10 Thread Bruno Haible
On Android 11, I'm seeing these test failures from a testdir: FAIL: test-fclose = fdsan: attempted to close file descriptor 3, expected to be unowned, actually owned by FILE* 0xa70c2ecc Aborted FAIL test-fclose (exit status: 134) FAIL: test-fdopen = fdsan: fail

renameat, renameatu: Fix warning on Android

2023-01-10 Thread Bruno Haible
Building a testdir on Android, I see this warning: ../../gllib/renameatu.c:106:13: warning: call to undeclared function 'renameat2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] The cause is this API-level conditional declaration: /usr/inclu

secure_getenv: Fix warning on Android

2023-01-10 Thread Bruno Haible
Building a testdir on Android, I see this warning: ../../gllib/secure_getenv.c:34:7: warning: call to undeclared function 'issetugid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] The reason is that the function issetugid is not declared; the

memset_explicit tests: Fix signature check

2023-01-10 Thread Bruno Haible
Building a testdir on Android, I get this warning: ../../gltests/test-memset_explicit.c:26:1: warning: incompatible function pointer types initializing 'void (*)(void *, int, size_t)' (aka 'void (*)(void *, int, unsigned int)') with an expression of type 'void *(void *, int, size_t)' (aka 'void

math: Fix compilation errors in C++ mode on Android

2023-01-10 Thread Bruno Haible
In a testdir on Android, I see many compilation errors here: clang++ -ferror-limit=0 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data/data/

sys_ioctl: Fix compilation error in C++ mode on Android

2023-01-10 Thread Bruno Haible
In a testdir on Android, I'm seeing this compilation error: clang++ -ferror-limit=0 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I../../gltests -I.. -I../../gltests/.. -I../gllib -I../../gltests/../gllib -I/data/data/c