Bug 461720 - kgpg requires depreciated gpgme-config script for cmake to find gpgme - causes FTBFS on Debian sid and Ubuntu 23.04
Summary: kgpg requires depreciated gpgme-config script for cmake to find gpgme - cause...
Status: RESOLVED FIXED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Rolf Eike Beer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-12 09:36 UTC by Rik Mills
Modified: 2022-12-22 15:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 22.12.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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