forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#260239 from NickCao/qt6
qt6: 6.5.3 -> 6.6.0
- Loading branch information
Showing
30 changed files
with
427 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
WGET_ARGS=( https://download.qt.io/official_releases/qt/6.5/6.5.3/submodules/ -A '*.tar.xz' ) | ||
WGET_ARGS=( https://download.qt.io/official_releases/qt/6.6/6.6.0/submodules/ -A '*.tar.xz' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ qtModule | ||
, qtbase | ||
, qtdeclarative | ||
, qtquick3d | ||
, qtquicktimeline | ||
}: | ||
|
||
qtModule { | ||
pname = "qtgraphs"; | ||
qtInputs = [ | ||
qtbase | ||
qtdeclarative | ||
qtquick3d | ||
qtquicktimeline | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 69d9faa9e4420d3cb0d1466c1b95ceadb2cd75f3 Mon Sep 17 00:00:00 2001 | ||
From afbe4002948e60ee3b27cb9be9e549ae416373f8 Mon Sep 17 00:00:00 2001 | ||
From: Nick Cao <[email protected]> | ||
Date: Thu, 13 Apr 2023 23:42:29 +0800 | ||
Subject: [PATCH 1/6] qtbase: qmake: always use libname instead of absolute | ||
Subject: [PATCH 01/11] qtbase: qmake: always use libname instead of absolute | ||
path in qmake files | ||
|
||
In generated qmake files, absolute paths to qt libraries are embedded | ||
|
@@ -46,5 +46,5 @@ index 3ffe354fd8d..441332d4582 100644 | |
else() | ||
list(APPEND out_list "${library_path}") | ||
-- | ||
2.39.2 | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 41e32c41f781261726722628122c924abb532575 Mon Sep 17 00:00:00 2001 | ||
From 8d3f5ee63ed29fe41927b904aa1e2b40f90c8ef4 Mon Sep 17 00:00:00 2001 | ||
From: Nick Cao <[email protected]> | ||
Date: Fri, 14 Apr 2023 21:43:04 +0800 | ||
Subject: [PATCH 2/6] qtbase: qmake: fix mkspecs for darwin | ||
Subject: [PATCH 02/11] qtbase: qmake: fix mkspecs for darwin | ||
|
||
--- | ||
mkspecs/common/mac.conf | 2 +- | ||
|
@@ -26,7 +26,7 @@ index 61bea952b22..9909dae7260 100644 | |
|
||
QMAKE_LFLAGS_REL_RPATH = | ||
diff --git a/mkspecs/features/mac/default_post.prf b/mkspecs/features/mac/default_post.prf | ||
index 4acf3b19d5c..aadfce875e2 100644 | ||
index f364716717c..3b40328304d 100644 | ||
--- a/mkspecs/features/mac/default_post.prf | ||
+++ b/mkspecs/features/mac/default_post.prf | ||
@@ -1,9 +1,5 @@ | ||
|
@@ -39,7 +39,7 @@ index 4acf3b19d5c..aadfce875e2 100644 | |
contains(TEMPLATE, .*app) { | ||
!macx-xcode:if(isEmpty(BUILDS)|build_pass) { | ||
# Detect changes to the platform SDK | ||
@@ -15,37 +11,6 @@ contains(TEMPLATE, .*app) { | ||
@@ -15,269 +11,10 @@ contains(TEMPLATE, .*app) { | ||
|
||
QMAKE_EXTRA_INCLUDES += $$shell_quote($$PWD/sdk.mk) | ||
} | ||
|
@@ -77,9 +77,6 @@ index 4acf3b19d5c..aadfce875e2 100644 | |
} | ||
|
||
!no_objective_c:CONFIG += objective_c | ||
@@ -73,234 +38,6 @@ qt { | ||
} | ||
} | ||
|
||
-# Add the same default rpaths as Xcode does for new projects. | ||
-# This is especially important for iOS/tvOS/watchOS where no other option is possible. | ||
|
@@ -486,5 +483,5 @@ index df191eb13c4..e69de29bb2d 100644 | |
- | ||
-load(toolchain) | ||
-- | ||
2.39.2 | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
From f52f3c2cb1703592eaeb43e80f585a24ce8402d7 Mon Sep 17 00:00:00 2001 | ||
From 8ce66fca339d9daf6bd132771c2ea582a461f31c Mon Sep 17 00:00:00 2001 | ||
From: Nick Cao <[email protected]> | ||
Date: Fri, 14 Apr 2023 09:34:46 +0800 | ||
Subject: [PATCH 3/6] qtbase: qmake: fix includedir in generated pkg-config | ||
Subject: [PATCH 03/11] qtbase: qmake: fix includedir in generated pkg-config | ||
|
||
--- | ||
qmake/generators/makefile.cpp | 3 +-- | ||
1 file changed, 1 insertion(+), 2 deletions(-) | ||
|
||
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp | ||
index cc985a878b4..4e3b383d812 100644 | ||
index 11d2f0ff7df..c78ed0d3485 100644 | ||
--- a/qmake/generators/makefile.cpp | ||
+++ b/qmake/generators/makefile.cpp | ||
@@ -3403,8 +3403,7 @@ MakefileGenerator::writePkgConfigFile() | ||
@@ -3412,8 +3412,7 @@ MakefileGenerator::writePkgConfigFile() | ||
<< varGlue("QMAKE_PKGCONFIG_CFLAGS", "", " ", " ") | ||
// << varGlue("DEFINES","-D"," -D"," ") | ||
; | ||
|
@@ -22,5 +22,5 @@ index cc985a878b4..4e3b383d812 100644 | |
&& libDir != QLatin1String("/Library/Frameworks")) { | ||
t << " -F${libdir}"; | ||
-- | ||
2.39.2 | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
From dd0dfc9cf87966f5d7493a943ec04c665be83cb6 Mon Sep 17 00:00:00 2001 | ||
From b1533ac42718835499ec633ffb3b1bed0d040719 Mon Sep 17 00:00:00 2001 | ||
From: Nick Cao <[email protected]> | ||
Date: Fri, 14 Apr 2023 09:35:25 +0800 | ||
Subject: [PATCH 4/6] qtbase: fix locating tzdir on NixOS | ||
Subject: [PATCH 04/11] qtbase: fix locating tzdir on NixOS | ||
|
||
--- | ||
src/corelib/time/qtimezoneprivate_tz.cpp | 27 +++++++++++++++--------- | ||
1 file changed, 17 insertions(+), 10 deletions(-) | ||
|
||
diff --git a/src/corelib/time/qtimezoneprivate_tz.cpp b/src/corelib/time/qtimezoneprivate_tz.cpp | ||
index 960a0944185..a5186acbd91 100644 | ||
index e702a5d6b43..2ac88c1cd10 100644 | ||
--- a/src/corelib/time/qtimezoneprivate_tz.cpp | ||
+++ b/src/corelib/time/qtimezoneprivate_tz.cpp | ||
@@ -51,7 +51,11 @@ typedef QHash<QByteArray, QTzTimeZone> QTzTimeZoneHash; | ||
// Parse zone.tab table, assume lists all installed zones, if not will need to read directories | ||
@@ -56,7 +56,11 @@ static bool isTzFile(const QString &name); | ||
// zone1970.tab). | ||
static QTzTimeZoneHash loadTzTimeZones() | ||
{ | ||
- QString path = QStringLiteral("/usr/share/zoneinfo/zone.tab"); | ||
|
@@ -24,7 +24,7 @@ index 960a0944185..a5186acbd91 100644 | |
if (!QFile::exists(path)) | ||
path = QStringLiteral("/usr/lib/zoneinfo/zone.tab"); | ||
|
||
@@ -730,18 +734,21 @@ QTzTimeZoneCacheEntry QTzTimeZoneCache::findEntry(const QByteArray &ianaId) | ||
@@ -773,18 +777,21 @@ QTzTimeZoneCacheEntry QTzTimeZoneCache::findEntry(const QByteArray &ianaId) | ||
if (!tzif.open(QIODevice::ReadOnly)) | ||
return ret; | ||
} else { | ||
|
@@ -56,5 +56,5 @@ index 960a0944185..a5186acbd91 100644 | |
} | ||
} | ||
-- | ||
2.39.2 | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 4e8c14f1af9c332826e0454f4fd63e541edbaf5c Mon Sep 17 00:00:00 2001 | ||
From 880fe5653a86d8091f3f577977f8af93552c48fd Mon Sep 17 00:00:00 2001 | ||
From: Nick Cao <[email protected]> | ||
Date: Tue, 21 Mar 2023 15:48:49 +0800 | ||
Subject: [PATCH 5/6] qtbase: deal with a font face at index 0 as Regular for | ||
Subject: [PATCH 05/11] qtbase: deal with a font face at index 0 as Regular for | ||
Variable fonts | ||
|
||
Reference: https://bugreports.qt.io/browse/QTBUG-111994 | ||
|
@@ -22,5 +22,5 @@ index 474644b871f..c7a117fd134 100644 | |
FcObjectSetDestroy(os); | ||
FcPatternDestroy(pattern); | ||
-- | ||
2.39.2 | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 61ae6e04388dd40e11c214d56f22f8f2007bf35f Mon Sep 17 00:00:00 2001 | ||
From 7f573f00fb850a08017d9f1e3c73b4d7efeb84f2 Mon Sep 17 00:00:00 2001 | ||
From: Nick Cao <[email protected]> | ||
Date: Wed, 12 Apr 2023 10:13:50 +0800 | ||
Subject: [PATCH 6/6] qtbase: qt-cmake: always use cmake from path | ||
Subject: [PATCH 06/11] qtbase: qt-cmake: always use cmake from path | ||
|
||
The generated qt-cmake scripts embeds the absolute path of cmake used | ||
during the build of qtbase, bloating the runtime closure of qtbase. | ||
|
@@ -28,5 +28,5 @@ index f719257f602..571ffe788fa 100755 | |
toolchain_path="$script_dir_path/@__GlobalConfig_relative_path_from_bin_dir_to_cmake_config_dir@/qt.toolchain.cmake" | ||
|
||
-- | ||
2.39.2 | ||
2.42.0 | ||
|
Oops, something went wrong.