Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package qcoro for openSUSE:Factory checked in at 2022-07-14 16:34:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/qcoro (Old) and /work/SRC/openSUSE:Factory/.qcoro.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "qcoro" Thu Jul 14 16:34:14 2022 rev:5 rq:989033 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/qcoro/qcoro.changes 2022-05-02 16:26:29.928900204 +0200 +++ /work/SRC/openSUSE:Factory/.qcoro.new.1523/qcoro.changes 2022-07-14 16:34:41.208651987 +0200 @@ -1,0 +2,27 @@ +Wed Jul 13 18:10:44 UTC 2022 - Christophe Giboudeaux <christo...@krop.fr> + +- Disable tests again. Random timeouts were seen. + +------------------------------------------------------------------- +Wed Jul 13 11:45:00 UTC 2022 - Christophe Giboudeaux <christo...@krop.fr> + +- Update to 0.6.0 + * Fix build with gcc 11.3.0 + * Fix ODR violation when LTO is enabled + * Export QCoro wrapper classes + * Enable "modern Qt" compiler definitions + * Introduce Generator and AsyncGenerator coroutine return types + * Fix installing export header + * Deprecate task.h in favor of qcorotask.h + * QtWebSockets support + * Document -DQCORO_WITH_QTWEBSOCKETS + * Fix the build by #include'ing + * QCoroTask: fixup a template type parameter name + * Add support for clang-cl + * Fix possible race in TestWsServer + * WebSocket bugfixes & documentation + * Explicitly enable exception support for clang-cl +- Add patch to avoid using -Werror on non-debug builds: + * qcoro_no_Werror.patch + +------------------------------------------------------------------- Old: ---- qcoro-0.5.1.tar.gz New: ---- qcoro-0.6.0.tar.gz qcoro_no_Werror.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ qcoro.spec ++++++ --- /var/tmp/diff_new_pack.ypMBao/_old 2022-07-14 16:34:41.692652463 +0200 +++ /var/tmp/diff_new_pack.ypMBao/_new 2022-07-14 16:34:41.696652467 +0200 @@ -31,17 +31,19 @@ %endif %if "%{flavor}" == "qt6" %define qt6 1 -%define qt_min_version 6.1.2 +%define qt_min_version 6.2.0 %define _qt_suffix 6 %endif # Name: qcoro%{?_pkg_name_suffix} -Version: 0.5.1 +Version: 0.6.0 Release: 0 Summary: Coroutines for Qt License: MIT URL: https://github.com/danvratil/qcoro Source: https://github.com/danvratil/qcoro/archive/refs/tags/v%{version}.tar.gz#/qcoro-%{version}.tar.gz +# PATCH-FIX-UPSTREAM +Patch0: qcoro_no_Werror.patch BuildRequires: cmake >= 3.19.0 BuildRequires: dbus-1 BuildRequires: cmake(Qt%{_qt_suffix}Concurrent) >= %{qt_min_version} @@ -49,6 +51,7 @@ BuildRequires: cmake(Qt%{_qt_suffix}DBus) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Network) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Test) >= %{qt_min_version} +BuildRequires: cmake(Qt%{_qt_suffix}WebSockets) >= %{qt_min_version} BuildRequires: cmake(Qt%{_qt_suffix}Widgets) >= %{qt_min_version} # C++-20 support is needed. Qt6 already requires gcc10 %if 0%{?qt5} && 0%{?suse_version} == 1500 @@ -83,11 +86,20 @@ coroutines in connection with certain asynchronous Qt actions. This package provides a library for network operations support. +%package -n libQCoro%{_qt_suffix}WebSockets%{sonum} +Summary: WebSockets support library for qcoro, a library providing coroutines for Qt + +%description -n libQCoro%{_qt_suffix}WebSockets%{sonum} +The QCoro library provides set of tools to make use of the C++20 +coroutines in connection with certain asynchronous Qt actions. This package +provides a library for websockets support. + %package -n %{name}-devel Summary: Development files for qcoro Requires: libQCoro%{_qt_suffix}Core%{sonum} = %{version} Requires: libQCoro%{_qt_suffix}DBus%{sonum} = %{version} Requires: libQCoro%{_qt_suffix}Network%{sonum} = %{version} +Requires: libQCoro%{_qt_suffix}WebSockets%{sonum} = %{version} %description -n %{name}-devel The QCoro library provides set of tools to make use of the C++20 coroutines @@ -126,15 +138,17 @@ %endif %check -# Tests timeout randomly, currently unfixed (https://github.com/danvratil/qcoro/issues/41) -# %%ctest +# 20220713: tests still randomly fail, mostly on arm +#%%ctest %post -n libQCoro%{_qt_suffix}Core%{sonum} -p /sbin/ldconfig %post -n libQCoro%{_qt_suffix}DBus%{sonum} -p /sbin/ldconfig %post -n libQCoro%{_qt_suffix}Network%{sonum} -p /sbin/ldconfig +%post -n libQCoro%{_qt_suffix}WebSockets%{sonum} -p /sbin/ldconfig %postun -n libQCoro%{_qt_suffix}Core%{sonum} -p /sbin/ldconfig %postun -n libQCoro%{_qt_suffix}DBus%{sonum} -p /sbin/ldconfig %postun -n libQCoro%{_qt_suffix}Network%{sonum} -p /sbin/ldconfig +%postun -n libQCoro%{_qt_suffix}WebSockets%{sonum} -p /sbin/ldconfig %files -n libQCoro%{_qt_suffix}Core%{sonum} %license LICENSES/* @@ -150,6 +164,10 @@ %{_libdir}/libQCoro%{_qt_suffix}Network.so.%{sonum} %{_libdir}/libQCoro%{_qt_suffix}Network.so.%{sonum}.* +%files -n libQCoro%{_qt_suffix}WebSockets%{sonum} +%{_libdir}/libQCoro%{_qt_suffix}WebSockets.so.%{sonum} +%{_libdir}/libQCoro%{_qt_suffix}WebSockets.so.%{sonum}.* + %files devel %{_includedir}/qcoro%{_qt_suffix}/ %{_libdir}/cmake/QCoro%{_qt_suffix}/ @@ -157,9 +175,11 @@ %{_libdir}/cmake/QCoro%{_qt_suffix}Coro/ %{_libdir}/cmake/QCoro%{_qt_suffix}DBus/ %{_libdir}/cmake/QCoro%{_qt_suffix}Network/ +%{_libdir}/cmake/QCoro%{_qt_suffix}WebSockets/ %{_libdir}/libQCoro%{_qt_suffix}Core.so %{_libdir}/libQCoro%{_qt_suffix}DBus.so %{_libdir}/libQCoro%{_qt_suffix}Network.so +%{_libdir}/libQCoro%{_qt_suffix}WebSockets.so %{_libdir}/qt%{_qt_suffix}/mkspecs/modules/*.pri %changelog ++++++ qcoro-0.5.1.tar.gz -> qcoro-0.6.0.tar.gz ++++++ ++++ 9864 lines of diff (skipped) ++++++ qcoro_no_Werror.patch ++++++ >From eba5ec31ba7a270df91986f9af94f688151da9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vr=C3=A1til?= <dvra...@kde.org> Date: Sun, 10 Jul 2022 22:23:07 +0200 Subject: [PATCH] Only enable -Werror (and related flags) in debug mode (fixes #94) --- .github/workflows/build.yml | 2 +- CMakeLists.txt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e4a1c9..7174e70 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: env: - BUILD_TYPE: RelWithDebInfo + BUILD_TYPE: Debug QTEST_FUNCTION_TIMEOUT: 60000 diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a8d2a2..b4d46a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,10 +88,10 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_AUTOMOC ON) if (MSVC) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /W4 /WX") # Disable warning C5054: "operator '&': deprecated between enumerations of different types" caused by QtWidgets/qsizepolicy.h # Disable warning C4127: "conditional expression is constant" caused by QtCore/qiterable.h - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd5054 /wd4127") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /wd5054 /wd4127") if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # Explicitly enable exceptions support for clang-cl (it's only enabled by CMake when targeting the Windows-MSVC platform, @@ -99,7 +99,8 @@ if (MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") endif() else() - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -pedantic") + # Only enable strict warnings in debug mode + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wextra -Werror -pedantic") endif() if (QCORO_ENABLE_ASAN)