[packages/ka6-kget] - GPGME-2.0.patch, relup
mrozowik
mrozowik at pld-linux.org
Wed Aug 13 09:52:09 CEST 2025
commit 82cbc8e2a064fd92234e31aa52b2d00aabe231ee
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date: Wed Aug 13 07:51:55 2025 +0000
- GPGME-2.0.patch, relup
GPGME-2.0.patch | 26 ++++++++++++++++++++++++++
ka6-kget.spec | 4 +++-
2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/ka6-kget.spec b/ka6-kget.spec
index b48da02..71cabc4 100644
--- a/ka6-kget.spec
+++ b/ka6-kget.spec
@@ -8,12 +8,13 @@
Summary: kget
Name: ka6-%{kaname}
Version: 25.04.3
-Release: 1
+Release: 2
License: GPL v2+/LGPL v2.1+
Group: X11/Applications
Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
# Source0-md5: af2eab932ffccfb8dced68561d1a60f6
URL: http://www.kde.org/
+Patch0: GPGME-2.0.patch
BuildRequires: Qt6Core-devel >= %{qtver}
BuildRequires: Qt6DBus-devel
BuildRequires: Qt6Gui-devel
@@ -91,6 +92,7 @@ Dane dla %{kaname}.
%prep
%setup -q -n %{kaname}-%{version}
+%patch -P0 -p1
%build
%cmake \
diff --git a/GPGME-2.0.patch b/GPGME-2.0.patch
new file mode 100644
index 0000000..016cd47
--- /dev/null
+++ b/GPGME-2.0.patch
@@ -0,0 +1,26 @@
+From 6254c0cefa17fe82f44842bc21f5e5c241f66aec Mon Sep 17 00:00:00 2001
+From: Antonio Rojas <arojas at 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 7c4a97f1..0b6a0785 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")
+--
+2.49.0
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ka6-kget.git/commitdiff/82cbc8e2a064fd92234e31aa52b2d00aabe231ee
More information about the pld-cvs-commit
mailing list