[Debian-med-packaging] Bug#1071860: not fixed in 7.0-005-2 (was: Bug#1071860 closed by Debian FTP Masters <ftpmaster at ftp-master.debian.org> (reply to Andreas Tille <tille at debian.org>) (Bug#1071860: fixed in fis-gtm 7.0-005-2))
Andreas Metzler
ametzler at bebt.de
Sun Jun 23 13:29:29 BST 2024
Control: tags -1 patch
On 2024-06-23 Andreas Tille <andreas at an3as.eu> wrote:
> Control: tags -1 help
> Hi Andreas,
> strange, it has build for me.
Very strange, perhaps you did not build against the libgcrypt package in
experimental.
> Am Sun, Jun 23, 2024 at 08:03:30AM +0200 schrieb Andreas Metzler:
> > Control: reopen 1071860
> > ...
> > CMake Error at CMakeLists.txt:529 (message):
> > FATAL: libgcrypt-config not found (LIBGCRYPT_CONFIG_SCRIPT-NOTFOUND)
> > [...]
> I admit I currently have no time to track this down. It might make
> sense to upgrade to latest upstream which might have been adapted to
> work without libgcrypt-config. Tagging the bug help since I have no
> capacity to work on this.
Fair enough.
The respective part of the CMake setup is unchanged in 7.1-003.
Attached patch works for me.
Upstream's build system is rather strange. - It requires libgcrypt itself
to be in the standard search but allows the headers to be hidden away:
8X----------------
# Iterate over the list of GPG related libraries
foreach(gpglib gpg-error gpgme gcrypt config)
# For each library, we need a new CMake variable, hence GPGLIB_${gpglib}
find_library(GPGLIB_${gpglib} NAME ${gpglib} PATHS ${CMAKE_LIBRARY_PATH})
# Append the found library to the list
set(GPG_LIBRARIES ${GPG_LIBRARIES} ${GPGLIB_${gpglib}})
endforeach()
[...]
# Locate libgcrypt's header files (assumption: all others headers are found in the same location)
find_program(LIBGCRYPT_CONFIG_SCRIPT NAMES libgcrypt-config)
if (LIBGCRYPT_CONFIG_SCRIPT MATCHES ".+-NOTFOUND")
message(FATAL_ERROR "FATAL: libgcrypt-config not found (${LIBGCRYPT_CONFIG_SCRIPT})")
else()
[...]
8X----------------
A Debian specific patch could simply drop the whole block
find_program(LIBGCRYPT_CONFIG_SCRIPT NAMES libgcrypt-config)
if (LIBGCRYPT_CONFIG_SCRIPT MATCHES ".+-NOTFOUND")
[...]
endif()
I will give it a litte bit of time to check whether somebody else from
-med picks this up and will NMU otherwise.
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'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Use-pkg-config-to-locate-gcrypt-include-path-instead.patch
Type: text/x-diff
Size: 1647 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20240623/0e94542d/attachment.patch>
More information about the Debian-med-packaging
mailing list