From 7b2cd9eef72f5e0909979531a8202d33f16625b6 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 13 Apr 2024 07:51:08 +0200 Subject: [PATCH] - added patch for AC_SYS_LARGEFILE etc. --- autoconf-largefile.patch | 31 +++++++++++++++++++++++++++++++ autoconf.spec | 4 +++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 autoconf-largefile.patch diff --git a/autoconf-largefile.patch b/autoconf-largefile.patch new file mode 100644 index 0000000..9b99826 --- /dev/null +++ b/autoconf-largefile.patch @@ -0,0 +1,31 @@ +--- autoconf-2.72/lib/autoconf/specific.m4.orig 2023-12-01 14:25:07.000000000 +0100 ++++ autoconf-2.72/lib/autoconf/specific.m4 2024-04-12 21:55:21.447121323 +0200 +@@ -281,23 +281,23 @@ m4_define([_AC_SYS_LARGEFILE_OPTIONS], m + AC_DEFUN([_AC_SYS_LARGEFILE_PROBE], + [AC_CACHE_CHECK([for $CC option to enable large file support], + [ac_cv_sys_largefile_opts], +- [ac_save_CC="$CC" ++ [ac_save_compile="$ac_compile" + ac_opt_found=no + for ac_opt in _AC_SYS_LARGEFILE_OPTIONS; do + AS_IF([test x"$ac_opt" != x"none needed"], +- [CC="$ac_save_CC $ac_opt"]) ++ [ac_compile="$ac_save_compile $ac_opt"]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_CODE])], + [AS_IF([test x"$ac_opt" = x"none needed"], + [# GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. +- CC="$CC -DFTYPE=ino_t" ++ ac_compile="$ac_compile -DFTYPE=ino_t" + AC_COMPILE_IFELSE([], [], +- [CC="$CC -D_FILE_OFFSET_BITS=64" ++ [ac_compile="$ac_compile -D_FILE_OFFSET_BITS=64" + AC_COMPILE_IFELSE([], [ac_opt='-D_FILE_OFFSET_BITS=64'])])]) + ac_cv_sys_largefile_opts=$ac_opt + ac_opt_found=yes]) + test $ac_opt_found = no || break + done +- CC="$ac_save_CC" ++ ac_compile="$ac_save_compile" + dnl Gnulib implements large file support for native Windows, based on the + dnl variables WINDOWS_64_BIT_OFF_T, WINDOWS_64_BIT_ST_SIZE. + m4_ifdef([gl_LARGEFILE], [ diff --git a/autoconf.spec b/autoconf.spec index b1a3214..8bf9c8d 100644 --- a/autoconf.spec +++ b/autoconf.spec @@ -1,4 +1,3 @@ -# TODO: https://savannah.gnu.org/support/index.php?110983 (AC_SYS_LARGEFILE/AC_SYS_YEAR2038 test failures on ix86) # # Conditional build: %bcond_with emacs # emacs autoconf-mode @@ -30,6 +29,8 @@ Patch1: %{name}-info.patch Patch2: %{name}-AC_EGREP.patch Patch3: %{name}-cxxcpp-warnonly.patch Patch4: %{name}-mksh.patch +# https://savannah.gnu.org/support/index.php?110983 (AC_SYS_LARGEFILE/AC_SYS_YEAR2038 test failures on ix86) +Patch5: %{name}-largefile.patch Patch6: %{name}-tests.patch URL: http://www.gnu.org/software/autoconf/ %{?with_emacs:BuildRequires: emacs} @@ -207,6 +208,7 @@ Tryb edycji autoconf dla emacsa. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %patch6 -p1 %build -- 2.44.0