-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[qcoro] New port #33273
[qcoro] New port #33273
Conversation
I disabled support for OSX for now, because Apple Clang compiler ICEs in Release build, I need to reproduce it in upstream CI and debug the problem further to be able to find out how to workaround the ICE. |
ports/qcoro/portfile.cmake
Outdated
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO danvratil/qcoro | ||
REF "v0.9.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REF "v0.9.0" | |
REF "v${VERSION}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
commit 1f420bb8f9f0028d1289143c4a51bcf8da88387d | ||
Author: Marius P <nmariusp1@gmail.com> | ||
Date: Sat May 13 12:40:48 2023 +0300 | ||
|
||
qcorowebsocket replace QWebSocket::error with QWebSocket::errorOccurred | ||
|
||
I build using cmake build configuration "Debug" not "RelWithDebInfo". | ||
Building qcoro fails with error "qcoro/qcoro/websockets/qcorowebsocket.cpp: | ||
35:73: error: ‘void QWebSocket::error(QAbstractSocket::SocketError)’ | ||
is deprecated: Use errorOccurred instead [-Werror=deprecated-declarations]". | ||
Because "# Only enable strict warnings in debug mode | ||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wextra -Werror -pedantic")". | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, removed. I though I'd keep reference to the upstream commit that this patch contains.
index be9c1f7..c686d14 100644 | ||
--- a/qcoro/websockets/qcorowebsocket.cpp | ||
+++ b/qcoro/websockets/qcorowebsocket.cpp | ||
@@ -32,7 +32,13 @@ public: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please submit the content of this patch to the upstream, we need to wait for their approval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Github user names checks out to be upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm the upstream :) This patch is already in the main branch, just wasn't included in 0.9.0 release. It will be dropped once 0.10.0 is out.
ports/qcoro/vcpkg.json
Outdated
"homepage": "https://www.github.com/danvratil/qcoro", | ||
"documentation": "https://qcoro.dvratil.cz", | ||
"license": "MIT", | ||
"supports": "!osx", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this to ci. baseline
instead of in the supports
field. Because upstream supports OSX
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, hopefully I did it correctly.
Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". That way, I can be aware that you've responded since you can't modify the tags. |
Triggers ICE in release build, but OSX is officially supported, so just expect CI to fail.
@danvratil I encountered an error while testing usage:
Usage:
|
Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". That way, I can be aware that you've responded since you can't modify the tags. |
All feature tested pass on the following triplets:
Usage tested pass on |
Thanks for the new port and 'confirming with upstream' that the patch was OK :) |
Results from build: https://dev.azure.com/vcpkg/public/_build/results?buildId=95281 PASSING, REMOVE FROM FAIL LIST: qcoro:x64-osx (/Users/vagrant/Data/work/2/s/scripts/azure-pipelines/../ci.baseline.txt). Caused by microsoft#33273 The comment says that it's an ICE but it passed in CI; this might be a form of intermittent compiler crash. If we get a failure next time we should change this to skip instead.
Results from build: https://dev.azure.com/vcpkg/public/_build/results?buildId=95281 PASSING, REMOVE FROM FAIL LIST: qcoro:x64-osx (/Users/vagrant/Data/work/2/s/scripts/azure-pipelines/../ci.baseline.txt). Caused by #33273 The comment says that it's an ICE but it passed in CI; this might be a form of intermittent compiler crash. If we get a failure next time we should change this to skip instead.
Results from build: https://dev.azure.com/vcpkg/public/_build/results?buildId=95281 PASSING, REMOVE FROM FAIL LIST: qcoro:x64-osx (/Users/vagrant/Data/work/2/s/scripts/azure-pipelines/../ci.baseline.txt). Caused by microsoft#33273 The comment says that it's an ICE but it passed in CI; this might be a form of intermittent compiler crash. If we get a failure next time we should change this to skip instead.
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxxvcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.