[Pkg-gnutls-maint] Bug#405239: libgnutls13: gnutls13 has an unnecessary dependency on libgpg-error

Nathanael Nerode neroden at gcc.gnu.org
Tue Jan 2 03:11:39 CET 2007

Package: libgnutls13
Version: 1.4.4-3
Severity: normal
Tags: patch

gnutls appears to have an unnecessary dependency on libgpg-error;
gnutls does not appear to use anything from libgpg-error directly.
With this dependency eliminated, it should no longer be necessary
to rebuild gnutls if libgpg-error changes ABI.

See http://rerun.lefant.net/checklib/ for background and further

I believe this (untested) patch should do the trick; the dependency
is dragged in by the ill-behaved libgcrypt-config.  (It may in fact
be dragged in by something else too, but this is a start.)

It will be necessary to rerun aclocal and autoconf after changing
this.  And possibly other autotools.  And of course ship the
changed configure.in.

--- m4/libgcrypt.m4	2004-07-28 06:28:48.000000000 -0400
+++ m4/libgcrypt.m4.new	2007-01-01 21:01:00.000000000 -0500
@@ -96,7 +96,7 @@
   if test $ok = yes; then
+    LIBGCRYPT_LIBS="-lgcrypt"
     ifelse([$2], , :, [$2])

More information about the Pkg-gnutls-maint mailing list