[qtbase] no absolute paths (#25965)

This commit is contained in:
autoantwort 2022-07-25 23:59:41 +02:00 committed by GitHub
parent 0bceafcf54
commit edd9fb3504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,15 @@
diff --git a/cmake/qt.toolchain.cmake.in b/cmake/qt.toolchain.cmake.in
index 6e37ae02..e7e84468 100644
--- a/cmake/qt.toolchain.cmake.in
+++ b/cmake/qt.toolchain.cmake.in
@@ -65,6 +65,10 @@ get_filename_component(QT_TOOLCHAIN_RELOCATABLE_INSTALL_PREFIX
# one level higher is what we're looking for.
get_filename_component(QT_TOOLCHAIN_RELOCATABLE_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE)
+get_filename_component(vcpkg_installed_dir
+ ${CMAKE_CURRENT_LIST_DIR}/../../../
+ ABSOLUTE)
+
# REROOT_PATH_ISSUE_MARKER
# There's a subdirectory check in cmake's cmFindCommon::RerootPaths() function, that doesn't handle
# the case of CMAKE_PREFIX_PATH == CMAKE_FIND_ROOT_PATH for a particular pair of entries.

View File

@ -16,6 +16,7 @@ set(${PORT}_PATCHES
harfbuzz.patch
fix_egl.patch
clang-cl_QGADGET_fix.diff # Upstream is still figuring out if this is a compiler bug or not.
installed_dir.patch
)
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
@ -340,6 +341,7 @@ string(REGEX REPLACE "set\\\(__qt_chainload_toolchain_file [^\\\n]+\\\n" "set(__
string(REGEX REPLACE "set\\\(VCPKG_CHAINLOAD_TOOLCHAIN_FILE [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}")
string(REGEX REPLACE "set\\\(__qt_initial_c_compiler [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}")
string(REGEX REPLACE "set\\\(__qt_initial_cxx_compiler [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}")
string(REPLACE "${CURRENT_HOST_INSTALLED_DIR}" "\${vcpkg_installed_dir}/${HOST_TRIPLET}" toolchain_contents "${toolchain_contents}")
file(WRITE "${qttoolchain}" "${toolchain_contents}")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)

View File

@ -1,7 +1,7 @@
{
"name": "qtbase",
"version": "6.3.1",
"port-version": 1,
"port-version": 2,
"description": "Qt Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.",
"homepage": "https://www.qt.io/",
"license": null,

View File

@ -5954,7 +5954,7 @@
},
"qtbase": {
"baseline": "6.3.1",
"port-version": 1
"port-version": 2
},
"qtcharts": {
"baseline": "6.3.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3fa8531e9f444076cc6e73b979bcaaa3e665a7a5",
"version": "6.3.1",
"port-version": 2
},
{
"git-tree": "53f9f138ffa51742c27c5e44606f86b6b70b2734",
"version": "6.3.1",