• Bug#266104: libggz: Please use libgnutls11-dev instead of libgnutls7-de

    From Andreas Jochens@1:229/2 to All on Mon Aug 16 20:30:13 2004
    From: [email protected]

    Package: libggz
    Severity: normal
    Tags: patch

    Please rebuild against libgnutls11-dev instead of libgnutls7-dev.

    The attached patch changes the Build-Depends from libgnutls7-dev to libgnutls11-dev and adjusts a call of gcry_md_open in
    src/security/hashfunc.c to the new interface.

    Regards
    Andreas Jochens

    diff -urN ../tmp-orig/libggz-0.0.7/debian/control ./debian/control
    --- ../tmp-orig/libggz-0.0.7/debian/control 2004-08-16 20:03:31.824882825 +0200
    +++ ./debian/control 2004-08-16 18:19:36.751758017 +0200
    @@ -3,7 +3,7 @@
    Priority: optional
    Maintainer: Stephen Zander <[email protected]>
    Standards-Version: 3.6.1
    -Build-Depends: autotools-dev, debhelper (>> 4.1), libgnutls7-dev +Build-Depends: autotools-dev, debhelper (>> 4.1), libgnutls11-dev

    Package: libggz1
    Architecture: any
    diff -urN ../tmp-orig/libggz-0.0.7/src/security/hashfunc.c ./src/security/hashfunc.c
    --- ../tmp-orig/libggz-0.0.7/src/security/hashfunc.c 2003-05-10 01:04:19.000000000 +0200
    +++ ./src/security/hashfunc.c 2004-08-16 20:00:38.020305137 +0200
    @@ -32,7 +32,7 @@
    return hash;
    }

    - handle = gcry_md_open(0, flags);
    + handle = gcry_md_open(0, 0, flags);
    if(!handle)
    {
    fprintf(stderr, "Error: couldn't create handle.\n");


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]
  • From Josef Spillner@1:229/2 to All on Tue Aug 17 16:20:07 2004
    From: [email protected]

    Em Seg 16 Ago 2004 15:11, Andreas Jochens escreveu:
    The attached patch changes the Build-Depends from libgnutls7-dev to libgnutls11-dev and adjusts a call of gcry_md_open in
    src/security/hashfunc.c to the new interface.

    Are you sure this patch is correct?
    Because the gcry_md_open call is part of libgcrypt11-dev, not libgnutls11-dev. Also, it returns an error code and not a handler anymore.
    So it would have to be something like:

    - handle = gcry_md_open(0, flags);
    + error = gcry_md_open(&handle, 0, flags);

    This is the only way I get it to compile.

    Josef



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

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Andreas Jochens@1:229/2 to Josef Spillner on Wed Aug 18 00:20:07 2004
    From: [email protected]

    On 04-Aug-17 05:44, Josef Spillner wrote:
    Because the gcry_md_open call is part of libgcrypt11-dev, not libgnutls11-dev.
    Also, it returns an error code and not a handler anymore.
    So it would have to be something like:

    - handle = gcry_md_open(0, flags);
    + error = gcry_md_open(&handle, 0, flags);

    This is the only way I get it to compile.

    Of course you are right. The new interface from gcrypt.h is

    gcry_error_t gcry_md_open (gcry_md_hd_t *h, int algo, unsigned int flags);

    and your patch is the correct one. Sorry for my wrong patch.

    Regards
    Andreas Jochens



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

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)