[pim/kleopatra] src: Use correct default source for GpgME errors

Ingo Klöcker <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a68f5d35b0300244afcfc08234907c0a8e7cc287 by Ingo Klöcker, on behalf of Ingo Klöcker.
Committed on 06/08/2026 at 13:50.
Pushed by kloecker into branch 'master'.

Use correct default source for GpgME errors

GPG_ERR_SOURCE_KLEO exists since libgpg-error 1.6 and we require 1.47.
The check that set HAVE_GPG_ERR_SOURCE_KLEO got lost with commit
ad23c41924570f948e2a7bf552fb9b3a4a7acd3b.

M  +2    -7    src/CMakeLists.txt

https://invent.kde.org/pim/kleopatra/-/commit/a68f5d35b0300244afcfc08234907c0a8e7cc287

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 31abff99c..b23110ae7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -49,13 +49,8 @@ set(_kleopatra_uiserver_SRCS
 
 set(_kleopatra_uiserver_extra_libs LibAssuan::LibAssuan LibGpgError::LibGpgError)
 
-if(HAVE_GPG_ERR_SOURCE_KLEO)
-  add_definitions(-DGPG_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_KLEO)
-  add_definitions(-DGPGMEPP_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_KLEO)
-else()
-  add_definitions(-DGPG_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_USER_1)
-  add_definitions(-DGPGMEPP_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_USER_1)
-endif()
+add_definitions(-DGPG_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_KLEO)
+add_definitions(-DGPGMEPP_ERR_SOURCE_DEFAULT=GPG_ERR_SOURCE_KLEO)
 
 if(KPim6IdentityManagementCore_FOUND AND KPim6MailTransport_FOUND AND KPim6AkonadiMime_FOUND)
   set(_kleopatra_mail_libs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.