diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-07-27 20:47:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-30 07:54:44 +0100 |
commit | baa99b3201f5d9cac5cacedd1eb99ce7aa07b844 (patch) | |
tree | f07aad4beaf2c6ff3be3a7312abf059be95d705c /meta/recipes-devtools/autoconf/autoconf/backports/0019-AC_SYS_YEAR2038_REQUIRED-Fix-configure-failure-with-.patch | |
parent | f35b5f5d20f99dca06f579bccaceb5d7c2f9cf3f (diff) | |
download | poky-baa99b3201f5d9cac5cacedd1eb99ce7aa07b844.tar.gz |
autoconf: Backport upstreamed patches
These patches improve the Y2038 support on top of 2.72c release
(From OE-Core rev: ffff6eb96f0c500cf4386e842b73fc11156b469a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/autoconf/autoconf/backports/0019-AC_SYS_YEAR2038_REQUIRED-Fix-configure-failure-with-.patch')
-rw-r--r-- | meta/recipes-devtools/autoconf/autoconf/backports/0019-AC_SYS_YEAR2038_REQUIRED-Fix-configure-failure-with-.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-devtools/autoconf/autoconf/backports/0019-AC_SYS_YEAR2038_REQUIRED-Fix-configure-failure-with-.patch b/meta/recipes-devtools/autoconf/autoconf/backports/0019-AC_SYS_YEAR2038_REQUIRED-Fix-configure-failure-with-.patch new file mode 100644 index 0000000000..db9307e13c --- /dev/null +++ b/meta/recipes-devtools/autoconf/autoconf/backports/0019-AC_SYS_YEAR2038_REQUIRED-Fix-configure-failure-with-.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | From 2277f2c15744ad1cc5cd1ecc50a43108e50530a2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruno Haible <bruno@clisp.org> | ||
3 | Date: Wed, 19 Apr 2023 14:17:24 -0700 | ||
4 | Subject: [PATCH 19/29] AC_SYS_YEAR2038_REQUIRED: Fix configure failure with | ||
5 | MSVC. | ||
6 | |||
7 | * lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_PROBE): Distinguish the results | ||
8 | "support not detected" and "supported through gnulib". If the result is | ||
9 | "supported through gnulib", don't fail. | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | lib/autoconf/specific.m4 | 13 +++++++++++++ | ||
15 | 1 file changed, 13 insertions(+) | ||
16 | |||
17 | diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 | ||
18 | index 3bf1a0ed1..f411695fe 100644 | ||
19 | --- a/lib/autoconf/specific.m4 | ||
20 | +++ b/lib/autoconf/specific.m4 | ||
21 | @@ -323,11 +323,24 @@ AC_DEFUN([_AC_SYS_LARGEFILE_PROBE], | ||
22 | test $ac_opt_found = no || break | ||
23 | done | ||
24 | CC="$ac_save_CC" | ||
25 | + dnl Gnulib implements large file support for native Windows, based on the | ||
26 | + dnl variables WINDOWS_64_BIT_OFF_T, WINDOWS_64_BIT_ST_SIZE. | ||
27 | + m4_ifdef([gl_LARGEFILE], [ | ||
28 | + AC_REQUIRE([AC_CANONICAL_HOST]) | ||
29 | + if test $ac_opt_found != yes; then | ||
30 | + AS_CASE([$host_os], | ||
31 | + [mingw*], | ||
32 | + [ac_cv_sys_largefile_opts="supported through gnulib" | ||
33 | + ac_opt_found=yes] | ||
34 | + ) | ||
35 | + fi | ||
36 | + ]) | ||
37 | test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected"]) | ||
38 | |||
39 | ac_have_largefile=yes | ||
40 | AS_CASE([$ac_cv_sys_largefile_opts], | ||
41 | ["none needed"], [], | ||
42 | + ["supported through gnulib"], [], | ||
43 | ["support not detected"], | ||
44 | [ac_have_largefile=no | ||
45 | AS_IF([test $ac_largefile_required,$ac_year2038_required != no,no], | ||
46 | -- | ||
47 | 2.41.0 | ||
48 | |||