Skip to content

Use pkg-config to locate libgcrypt #190

Description

@iasdeoupxe

Debian ships an own patch here https://sources.debian.org/src/purple-lurch/0.7.0-2.1/debian/patches/libgcrypt-pkgconfig.diff/ to fix purple-lurch: FTBFS against libgcrypt 1.11.

This seems to be required because libgcrypt 1.11 does not ship libgcrypt-config anymore which is still used here:

https://github.com/gkdr/lurch/blob/v0.7.0/Makefile#L7

The patch is the following, maybe something for integrating into this project directly?

Description: Use pkg-config to locate libgcrypt
Author: Andreas Metzler <ametzler@debian.org>
Bug-Debian: https://bugs.debian.org/1071952
Last-Update: 2024-07-09

--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,10 @@
 #
 CC ?= gcc
 
 PKG_CONFIG ?= pkg-config
 XML2_CONFIG ?= xml2-config
-LIBGCRYPT_CONFIG ?= libgcrypt-config
 
 MKDIR = mkdir
 MKDIR_P = mkdir -p
 INSTALL = install
 INSTALL_LIB = $(INSTALL) -m 755
@@ -36,11 +35,11 @@ LIBSIGNAL_PROTOCOL_CFLAGS = $(shell $(PK
 LIBSIGNAL_PROTOCOL_LDFLAGS = $(shell $(PKG_CONFIG) --cflags libsignal-protocol-c)
 
 XML2_CFLAGS ?= $(shell $(XML2_CONFIG) --cflags)
 XML2_LDFLAGS ?= $(shell $(XML2_CONFIG) --libs)
 
-LIBGCRYPT_LDFLAGS ?= $(shell $(LIBGCRYPT_CONFIG) --libs)
+LIBGCRYPT_LDFLAGS ?= $(shell $(PKG_CONFIG) --libs libgcrypt)
 
 USE_DYNAMIC_LIBS=libsignal-protocol-c libaxc libomemo
 USE_DYNAMIC_LIBS:=$(shell pkg-config --exists $(USE_DYNAMIC_LIBS) && \
 	echo '$(USE_DYNAMIC_LIBS)')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions