Bug#1024417: kgpg FTBFS: Did not find GPGME
On 2022-11-19 Helmut Grohne <helmut@subdivi.de> wrote:
[...]
> kgpg fails to build from source in unstable. The relevant portion is:
> | -- No usable gpgme flavors found.
[...]
> I think this is due to gpgme having dropped its gpgme-config tool in
> favour of providing a .pc file. I think the change is good in principle,
> but the transition is executed in a bad way. gpgme-config was always
> difficult for cross compilation while .pc just works.
> In any case, this puts kgpg into a difficult spot. I hope you can deal
> with it somehow. I've put the gpgme maintainers in the loop for
> assistance.
Hello,
Unless kgpg maintainers/upstream has a strong opinion against using
pkg-config the obvious choice would be to drop cmake/FindGpgme.cmake
and simply use FindPkgConfig. - Attached patch seems to work for me,
i.e. build including dh_auto_test works.
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'
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,10 +21,11 @@
include(ECMInstallIcons)
include(FeatureSummary)
include(ECMSetupVersion)
include(CMakeFindDependencyMacro)
include(ECMQtDeclareLoggingCategory)
+include(FindPkgConfig)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Core
DBus
Gui
@@ -56,11 +57,11 @@
AkonadiContact
Contacts
)
# only headers are used
-find_package(Gpgme REQUIRED)
+pkg_search_module(GPGME REQUIRED gpgme)
add_definitions(
#-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00
-DQT_DEPRECATED_WARNINGS_SINCE=0x060000
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055200
Reply to: