pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/gnutls Update to version 1.3.5. Fixes build ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da8aefcf12d5
branches:  trunk
changeset: 509395:da8aefcf12d5
user:      cube <cube%pkgsrc.org@localhost>
date:      Thu Mar 09 17:25:54 2006 +0000

description:
Update to version 1.3.5.  Fixes build failures related to libtasn1.

- Error messages are now translated using GNU Gettext.

- The function gnutls_x509_crt_to_xml now return an internal error.
This means that the code to convert X.509 certificates to XML format
does not work any more.  The reason is that the function called
libtasn1 internal functions.  It seems unclean for libtasn1 to export
the APIs needed here.  Instead it would be better to implement XML
support inside libtasn1 properly.  If you need this functionality
strongly, please consider looking into implementing this suggested
approach instead.  As a workaround, you may also modify lib/x509/xml.c
(change '#if 1' to '#if 0') and build using --with-included-libtasn1.

- Doc fixes to explain that gnutls_record_send can block.

- gnutls-cli can now recognize services and port numbers with the -p option.

diffstat:

 security/gnutls/Makefile         |   7 +--
 security/gnutls/PLIST            |   5 ++-
 security/gnutls/distinfo         |   9 ++--
 security/gnutls/patches/patch-aa |  67 ----------------------------------------
 4 files changed, 11 insertions(+), 77 deletions(-)

diffs (127 lines):

diff -r 2144901095e1 -r da8aefcf12d5 security/gnutls/Makefile
--- a/security/gnutls/Makefile  Thu Mar 09 17:24:48 2006 +0000
+++ b/security/gnutls/Makefile  Thu Mar 09 17:25:54 2006 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2006/03/05 00:33:54 grant Exp $
+# $NetBSD: Makefile,v 1.46 2006/03/09 17:25:54 cube Exp $
 
-DISTNAME=      gnutls-1.3.4
-PKGREVISION=   1
+DISTNAME=      gnutls-1.3.5
 CATEGORIES=    security devel
 MASTER_SITES=  http://josefsson.org/gnutls/releases/ \
                ftp://ftp.gnutls.org/pub/gnutls/ \
@@ -27,7 +26,7 @@
 PKGCONFIG_OVERRIDE+=   libextra/gnutls-extra.pc.in
 
 BUILDLINK_DEPENDS.opencdk+=    opencdk>=0.5.5
-BUILDLINK_DEPENDS.libtasn1+=   libtasn1>=0.3.0
+BUILDLINK_DEPENDS.libtasn1+=   libtasn1>=0.3.1
 BUILDLINK_DEPENDS.libgcrypt+=  libgcrypt>=1.2.2
 
 MAKE_ENV+=             RM=${RM:Q}
diff -r 2144901095e1 -r da8aefcf12d5 security/gnutls/PLIST
--- a/security/gnutls/PLIST     Thu Mar 09 17:24:48 2006 +0000
+++ b/security/gnutls/PLIST     Thu Mar 09 17:25:54 2006 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2006/01/20 21:14:04 adam Exp $
+@comment $NetBSD: PLIST,v 1.18 2006/03/09 17:25:54 cube Exp $
 bin/certtool
 bin/gnutls-cli
 bin/gnutls-cli-debug
@@ -445,6 +445,9 @@
 share/examples/gnutls/ex-verify.c
 share/examples/gnutls/ex-x509-info.c
 share/examples/gnutls/tcp.c
+${PKGLOCALEDIR}/locale/en@boldquot/LC_MESSAGES/gnutls.mo
+${PKGLOCALEDIR}/locale/en@quot/LC_MESSAGES/gnutls.mo
+${PKGLOCALEDIR}/locale/pl/LC_MESSAGES/gnutls.mo
 @dirrm share/examples/gnutls
 @dirrm share/doc/gnutls
 @dirrm include/gnutls
diff -r 2144901095e1 -r da8aefcf12d5 security/gnutls/distinfo
--- a/security/gnutls/distinfo  Thu Mar 09 17:24:48 2006 +0000
+++ b/security/gnutls/distinfo  Thu Mar 09 17:25:54 2006 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.26 2006/03/04 23:45:07 wiz Exp $
+$NetBSD: distinfo,v 1.27 2006/03/09 17:25:54 cube Exp $
 
-SHA1 (gnutls-1.3.4.tar.bz2) = f412262ab6299f6e4603c3f524551ae0357ff983
-RMD160 (gnutls-1.3.4.tar.bz2) = 9f51b9a2eb54122d770cf4a6a48e620f271953cb
-Size (gnutls-1.3.4.tar.bz2) = 3199801 bytes
-SHA1 (patch-aa) = bc00be2f70c6cc2fa7358ebc3f3ac15d627305ca
+SHA1 (gnutls-1.3.5.tar.bz2) = 21fa619515cd9997c9d84bd3b0555e86a0a1d44f
+RMD160 (gnutls-1.3.5.tar.bz2) = 18c5e760336d162d23707997d773ccd2ba0e8e07
+Size (gnutls-1.3.5.tar.bz2) = 3256630 bytes
 SHA1 (patch-ab) = 503bf7fa154341504db7ba3b5c6602627ff27dc5
diff -r 2144901095e1 -r da8aefcf12d5 security/gnutls/patches/patch-aa
--- a/security/gnutls/patches/patch-aa  Thu Mar 09 17:24:48 2006 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-$NetBSD: patch-aa,v 1.7 2006/03/04 23:45:07 wiz Exp $
-
---- lib/x509/xml.c.orig        2006-02-08 16:56:21.000000000 +0000
-+++ lib/x509/xml.c
-@@ -379,7 +379,7 @@ _gnutls_asn1_get_structure_xml (ASN1_TYP
-       if (p->type == TYPE_BIT_STRING)
-       {
-         len2 = -1;
--        len = _asn1_get_length_der (p->value, p->value_len, &len2);
-+        len = asn1_get_length_der (p->value, p->value_len, &len2);
-         snprintf (tmp, sizeof (tmp), " length=\"%i\"",
-                   (len - 1) * 8 - (p->value[len2]));
-         STR_APPEND (tmp);
-@@ -412,7 +412,7 @@ _gnutls_asn1_get_structure_xml (ASN1_TYP
-             if (value)
-               {
-                 len2 = -1;
--                len = _asn1_get_length_der (value, p->value_len, &len2);
-+                len = asn1_get_length_der (value, p->value_len, &len2);
- 
-                 for (k = 0; k < len; k++)
-                   {
-@@ -426,7 +426,7 @@ _gnutls_asn1_get_structure_xml (ASN1_TYP
-             if (value)
-               {
-                 len2 = -1;
--                len = _asn1_get_length_der (value, p->value_len, &len2);
-+                len = asn1_get_length_der (value, p->value_len, &len2);
- 
-                 for (k = 0; k < len; k++)
-                   {
-@@ -456,7 +456,7 @@ _gnutls_asn1_get_structure_xml (ASN1_TYP
-             if (value)
-               {
-                 len2 = -1;
--                len = _asn1_get_length_der (value, p->value_len, &len2);
-+                len = asn1_get_length_der (value, p->value_len, &len2);
- 
-                 for (k = 1; k < len; k++)
-                   {
-@@ -469,7 +469,7 @@ _gnutls_asn1_get_structure_xml (ASN1_TYP
-             if (value)
-               {
-                 len2 = -1;
--                len = _asn1_get_length_der (value, p->value_len, &len2);
-+                len = asn1_get_length_der (value, p->value_len, &len2);
-                 for (k = 0; k < len; k++)
-                   {
-                     snprintf (tmp, sizeof (tmp), "%02X", (value)[k + len2]);
-@@ -487,7 +487,7 @@ _gnutls_asn1_get_structure_xml (ASN1_TYP
-                 if (value)
-                   {
-                     len3 = -1;
--                    len2 = _asn1_get_length_der (value, p->value_len, &len3);
-+                    len2 = asn1_get_length_der (value, p->value_len, &len3);
-                     for (k = 0; k < len2; k++)
-                       {
-                         snprintf (tmp, sizeof (tmp),
-@@ -507,7 +507,7 @@ _gnutls_asn1_get_structure_xml (ASN1_TYP
-                   type_field (up->left->type) == TYPE_OBJECT_ID)
-                 {
- 
--                  len2 = _asn1_get_length_der (up->value, up->value_len, &len3);
-+                  len2 = asn1_get_length_der (up->value, up->value_len, &len3);
- 
-                   if (len2 > 0 && strcmp (p->name, "type") == 0)
-                     {



Home | Main Index | Thread Index | Old Index