]> git.pld-linux.org Git - packages/autoconf.git/commitdiff
- added patch for AC_SYS_LARGEFILE etc. master
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 13 Apr 2024 05:51:08 +0000 (07:51 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 13 Apr 2024 05:51:08 +0000 (07:51 +0200)
autoconf-largefile.patch [new file with mode: 0644]
autoconf.spec

diff --git a/autoconf-largefile.patch b/autoconf-largefile.patch
new file mode 100644 (file)
index 0000000..9b99826
--- /dev/null
@@ -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], [
index b1a321494ee52492e7744549838667a026cb049d..8bf9c8dae699ef428c9a6e262ffb54f40eed71a7 100644 (file)
@@ -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
This page took 0.099463 seconds and 4 git commands to generate.