new module 'vma-prot'

2024-08-29 Thread Bruno Haible
has functions for creating memory areas with a given protection, and mprotect() for changing the protection. But it has no API for returning the protection of an area! This new module fills that gap. Not by trying to write or execute the given memory (because that would make side effects, and be

vma-iter: Relicense under GPLv2+

2024-08-29 Thread Bruno Haible
I want to use the 'vma-iter' module in GNU libffcall, which is under GPLv2+. This requires relicensing the module under GPLv2+ (or weaker). Looking through the history of src/vma-iter.h, src/vma-iter.c and its predecessor lib/get-rusage-as.c (before 2011-01-24), I am the only contributor of legal

gnulib-tool.py: Allow verifying license compatibility with GPLv2+

2024-08-29 Thread Bruno Haible
Some packages that use Gnulib are under GPLv2+. It is useful for these packages — just for packages under LGPL — to be able to verify that the modules they import are compatible with this license choice. This patch does it, by adding an option --gpl=2 to gnulib-tool. The option --gpl=3 is also ac

gnulib-tool: Fix description of --lgpl option (missed on 2021-06-04)

2024-08-29 Thread Bruno Haible
On 2021-06-04, gnulib-tool stopped doing license template replacements in the source files. gnulib-tool's --help message was not updated at that time. This patch does it now. 2024-08-29 Bruno Haible gnulib-tool: Fix description of --lgpl option (missed on 2021-06-04). * gnulib

obstack-printf-gnu: Fix mistake (reported by check-AC_LIBOBJ)

2024-08-29 Thread Bruno Haible
I happened to run 'check-AC_LIBOBJ': $ ./check-AC_LIBOBJ modules/obstack-printf-gnu lacks file lib/obstack_printf.c This patch fixes it. 2024-08-29 Bruno Haible obstack-printf-gnu: Fix mistake (reported by check-AC_LIBOBJ). * modules/obstack-printf-gnu (Files): Add lib/o

Re: [PATCH 2/2] libgmp-mpq: Add tests.

2024-08-29 Thread Bruno Haible
Thanks for the new module, Marc!

Re: [PATCH 2/2] libgmp-mpq: Add tests.

2024-08-29 Thread Marc Nieper-Wißkirchen
Am Do., 29. Aug. 2024 um 11:36 Uhr schrieb Bruno Haible : > Hi Marc, > > > +#ifndef MINI_GMP_LIMB_TYPE > > +/* Verify that the gmp.h header file was generated for the same > > + machine word size as we are using. */ > > +static_assert (GMP_NUMB_BITS == sizeof (mp_limb_t) * CHAR_BIT); > > +#endi

Re: [PATCH 1/2] libgmp-mpq: New module.

2024-08-29 Thread Marc Nieper-Wißkirchen
Am Do., 29. Aug. 2024 um 11:31 Uhr schrieb Bruno Haible : > Hi Marc, > > this looks good, except for two small things: > > 1) In the ChangeLog entry > > > + * lib/mini-mpq.c: New upstream source file. > > + * lib/mini-mpq.h: New upstream source file. > > I would like to see more precision

Re: Include mini-mpq

2024-08-29 Thread Bruno Haible
Hi Marc, > I followed your suggestions and sent the updated patches to the mailing > list. Are you fine with me pushing them onto the repo? Yes, once you have addressed the review comments. Bruno

Re: [PATCH 2/2] libgmp-mpq: Add tests.

2024-08-29 Thread Bruno Haible
Hi Marc, > +#ifndef MINI_GMP_LIMB_TYPE > +/* Verify that the gmp.h header file was generated for the same > + machine word size as we are using. */ > +static_assert (GMP_NUMB_BITS == sizeof (mp_limb_t) * CHAR_BIT); > +#endif > + > +int > +main () > +{ > +#ifndef MINI_GMP_LIMB_TYPE > + /* Verif

Re: [PATCH 1/2] libgmp-mpq: New module.

2024-08-29 Thread Bruno Haible
Hi Marc, this looks good, except for two small things: 1) In the ChangeLog entry > + * lib/mini-mpq.c: New upstream source file. > + * lib/mini-mpq.h: New upstream source file. I would like to see more precision about where "upstream" is. Ideally, the URL that can be downloaded with 'wg

Re: Include mini-mpq

2024-08-29 Thread Marc Nieper-Wißkirchen
Am Do., 29. Aug. 2024 um 10:27 Uhr schrieb Bruno Haible : > Marc Nieper-Wißkirchen wrote: > > Shouldn't get the new module libgmp-mpz an entry in MODULES.html.sh? > > Yes, feel free to add it. I tend to update this file only occasionally. > I followed your suggestions and sent the updated patches

[PATCH 2/2] libgmp-mpq: Add tests.

2024-08-29 Thread marc . nieper+gnu
From: Marc Nieper-Wißkirchen * modules/libgmp-mpq-tests: New file. * tests/test-libgmp-mpq.c: New file. --- ChangeLog| 4 ++ modules/libgmp-mpq-tests | 14 +++ tests/test-libgmp-mpq.c | 82 3 files changed, 100 insertions(+) create

[PATCH 1/2] libgmp-mpq: New module.

2024-08-29 Thread marc . nieper+gnu
From: Marc Nieper-Wißkirchen * MODULES.html.sh: Mention libgmp-mpz and libgmp-mpq. * config/srclist.txt: Mention mini-mpq.c and mini-mpq.h. * lib/mini-mpq-gnulib.c: New file. * lib/mini-mpq.c: New upstream source file. * lib/mini-mpq.h: New upstream source file. * modules/libgmp-mpq: New module.

Re: savewd: please port to native Windows

2024-08-29 Thread Bruno Haible
Jeffrey Walton wrote: > iOS also lacks fork/exec, posix_spawn, etc. Apple wants devs to use > NSTask to create processes. (iirc). Fortunately iOS is not a target platform for Gnulib: https://www.gnu.org/software/gnulib/manual/html_node/Unsupported-Platforms.html Bruno

Re: Include mini-mpq

2024-08-29 Thread Bruno Haible
Marc Nieper-Wißkirchen wrote: > Shouldn't get the new module libgmp-mpz an entry in MODULES.html.sh? Yes, feel free to add it. I tend to update this file only occasionally. Bruno

Re: Include mini-mpq

2024-08-29 Thread Marc Nieper-Wißkirchen
Am Mi., 28. Aug. 2024 um 14:21 Uhr schrieb Bruno Haible : [...] > Let me start with the renamings of what is already in gnulib. Then, > your additions are welcome (as two patches, please: one for the > new code in module libgmp, and one for the new tests). > > > 2024-08-28 Bruno Haible > >