Re: Bug#638646: Could be built without gcrypt dependency

Sandro Tosi <[email protected]> Wed, 24 Aug 2011 00:00:01 +0200
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <CAPdtAj1jmQo3b2VHbdULGAuvEt6_mrArV5FC9DZi-89qGygArg__2645.18205444819$1314137106$gmane$org@mail.gmail.com>
forwarded 638646 [email protected]
thanks

Thanks Andreas for the report.

Dear Gkrellm maintainer, a fellow Debian Developer just filed this bug
against the debian gkrellm package. It would be nice if you could
address it upstream.

Regards,
Sandro

On Sat, Aug 20, 2011 at 16:50, Andreas Metzler
<[email protected]> wrote:
> Package: gkrellm
> Version: 2.3.4-1
> Tags: upstream
> User: [email protected]
> Usertags: gnutls3
>
> This package links against libgcrypt. Afaict the only gcrypt related
> code is this one:
>
> ---------------------------
> if defined(HAVE_GNUTLS)
> #include <gnutls/openssl.h>
> #include <gcrypt.h>
> #include <pthread.h>
> #define MD5Init         MD5_Init
> #define MD5Update       MD5_Update
> #define MD5Final        MD5_Final
> GCRY_THREAD_OPTION_PTHREAD_IMPL;
> #else
> [...]
> #ifdef HAVE_GNUTLS
>        gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
>        gnutls_global_init();
>        SSL_load_error_strings();
>        SSL_library_init();
> ---------------------------
>
>
> Starting with gnutls version 2.12. this should not be necessary
> anymore. Quoting its NEWS:
> ------------------------------
> ** libgnutls: Added gnutls_global_set_mutex() to allow setting
> alternative locking procedures. By default the system available
> locking is used. In *NIX pthreads are used and in windows the
> critical section API. This follows a different approach than the
> previous versions that depended on libgcrypt initialization. The
> locks are now set by default in systems that support it. Programs
> that used gcry_control() to set thread locks should insert it into
> a block of
> #if GNUTLS_VERSION_NUMBER <= 0x020b00
>        gcry_control(...)
> #endif
> ------------------------------
>
> Of course the configure script will also need to changed to only
> search for and link against gcrypt if gnutls is << 2.12.
>
> gnutls 3.0.0 uses nettle instead of gcrypt as crypto backend and
> therefore losing unnecessary libgcrypt11 dependencies would be nice.
>
> 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'
>
>
>



-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

______________________________________________
Gkrellm mailing list
[email protected]
Read archives-join-leave-set RSS feed:
http://archive.lists.netservicesgroup.com
This service is provided by The Network Services Group:
http://www.netservicesgroup.com