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
information.

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 @@
   fi
   if test $ok = yes; then
     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
-    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
+    LIBGCRYPT_LIBS="-lgcrypt"
     ifelse([$2], , :, [$2])
   else
     LIBGCRYPT_CFLAGS=""


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to