Re: gnulib-tool.py: Fix 'consider-using-with' pylint warnings.

2024-04-05 Thread Collin Funk
Hi Bruno, On 4/5/24 5:58 AM, Bruno Haible wrote: > Sure. It was a translation of the shell code: Ah, yeah that makes sense. > Finding the maximum of a list directly is O(N). Finding it by sorting > the list is O(N log N). Therefore it is clear which of the two should > be preferred :) I was loo

exp2l: Work around a NetBSD 10.0/i386 bug

2024-04-05 Thread Bruno Haible
On NetBSD 10.0/i386, I see this test failure: FAIL: test-exp2l ../../gltests/test-exp2.h:50: assertion 'z == y' failed FAIL test-exp2l (exit status: 134) The cause is that exp2l(x) is Infinity already for x = 1024. Although LDBL_MAX_EXP is 16384. This patch activates a gnulib o

roundl: Fix a link error on Linux/powerpc64le

2024-04-05 Thread Bruno Haible
On a recent Linux/powerpc64le system, the test-roundl program fails to link: gcc -Wno-error -g -O2 -L/media/guest-homedirs/haible/prefix-powerpc64le/lib -o test-roundl test-roundl.o libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a /usr/lib/gcc/powerpc64le-unknown-linux-g

exp2l tests: Enable a test for glibc versions >= 2.16

2024-04-05 Thread Bruno Haible
A certain glibc bug was fixed in glibc 2.16. The corresponding unit test part can be re-enabled for these newer glibc versions. 2024-04-05 Bruno Haible exp2l tests: Enable a test for glibc versions >= 2.16. * tests/test-exp2.h (test_function): Disable a glibc bug workaround fo

expl tests: Avoid test failure on NetBSD 10.0/i386

2024-04-05 Thread Bruno Haible
On NetBSD 10.0/i386, I see this test failure: FAIL: test-expl === ../../gltests/test-exp.h:81: assertion 'err > - err_bound / TWO_MANT_DIG && err < err_bound / TWO_MANT_DIG' failed FAIL test-expl (exit status: 134) The expl() function is just more imprecise on this platform than els

Re: gnulib-tool.py: Use 'Any' instead of type unions in GLConfig.

2024-04-05 Thread Bruno Haible
Hi Collin, > Since these type unions are so large, Any makes more sense. Yep. I already said so in . Thanks, applied. Bruno

Re: gnulib-tool.py: Fix 'consider-using-with' pylint warnings.

2024-04-05 Thread Bruno Haible
Hi Collin, > I've just changed these to 'sp.run()' since that function deals with > everything for us and is recommended. Yes, sp.run() and sp.call() are the variants that are most easy to use. > The second is 'consider-using-set-comprehension'. Instead of calling > set() on a list comprehension

Update for NetBSD 9.3 and 10.0

2024-04-05 Thread Bruno Haible
NetBSD 10.0 was released a couple of days ago. The main changes in libc: - New header file . - New functions getrandom and getentropy. - New functions posix_spawn_file_actions_addchdir, posix_spawn_file_actions_addfchdir. - New functions eventfd, eventfd_read, eventfd_write, ppoll. -