Package: gkrellm
Version: 2.3.4-1
Severity: important
Tags: patch

due to the linker changes
http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html
gkrellm loses its GnuTLS dependency on a rebuild. Both the configure
test and the actual code in src/mail.c invoke functions from the
gnutls library and libgcrypt. Therefore linking against these libraries
would be necessary, too.

Straightforward patch attached.

cu andreas
--- gkrellm-2.3.4.orig/src/Makefile
+++ gkrellm-2.3.4/src/Makefile
@@ -61,7 +61,7 @@
 HAVE_LIBSENSORS = $(shell grep -c HAVE_LIBSENSORS configure.h)
 
 ifeq ($(HAVE_GNUTLS),1)
-    SSL_LIBS ?= -lgnutls-openssl
+    SSL_LIBS ?= -lgcrypt -lgnutls -lgnutls-openssl
 else
 ifeq ($(HAVE_SSL),1)
     SSL_LIBS ?= -lssl -lcrypto
only in patch2:
unchanged:
--- gkrellm-2.3.4.orig/src/configure
+++ gkrellm-2.3.4/src/configure
@@ -107,7 +107,7 @@
 EOF
 
 $CC ${CFLAGS} ${PKG_INCLUDE} -c test.c -o test.o 2>& 5
-$CC test.o -o test ${LINK_FLAGS} ${PKG_LIBS} -lgnutls-openssl 2>& 5
+$CC test.o -o test ${LINK_FLAGS} ${PKG_LIBS} -lgcrypt -lgnutls -lgnutls-openssl 2>& 5
 
 if [ -x ./test ] && ./test
 then

Reply via email to