aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2021-12-02 10:27:12 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2021-12-02 10:27:12 +0000
commit7becd3b8b86d998d5c1b4aa3125522d30b435d79 (patch)
tree55dc5c730b1e465eda2a9aebd632232d33864617
parent7a79e4b6471dca819d09ea439e3f1ca5fbd50517 (diff)
downloadports-7becd3b8b86d998d5c1b4aa3125522d30b435d79.tar.gz
ports-7becd3b8b86d998d5c1b4aa3125522d30b435d79.zip
net/py-ldap: do not imply openldap 2.4
- add patch to fix build OpenLDAP 2.5 - do not imply 2.4 version PR: 260054 Reported by: delphij
-rw-r--r--net/py-ldap/Makefile1
-rw-r--r--net/py-ldap/files/patch-setup.cfg11
2 files changed, 11 insertions, 1 deletions
diff --git a/net/py-ldap/Makefile b/net/py-ldap/Makefile
index 45a8c076a985..4cfe974d2df4 100644
--- a/net/py-ldap/Makefile
+++ b/net/py-ldap/Makefile
@@ -18,7 +18,6 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyasn1>0:devel/py-pyasn1@${PY_FLAVOR} \
USES= python:3.6+
USE_PYTHON= autoplist distutils
USE_OPENLDAP= yes
-WANT_OPENLDAP_VER= 24
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
diff --git a/net/py-ldap/files/patch-setup.cfg b/net/py-ldap/files/patch-setup.cfg
new file mode 100644
index 000000000000..9f2d026245dc
--- /dev/null
+++ b/net/py-ldap/files/patch-setup.cfg
@@ -0,0 +1,11 @@
+--- setup.cfg.orig 2020-06-29 14:13:36 UTC
++++ setup.cfg
+@@ -5,7 +5,7 @@ license_file = LICENCE
+ defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
+ extra_compile_args =
+ extra_objects =
+-libs = ldap_r lber
++libs = ldap lber
+
+ [install]
+ compile = 1