Bug#1024576: librepo: FTBFS against libgpgme-dev >= 1.18.0-2

2022-11-23 Thread Andreas Metzler
Control: tags -1 patch

On 2022-11-21 Andreas Metzler  wrote:
> Source: librepo
> Version: 1.12.1-4
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in the past)
> User: pkg-gnupg-ma...@lists.alioth.debian.org
> Usertags: gpgme-config-transition^

> The package relies on gpgme-config to detect gpgme. gpgme-config has been
> dropped and replaced by pkg-config pc files.

Straightforward patch attached.

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'
--- librepo-1.12.1.orig/CMakeLists.txt
+++ librepo-1.12.1/CMakeLists.txt
@@ -30,8 +30,8 @@ FIND_PACKAGE(PkgConfig)
 PKG_CHECK_MODULES(GLIB2 glib-2.0 REQUIRED)
 PKG_SEARCH_MODULE(LIBCRYPTO REQUIRED libcrypto openssl)
 PKG_CHECK_MODULES(LIBXML2 libxml-2.0 REQUIRED)
+PKG_SEARCH_MODULE(GPGME REQUIRED gpgme)
 FIND_PACKAGE(CURL REQUIRED)
-FIND_PACKAGE(Gpgme REQUIRED)
 
 
 IF (WITH_ZCHUNK)
--- librepo-1.12.1.orig/librepo/CMakeLists.txt
+++ librepo-1.12.1/librepo/CMakeLists.txt
@@ -50,7 +50,7 @@ TARGET_LINK_LIBRARIES(librepo
 ${LIBXML2_LIBRARIES}
 ${CURL_LIBRARY}
 ${LIBCRYPTO_LIBRARIES}
-${GPGME_VANILLA_LIBRARIES}
+${GPGME_LIBRARIES}
 ${GLIB2_LIBRARIES}
  )
 IF (WITH_ZCHUNK)


Bug#1024576: librepo: FTBFS against libgpgme-dev >= 1.18.0-2

2022-11-21 Thread Andreas Metzler
Source: librepo
Version: 1.12.1-4
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
User: pkg-gnupg-ma...@lists.alioth.debian.org
Usertags: gpgme-config-transition^

The package relies on gpgme-config to detect gpgme. gpgme-config has been
dropped and replaced by pkg-config pc files.

Please also see #1024417 or #1024500 which also use FindGpgme.cmake.

cu Andreas