-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix windeploy-qt6 #26127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix windeploy-qt6 #26127
Conversation
|
it seems you are trying to do this in a wrong package. ❯ pkgfile qmlimportscanner.exe
mingw64/mingw-w64-x86_64-qt5-declarative
mingw64/mingw-w64-x86_64-qt5-static
mingw64/mingw-w64-x86_64-qt6-declarative
mingw64/mingw-w64-x86_64-qt6-static
ucrt64/mingw-w64-ucrt-x86_64-qt5-declarative
ucrt64/mingw-w64-ucrt-x86_64-qt5-static
ucrt64/mingw-w64-ucrt-x86_64-qt6-declarative
ucrt64/mingw-w64-ucrt-x86_64-qt6-static
clang64/mingw-w64-clang-x86_64-qt5-declarative
clang64/mingw-w64-clang-x86_64-qt5-static
clang64/mingw-w64-clang-x86_64-qt6-declarative
clang64/mingw-w64-clang-x86_64-qt6-static |
Indeed thanks for the double check pacman -F /mingw64/share/qt6/bin/qmlimportscanner.exe
mingw64/share/qt6/bin/qmlimportscanner.exe is owned by mingw64/mingw-w64-x86_64-qt6-declarative 6.10.0-1Let me fix that |
|
please bump pkgrel for the package |
|
Okay fixed the second issue with One potential issue, these version-less additions to |
|
windeploqt6 doesn't expect
Could you show where the issue you are encoutering with it |
You give it too much credit: https://invent.kde.org/qt/qt/qtbase/-/blob/v6.10.0/src/tools/windeployqt/qmlutils.cpp#L89 Alright, I'll make a patch for that.
For Edit: It went smoothly on a pipeline https://github.com/AdelKS/ZeGrapher/actions/runs/18872958087/job/53855639663 without the |
…scanner-qt6 windeployqt expects to find qmlimportscanner next to it, and it's patched to use qmlimportscanner-qt6
Could you explain what do you mean?, If there is an issue in packaging or windeployqt you should report to Qt first. |
It needs a patch just like you shown in your message above
This patch MINGW-packages/mingw-w64-qt6-base/001-appending-qt6-to-remove-qt5-conflict.patch Line 128 in 52e90c3
Then, I didn't look at it deep enough so I may be wrong: the upstream code is like this const QString binary = QStringLiteral("qmlimportscanner");
if (!runProcess(binary, arguments, QDir::currentPath(), &exitCode, &stdOut, &stdErr,
errorMessage, timeout))
return result;It uses Thus my two commits in this PR |
That's what I am talking about, the upstream code has an issue, It shouldn't look in the current directory, so you should report the issue to the upstream. |
I think the "should" and "should not" are debatable in this case: assuming an executable is in Also, I am not willing to go fight this fight with upstream Qt, I don't even know where to start x) |
No, If It assumes It's in bin then it should install it there. So the issue is either in code or in packaging and you should report it to Qt so we see what should we do, fix the code or the packaging. |
|
Yeah I agree, their |
|
Alright, I remembered I already opened a bug report once, here's what you asked for: https://bugreports.qt.io/browse/QTBUG-141545 |
windeployqt expects to find qmlimportscanner next to it
This fixes this issue
Also reported on a Reddit post
It also expects
lconvertin/bin