Bug 461720

Summary: kgpg requires depreciated gpgme-config script for cmake to find gpgme - causes FTBFS on Debian sid and Ubuntu 23.04
Product: [Applications] kgpg Reporter: Rik Mills <rikmills>
Component: generalAssignee: Rolf Eike Beer <kde>
Status: RESOLVED FIXED    
Severity: major CC: deltaone, dkg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 22.12.1

Description Rik Mills 2022-11-12 09:36:35 UTC
kgpg requires depreciated gpgme-config script for cmake to find gpgme - causes FTBFS on Deabin sid and Ubuntu 23.04

-- No usable gpgme flavors found.
CMake Error at cmake/FindGpgme.cmake:367 (message):
  Did not find GPGME
Call Stack (most recent call first):
  CMakeLists.txt:61 (find_package)
-- Configuring incomplete, errors occurred!

See: https://salsa.debian.org/debian/gpgme/-/commit/fcd36b83bbe828726194e7b39203dcaaaa0af469

Quote: "The upstream buildsystem only installs gpgme-config if libgpg-error ships gpg-error-config. libgpg-error 1.46-1 does not."

i.e. the combination of gpgme 1.18.0 built against the very latest libgpg-error 1.46 results in the gpgme-config script kgpg currently requires not being present, so kgpg fails to build.

As gpgme-config script can no longer reliably be counted on to exist,  the cmake/FindGpgme.cmake in kgpg source must be adapted so to not rely on this script.
Comment 1 Rik Mills 2022-11-13 12:48:30 UTC
Possibly fixable by borrowing the FindGpgme.cmake from Kalendar 22.11.80

https://invent.kde.org/pim/kalendar/-/blob/release/22.12/cmake/modules/FindGpgme.cmake
Comment 2 Daniel Kahn Gillmor 2022-11-23 20:41:17 UTC
I've posted a patch for this from Andreas Metzler that recommends using pkg-config over at https://invent.kde.org/utilities/kgpg/-/merge_requests/18