[PATCH 3/4] maint: prefer endian.h for byte order conversions

2024-11-03 Thread Bernhard Voelker
Now that is a part of POSIX 2024 it should become more portable than . * bootstrap.conf (gnulib_modules): Remove byteswap; add endian. * locate/word_io.c: Include endian.h instead of byteswap.h. (decode_value): Use htobe32 instead of bswap_32. --- bootstrap.conf | 2 +- locate/word_io.c | 4 ++

[PATCH 0/4] some maint patches

2024-11-03 Thread Bernhard Voelker
* [PATCH 1/4] maint: list Gnulib sys_types directly * [PATCH 2/4] maint: import tests/init.sh from Gnulib during bootstrap * [PATCH 3/4] maint: prefer endian.h for byte order conversions * [PATCH 4/4] maint: remove unused include from fstype.c

[PATCH 2/4] maint: import tests/init.sh from Gnulib during bootstrap

2024-11-03 Thread Bernhard Voelker
* bootstrap.conf (bootstrap_post_import_hook): Use gnulib-tool --copy-file to import tests/init.sh. * tests/init.sh: Remove file. * tests/.gitignore (/init.sh): Add entry. * Makefile.am (update-gnulib-to-latest): Remove handling tests/init.sh. --- Makefile.am | 4 +- bootstrap.conf | 5

[PATCH 1/4] maint: list Gnulib sys_types directly

2024-11-03 Thread Bernhard Voelker
* bootstrap.conf (gnulib_modules): Add sys_types. Although it’s already brought in indirectly, findutils code includes directly. --- bootstrap.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap.conf b/bootstrap.conf index 39c17e58..cb3fd89b 100644 --- a/bootstrap.conf +++ b/bootst

[PATCH 4/4] maint: remove unused include from fstype.c

2024-11-03 Thread Bernhard Voelker
With newer gnulib, the sc_prohibit_always_true_header_tests check fails with: find/fstype.c:30:#if HAVE_MNTENT_H maint.mk: do not test the above HAVE__H symbol(s); with the corresponding gnulib module, they are always true make: *** [maint.mk:969: sc_prohibit_always_true_header_tests] Err

Re: [bug #66365] find -exec treats + as special when it shouldn't

2024-11-03 Thread Bernhard Voelker
On 11/2/24 19:47, James Youngman wrote: I have installed a modified version of the patch (1dcdf3de8e27cc130968891ee5a529a461a248da), updated in the ways you suggested. Thanks, nice. I have the 4 attached follow-up patches. Pushing soon. Have a nice day, BernyFrom 57fb016b73c2df6ab5e4cc908f716