summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl <robert.griebl@qt.io>2023-03-09 17:35:42 +0100
committerRobert Griebl <robert.griebl@qt.io>2023-03-10 10:27:31 +0100
commit5fe99d4113d460b0039130d5333bd8201452c03b (patch)
treed16401722b269ed554d17a77dceaebacfd6e7feb
parentf347bfead1f878041ecb7d7608fb457242cc32c6 (diff)
downloadqtapplicationmanager-5fe99d4113d460b0039130d5333bd8201452c03b.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 Pick-to: 6.2 6.4 6.5 6.5.0 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
-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;