Bug 163808 - net/py-ldap2 requires OpenLDAP 2.4.x
Summary: net/py-ldap2 requires OpenLDAP 2.4.x
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-04 03:10 UTC by mfisher
Modified: 2012-01-04 11:30 UTC (History)
0 users

See Also:


Attachments
file.diff (328 bytes, patch)
2012-01-04 03:10 UTC, mfisher
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mfisher 2012-01-04 03:10:11 UTC
	The python-ldap project seems to have changed to require OpenLDAP-2.4.x around their 2.4 release. There was some discussion on their distribution list here: <http://mail.python.org/pipermail/python-ldap/2011q1/002821.html>.

Example failure:
running build_ext
building '_ldap' extension
creating temp.freebsd-8.1-STABLE-amd64-2.6
creating temp.freebsd-8.1-STABLE-amd64-2.6/Modules
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.4 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/LDAPObject.c -o temp.freebsd-8.1-STABLE-amd64-2.6/Modules/LDAPObject.o -g
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.4 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/ldapcontrol.c -o temp.freebsd-8.1-STABLE-amd64-2.6/Modules/ldapcontrol.o -g
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.4 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/common.c -o temp.freebsd-8.1-STABLE-amd64-2.6/Modules/common.o -g
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.4 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/constants.c -o temp.freebsd-8.1-STABLE-amd64-2.6/Modules/constants.o -g
Modules/constants.c: In function 'LDAPinit_constants':
Modules/constants.c:155: error: 'LDAP_OPT_DIAGNOSTIC_MESSAGE' undeclared (first use in this function)
Modules/constants.c:155: error: (Each undeclared identifier is reported only once
Modules/constants.c:155: error: for each function it appears in.)
Modules/constants.c:365: error: 'LDAP_CONTROL_RELAX' undeclared (first use in this function)
error: command 'cc' failed with exit status 1
*** Error code 1

Fix: Require OpenLDAP-2.4 in the portfile:
How-To-Repeat: 	pkg_delete openldap24-client-\*
	pkg_add net/openldap23-client
	cd /usr/ports/net/py-ldap2 && make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-01-04 03:10:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-01-04 11:24:04 UTC
rm          2012-01-04 11:23:50 UTC

  FreeBSD ports repository

  Modified files:
    net/py-ldap2         Makefile distinfo 
  Log:
  - update to 2.4.6
  - rework SASL option handling according to upstream changes
  - explicitly depend on OpenLDAP 2.4 [1]
  
  PR:             163808 [1]
  Submitted by:   Mike Fisher <mfisher at csh.rit dot edu>
  
  Revision  Changes    Path
  1.62      +8 -5      ports/net/py-ldap2/Makefile
  1.34      +2 -2      ports/net/py-ldap2/distinfo
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-01-04 11:26:46 UTC
State Changed
From-To: open->closed

Committed, thank you!