This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=d26d4e04fe1173b7514c7a2e3d36c7ff83ad2595 commit d26d4e04fe1173b7514c7a2e3d36c7ff83ad2595 (HEAD -> main) Author: Guillem Jover <[email protected]> AuthorDate: Wed Nov 8 23:53:49 2023 +0100 build: Check and print sizeof off_t and time_t on the configure summary These are part of the port ABI, so it is helpful to print their size when we are building dpkg, to have a reference in build logs. --- configure.ac | 2 ++ m4/dpkg-arch.m4 | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 929ffbde9..568c712e3 100644 --- a/configure.ac +++ b/configure.ac @@ -279,6 +279,8 @@ Configuration: sizeof(double) . . . . . . . : ${ac_cv_sizeof_double} sizeof(long double) . . . . . : ${ac_cv_sizeof_long_double} sizeof(void *) . . . . . . . : ${ac_cv_sizeof_void_p} + sizeof(off_t) . . . . . . . . : ${ac_cv_sizeof_off_t} + sizeof(time_t) . . . . . . . : ${ac_cv_sizeof_time_t} alignof(max_align_t) . . . . : ${ac_cv_alignof_max_align_t} Features: diff --git a/m4/dpkg-arch.m4 b/m4/dpkg-arch.m4 index 5540eedb7..1b240a416 100644 --- a/m4/dpkg-arch.m4 +++ b/m4/dpkg-arch.m4 @@ -79,6 +79,15 @@ AC_DEFUN([DPKG_ARCH_ABI], [ AC_CHECK_SIZEOF([double]) AC_CHECK_SIZEOF([long double]) AC_CHECK_SIZEOF([void *]) + AC_CHECK_SIZEOF([off_t], [], [[ +#undef _FILE_OFFSET_BITS +#undef _LARGE_FILES +#include <sys/types.h> +]]) + AC_CHECK_SIZEOF([time_t], [], [[ +#undef _TIME_BITS +#include <time.h> +]]) AC_CHECK_ALIGNOF([max_align_t]) -- Dpkg.Org's dpkg

