[neon/extras/qcoro/Neon/release] debian: fix build with gcc 11
Pino Toscano
null at kde.org
Wed May 4 12:31:30 BST 2022
Git commit b29895884394c3949f3c7bc3105d589383a06d55 by Pino Toscano.
Committed on 26/04/2022 at 04:29.
Pushed by jriddell into branch 'Neon/release'.
fix build with gcc 11
M +1 -0 debian/changelog
M +9 -0 debian/patches/qcorosignal.diff
https://invent.kde.org/neon/extras/qcoro/commit/b29895884394c3949f3c7bc3105d589383a06d55
diff --git a/debian/changelog b/debian/changelog
index f2c6f5e..0f30bea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ qcoro (0.5.0-0r1) UNRELEASED; urgency=medium
from upstream
* Update the build dependencies according to the upstream build system:
- bump qt6-base-dev to 6.2.0
+ * Avoid a build failure with GCC 11; patch qcorosignal.diff.
-- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org> Tue, 26 Apr 2022 05:55:16 +0200
diff --git a/debian/patches/qcorosignal.diff b/debian/patches/qcorosignal.diff
index bd09ebd..aa9befd 100644
--- a/debian/patches/qcorosignal.diff
+++ b/debian/patches/qcorosignal.diff
@@ -1,3 +1,12 @@
+Author: Pino Toscano <pino at debian.org>
+Description: Avoid temporary variable
+ QCoro::detail::QCoroSignal cannot be copied because it uses std::unique_ptr,
+ which is not copiable.
+ Avoid storing an instance of it in a temporary variable, so GCC does not think
+ it needs to be copied when calling co_await.
+Forwarded: no
+Last-Update: 2022-04-26
+
--- a/qcoro/core/qcorosignal.h
+++ b/qcoro/core/qcorosignal.h
@@ -127,8 +127,7 @@ QCoroSignal(T *, FuncPtr &&, std::chrono
More information about the Neon-commits
mailing list