aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/patches/qt/fix_rcc_determinism.patch
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2020-09-17 01:37:47 +0200
committerTheCharlatan <seb.kung@gmail.com>2020-09-17 09:00:26 +0200
commit2e3caa201157e0315cac6b82f2fdf7f820b28a8f (patch)
treedbdbd6b43f48f2f84f16928008401390999200d0 /contrib/depends/patches/qt/fix_rcc_determinism.patch
parentMerge pull request #6815 (diff)
downloadmonero-2e3caa201157e0315cac6b82f2fdf7f820b28a8f.tar.xz
Depends: Bump qt to 5.15.1
Diffstat (limited to 'contrib/depends/patches/qt/fix_rcc_determinism.patch')
-rw-r--r--contrib/depends/patches/qt/fix_rcc_determinism.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/depends/patches/qt/fix_rcc_determinism.patch b/contrib/depends/patches/qt/fix_rcc_determinism.patch
new file mode 100644
index 000000000..c1b07fe23
--- /dev/null
+++ b/contrib/depends/patches/qt/fix_rcc_determinism.patch
@@ -0,0 +1,15 @@
+--- old/qtbase/src/tools/rcc/rcc.cpp
++++ new/qtbase/src/tools/rcc/rcc.cpp
+@@ -207,7 +207,11 @@ void RCCFileInfo::writeDataInfo(RCCResourceLibrary &lib)
+ if (lib.formatVersion() >= 2) {
+ // last modified time stamp
+ const QDateTime lastModified = m_fileInfo.lastModified();
+- lib.writeNumber8(quint64(lastModified.isValid() ? lastModified.toMSecsSinceEpoch() : 0));
++ quint64 lastmod = quint64(lastModified.isValid() ? lastModified.toMSecsSinceEpoch() : 0);
++ static const quint64 sourceDate = 1000 * qgetenv("QT_RCC_SOURCE_DATE_OVERRIDE").toULongLong();
++ if (sourceDate != 0)
++ lastmod = sourceDate;
++ lib.writeNumber8(lastmod);
+ if (text || pass1)
+ lib.writeChar('\n');
+ }