pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/gq Add a patch to follow one API change betw...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c87995f440c
branches:  trunk
changeset: 490667:7c87995f440c
user:      cube <cube%pkgsrc.org@localhost>
date:      Thu Mar 17 15:23:57 2005 +0000

description:
Add a patch to follow one API change between OpenLDAP 2.1 and OpenLDAP 2.2.
gq still compiled (one has to wonder why...), but crashed as soon as the
user tried to browse a directory.

Patch taken from gq's SourceForge tracker, with changes to allow
compilation with OpenLDAP 2.1.

PKGREVISION++.

diffstat:

 databases/gq/Makefile         |   4 ++--
 databases/gq/distinfo         |   3 ++-
 databases/gq/patches/patch-af |  28 ++++++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 3 deletions(-)

diffs (60 lines):

diff -r bfeba23d5e8d -r 7c87995f440c databases/gq/Makefile
--- a/databases/gq/Makefile     Thu Mar 17 15:11:23 2005 +0000
+++ b/databases/gq/Makefile     Thu Mar 17 15:23:57 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.21 2005/01/01 16:55:53 minskim Exp $
+# $NetBSD: Makefile,v 1.22 2005/03/17 15:23:57 cube Exp $
 #
 
 DISTNAME=      gq-1.0beta1
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    databases net
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=gqclient/}
 
diff -r bfeba23d5e8d -r 7c87995f440c databases/gq/distinfo
--- a/databases/gq/distinfo     Thu Mar 17 15:11:23 2005 +0000
+++ b/databases/gq/distinfo     Thu Mar 17 15:23:57 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2005/02/23 16:33:05 agc Exp $
+$NetBSD: distinfo,v 1.7 2005/03/17 15:23:57 cube Exp $
 
 SHA1 (gq-1.0beta1.tar.gz) = fcfeb2874326962e891433d54df7932840fab6ff
 RMD160 (gq-1.0beta1.tar.gz) = 6d757f39d2543a41f4c99b5aa39890de726e4d9c
@@ -8,3 +8,4 @@
 SHA1 (patch-ac) = b750774ac9292a7c466716fc46ad39cf5bfe1e5f
 SHA1 (patch-ad) = 5a9da1912fea5f7fcbe1cd807caf6b77e498ea05
 SHA1 (patch-ae) = 295196adb9b78af2feab13206dd6e38ef1618d91
+SHA1 (patch-af) = e07d3f6bd24dff4fc46f07e7154bf1c68324900d
diff -r bfeba23d5e8d -r 7c87995f440c databases/gq/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/gq/patches/patch-af     Thu Mar 17 15:23:57 2005 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-af,v 1.1 2005/03/17 15:23:57 cube Exp $
+
+--- src/util.c.orig    2003-11-03 23:28:24.000000000 +0100
++++ src/util.c
+@@ -1909,7 +1909,11 @@ GList *get_suffixes(int error_context, s
+ char **gq_ldap_explode_dn(const char *dn, int dummy)
+ {
+      int i, rc;
++#if LDAP_VENDOR_VERSION >= 20200
++     LDAPDN parts;
++#else
+      LDAPDN *parts;
++#endif
+      char **v = 0; 
+      
+      rc = ldap_str2dn(dn, &parts, LDAP_DN_FORMAT_LDAPV3);
+@@ -1921,7 +1925,11 @@ char **gq_ldap_explode_dn(const char *dn
+      v = (char **) calloc((i + 2), sizeof(char*));
+ 
+      for( i = 0 ; parts[i] ; i++ ) {
++#if LDAP_VENDOR_VERSION >= 20200
++        ldap_rdn2str(parts[i], &v[i],
++#else
+         ldap_rdn2str(parts[0][i], &v[i],
++#endif
+                      LDAP_DN_FORMAT_LDAPV3 | LDAP_DN_PRETTY );
+      } 
+      return v;



Home | Main Index | Thread Index | Old Index