[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1117235: kget: FTBFS against libqgpgme-dev 2



Control: tags 1117235 patch

On 2025-10-05 Andreas Metzler <ametzler@bebt.de> wrote:
> Source: kget
> Version: 4:25.04.0-1
> Severity: important

> Hello,

> this package  FTBFS against libqgpgme-dev 2 (available in experimental)
> with:
> [ 16%] Building CXX object CMakeFiles/kget.dir/ui/signaturedlg.cpp.o
> [...]
> /usr/include/x86_64-linux-gnu/qt6/QtCore/qdebug.h:242:13: note: template argumen
> t deduction/substitution failed:
> /usr/include/x86_64-linux-gnu/qt6/QtCore/qdebug.h:241:43: error: no type named '
> type' in 'struct std::enable_if<false, bool>'
>   241 |     template <typename T, if_qint128<T> = true>
>       |                                           ^~~~

Hello,

please note that this only shows up if not only
libgpgmepp-dev/libqgpgmeqt6-dev but also libgpgme-dev is upgraded to 2.x
(not yet enforced by dependencies).

This was fixed upstream in
https://invent.kde.org/network/kget/-/commit/6254c0cefa17fe82f44842bc21f5e5c241f66aec
cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
>From 6254c0cefa17fe82f44842bc21f5e5c241f66aec Mon Sep 17 00:00:00 2001
From: Antonio Rojas <arojas@archlinux.org>
Date: Tue, 3 Jun 2025 23:13:39 +0200
Subject: [PATCH] Fix build with GPGME++ 2.0

GpgME::Error is no longer implicitly converted to a string
---
 ui/signaturedlg.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/signaturedlg.cpp b/ui/signaturedlg.cpp
index 7c4a97f14..0b6a07853 100644
--- a/ui/signaturedlg.cpp
+++ b/ui/signaturedlg.cpp
@@ -185,7 +185,7 @@ void SignatureDlg::updateData()
             QByteArray fingerprint = fingerprintString.toLatin1();
             const GpgME::Key key = context->key(fingerprint.constData(), err);
             if (err || key.isNull() || !key.numUserIDs() || !key.numSubkeys()) {
-                qCDebug(KGET_DEBUG) << "There was an error while loading the key:" << err;
+                qCDebug(KGET_DEBUG) << "There was an error while loading the key:" << err.asStdString();
             } else {
                 static const QStringList OWNERTRUST = QStringList()
                     << i18nc("trust level", "Unknown") << i18nc("trust level", "Undefined") << i18nc("trust level", "Never") << i18nc("trust level", "Marginal")
-- 
GitLab


Reply to: