On 2024-05-04 10:43, Bruno Haible wrote:
but there was no "HAVE_OFF64_T = @HAVE_OFF64_T@" line
Strange. The AC_SUBST([HAVE_OFF64_T]) in m4/off64_t.m4 should produce
such a line.

My thought as well.


The fragile hackery is only needed because you've hit a bug

Yes. To be fair it could well be an Emacs bug. Whatever it is, it's currently a hassle.


Do you see the 'sys_types' module enabled? Or maybe it is only
conditionally enabled?

Yes, there is a sys_types section in lib/gnulib.mk.in, and yes, it is conditionally enabled. It's preceded by this:

  ## begin gnulib module sys_types
  ifeq (,$(OMIT_GNULIB_MODULE_sys_types))

The ifeq succeeds and sys/types.h is being built.

I can reproduce the problem in fresh emacs and gnulib checkout siblings (same commits as before) by running the following in the emacs directory. This invokes gnulib-tool directly instead of indirectly via admin/merge-gnulib:

../gnulib/gnulib-tool --dir= --conditional-dependencies --import --no-changelog --no-vc-files --gnu-make --makefile-name=gnulib.mk.in --avoid=access --avoid=btowc --avoid=chmod --avoid=close --avoid=crypto/af_alg --avoid=dup --avoid=fchdir --avoid=fstat --avoid=iswblank --avoid=iswctype --avoid=iswdigit --avoid=iswxdigit --avoid=langinfo --avoid=localename-unsafe-limited --avoid=lock --avoid=mbrtowc --avoid=mbsinit --avoid=memchr --avoid=mkdir --avoid=msvc-inval --avoid=msvc-nothrow --avoid=nl_langinfo --avoid=openat-die --avoid=opendir --avoid=pthread-h --avoid=raise --avoid=save-cwd --avoid=select --avoid=setenv --avoid=sigprocmask --avoid=stat --avoid=stdarg --avoid=threadlib --avoid=tzset --avoid=unsetenv --avoid=utime --avoid=utime-h --avoid=wchar --avoid=wcrtomb --avoid=wctype --avoid=wctype-h alignasof alloca-opt binary-io boot-time byteswap c-ctype c-strcase canonicalize-lgpl careadlinkat close-stream copy-file-range count-leading-zeros count-one-bits count-trailing-zeros crypto/md5 crypto/md5-buffer crypto/sha1-buffer crypto/sha256-buffer crypto/sha512-buffer d-type diffseq double-slash-root dtoastr dtotimespec dup2 environ execinfo faccessat fchmodat fcntl fcntl-h fdopendir file-has-acl filemode filename filevercmp flexmember fpieee free-posix fstatat fsusage fsync futimens getline getloadavg getopt-gnu getrandom gettime gettimeofday gitlog-to-changelog ieee754-h ignore-value intprops largefile libgmp lstat manywarnings memmem-simple mempcpy memrchr memset_explicit minmax mkostemp mktime nanosleep nproc nstrftime pathmax pipe2 pselect pthread_sigmask qcopy-acl readlink readlinkat regex sig2str sigdescr_np socklen stat-time std-gnu11 stdbool stdckdint stddef stdio stpcpy strnlen strnlen strtoimax symlink sys_stat sys_time tempname time-h time_r time_rz timegm timer-time timespec-add timespec-sub update-copyright unlocked-io utimensat vla warnings year2038

Reply via email to