qt6-bb10/qmake
Tor Arne Vestbø 1407e54f34 qmake: Use utimensat on macOS when propagating mtime during install
macOS only claims to conform to POSIX.1-2001, but has had utimensat
since macOS 10.13.

By enabling the utimensat code path, using stat.st_mtimespec as input,
we get nanosecond precision when qmake installs files.

Without this the tst_qmake::install_files tests fails due to the source
file having a sub second timestamp -- 2023-07-31 15:58:12.468 -- while the
installed does not: 2023-07-31 15:58:12.000.

The reason this test passes in the CI right now is probably because
the source file archive we use to pass test sources to the test
machines does not support the same level of precision.

Change-Id: I6ca7a2a2f9e71981814cbf496aa55717b3a3f74f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit a2779192eec649a15b909cd9becade7eb0bda34e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-07-08 20:19:07 +00:00
..
doc Doc: qmake manual: Fix links to 'Qt Widgets Designer' 2024-02-29 14:35:58 +00:00
generators QDirListing: add flags to handle entries filtering 2024-06-27 01:31:40 +00:00
library qmake: Use utimensat on macOS when propagating mtime during install 2024-07-08 20:19:07 +00:00
CMakeLists.txt CMake: Annotate some targets with SBOM information 2024-06-17 15:54:26 +02:00
cachekeys.h Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
main.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
meta.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
meta.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
option.cpp Fix the qtpath issue with lto enabled 2024-02-28 14:02:43 +00:00
option.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
project.cpp Port from qAsConst() to std::as_const() 2022-10-11 23:17:18 +02:00
project.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
property.cpp Make qmake and qtpaths report Qt version baked into the binaries 2023-01-18 13:21:05 +01:00
property.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
propertyprinter.cpp Correct license in qmake/ 2024-02-13 13:55:02 +01:00
propertyprinter.h Correct license in qmake/ 2024-02-13 13:55:02 +01:00
qmake_pch.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qmakelibraryinfo.cpp Correct license in qmake/ 2024-02-13 13:55:02 +01:00
qmakelibraryinfo.h Correct license in qmake/ 2024-02-13 13:55:02 +01:00