File: 64bit_time_everywhere.patch

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (22 lines) | stat: -rw-r--r-- 899 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: fix test for 64-bit time_t
 i386 is the only architecture where we don't have 64-bit time_t now.
 Update the tests accordingly.
Author: Steve Langasek <steve.langasek@ubuntu.com>
Forwarded: not-needed
Last-Update: 2024-03-08

Index: mysql-8.0-8.0.36/mysql-test/include/have_32bits_time.inc
===================================================================
--- mysql-8.0-8.0.36.orig/mysql-test/include/have_32bits_time.inc
+++ mysql-8.0-8.0.36/mysql-test/include/have_32bits_time.inc
@@ -1,8 +1,7 @@
 # see also have_64bits_time.inc
 
-let $have_64bit = `SELECT @@version_compile_machine IN
-                          ('x86_64', 'amd64', 'sparc', 'sparc64', 'arm64', 'aarch64',
-                           'ppc64', 'ppc64le', 's390x')`;
+let $have_64bit = `SELECT @@version_compile_machine != 'i686'`;
+
 if ($have_64bit) {
   --skip Doesn't support 32 bits UNIX time, only 64 bits
 }