Re: timespec_get: port to Ubuntu 23.04

2023-07-29 Thread Bruno Haible
> > If adopting GNULIB_POSIXCHECK for time-h would regularize > > things please feel free to do that. > > Indeed, regularizing things would be useful: Done through these two patches. 2023-07-29 Bruno Haible time-h: Simplify after 2017-05-01 change. * m4/time_h.m4 (gl_TIME_H

Re: timespec_get: port to Ubuntu 23.04

2023-07-28 Thread Bruno Haible
Hi Paul, > > Do you remember how the user was supposed to determine > > which modules from time.in.h he needs to import? > > How did the GNULIB_PORTCHECK > > macro help doing that (or was supposed to help doing that)? > > This is all old history and I had to look into the archives to refresh > m

Re: timespec_get: port to Ubuntu 23.04

2023-07-28 Thread Paul Eggert
On 2023-07-28 08:06, Bruno Haible wrote: Do you remember how the user was supposed to determine which modules from time.in.h he needs to import? How did the GNULIB_PORTCHECK macro help doing that (or was supposed to help doing that)? This is all old history and I had to look into the archives t

Re: timespec_get: port to Ubuntu 23.04

2023-07-28 Thread Bruno Haible
Paul Eggert wrote: > > Is something wrong with the m4/time_h.m4 idioms? What was the recipe to > > reproduce a bug here? > > Here's a recipe: > >git clone https://git.savannah.gnu.org/git/diffutils.git >cd diffutils >git checkout 25594ef0d9cda37835499e637a8ec35126aecf72 >./bootstr

Re: timespec_get: port to Ubuntu 23.04

2023-07-27 Thread Paul Eggert
On 2023-07-24 01:58, Bruno Haible wrote: Is something wrong with the m4/time_h.m4 idioms? What was the recipe to reproduce a bug here? Here's a recipe: git clone https://git.savannah.gnu.org/git/diffutils.git cd diffutils git checkout 25594ef0d9cda37835499e637a8ec35126aecf72 ./bootstr

Re: timespec_get: port to Ubuntu 23.04

2023-07-24 Thread Bruno Haible
Hi Paul, > @@ -12,6 +12,7 @@ AC_DEFUN([gl_FUNC_TIMESPEC_GET], >AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) > >AC_REQUIRE([gl_CHECK_FUNC_TIMESPEC_GET]) > + REPLACE_TIMESPEC_GET=0 >if test $gl_cv_func_timespec_get != yes; then > HAVE_TIMESPEC_GET=0 > case "$gl_cv_onwards_func_tim