summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2023-03-09 17:35:42 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-03-10 12:00:50 +0000
commitd86757b2890e89c707370387b23ff4c3c13be355 (patch)
treeaaf94f139511e2885dc44f6cb1a1ad7f26472580
parent7254c7925012dbc33d40dd9f54d60187559e471e (diff)
downloadqtapplicationmanager-d86757b2890e89c707370387b23ff4c3c13be355.tar.gz
Fix configuration version conflict between the Qt 5 and Qt 6 AM
The configuration caches are versioned, but the Qt 5 and 6 versions got their cache version numbers bumped independently. This led to a situation where 5.15.12 and 6.4.2 both ended up at version '9', although they are binary incompatible. The fix here is to encode the major Qt version into the cache header as well, to make caches incompatible between Qt major versions. Change-Id: I7bbf7cb97cc1ea8bc4f16285588958ba11c19833 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> (cherry picked from commit 5fe99d4113d460b0039130d5333bd8201452c03b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/common-lib/configcache_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common-lib/configcache_p.h b/src/common-lib/configcache_p.h
index 742b5097..cac32571 100644
--- a/src/common-lib/configcache_p.h
+++ b/src/common-lib/configcache_p.h
@@ -20,7 +20,7 @@ struct ConfigCacheEntry
struct CacheHeader
{
enum { Magic = 0x23d39366, // dd if=/dev/random bs=4 count=1 status=none | xxd -p
- Version = 3 };
+ Version = 3 | (QT_VERSION_MAJOR << 24) };
quint32 magic = Magic;
quint32 version = Version;