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 10:36:04 +0000
commitab249a81bbf4b32882ee5c2289191f1f0d106f13 (patch)
tree243dceeb329c9fe5f4939cee7e502329abc3cad9
parentd8583f64e9bcec8ec9d1a3d1f6e877d6dfb528d1 (diff)
downloadqtapplicationmanager-ab249a81bbf4b32882ee5c2289191f1f0d106f13.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;