Hi, here is a patch for building python-ldap 2.4.6 with the python-ldap 2.3.13-1 debian files, and a newer control file (which only append python-pyasn1 to the depends - which is needed for ldap.syncrepl).
I hope this could be some help. Cheers, Robin
Index: python-ldap-2.4.6/setup.cfg =================================================================== --- python-ldap-2.4.6.orig/setup.cfg 2011-11-27 16:28:04.000000000 +0100 +++ python-ldap-2.4.6/setup.cfg 2011-12-12 19:50:35.905919623 +0100 @@ -1,10 +1,10 @@ [_ldap] -library_dirs = /opt/openldap-RE24/lib -include_dirs = /opt/openldap-RE24/include /usr/include/sasl +library_dirs = +include_dirs = /usr/include/sasl defines = HAVE_SASL HAVE_TLS extra_compile_args = -g extra_objects = -libs = ldap_r +libs = ldap_r lber sasl2 [install] compile = 1
Source: python-ldap Section: python Priority: optional Maintainer: Matej Vela <v...@debian.org> Standards-Version: 3.9.2 Build-Depends: debhelper (>= 8), python-all-dev (>= 2.6.6-3~), python-all-dbg, libldap2-dev, libsasl2-dev Homepage: http://www.python-ldap.org/ X-Python-Version: >= 2.3 Package: python-ldap Architecture: any Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, python-pyasn1 Breaks: ${python:Breaks} Provides: ${python:Provides} Suggests: python-ldap-doc Conflicts: python2.3-ldap (<< 2.2.0-1.1), python2.4-ldap (<< 2.2.0-1.1), python2.3-ldap-tls Replaces: python2.3-ldap (<< 2.2.0-1.1), python2.4-ldap (<< 2.2.0-1.1), python2.3-ldap-tls Description: LDAP interface module for Python This module provides a Python interface to the OpenLDAP client library (LDAP is the Lightweight Directory Access Protocol). Package: python-ldap-dbg Section: debug Priority: extra Architecture: any Depends: python-ldap (= ${binary:Version}), python-dbg, ${python:Depends}, ${misc:Depends}, ${shlibs:Depends} Breaks: ${python:Breaks} Provides: ${python:Provides} Description: LDAP interface module for Python (debug extension) This module provides a Python interface to the OpenLDAP client library (LDAP is the Lightweight Directory Access Protocol). . This package contains the extension built for the Python debug interpreter.