pkgsrc-Changes archive

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

CVS commit: pkgsrc/databases/py-ldap



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Jan 14 11:41:03 UTC 2021

Modified Files:
        pkgsrc/databases/py-ldap: Makefile

Log Message:
py-ldap: Force pkgsrc version on NetBSD where version detection fails

PR pkg/55902


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 pkgsrc/databases/py-ldap/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/py-ldap/Makefile
diff -u pkgsrc/databases/py-ldap/Makefile:1.88 pkgsrc/databases/py-ldap/Makefile:1.89
--- pkgsrc/databases/py-ldap/Makefile:1.88      Wed Jan 13 09:55:42 2021
+++ pkgsrc/databases/py-ldap/Makefile   Thu Jan 14 11:41:02 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.88 2021/01/13 09:55:42 nia Exp $
+# $NetBSD: Makefile,v 1.89 2021/01/14 11:41:02 nia Exp $
 
 DISTNAME=      python-ldap-3.3.1
 PKGNAME=       ${DISTNAME:S/python/${PYPKGPREFIX}/}
@@ -10,6 +10,14 @@ HOMEPAGE=    https://www.python-ldap.org/
 COMMENT=       LDAP client API for Python
 LICENSE=       python-software-foundation
 
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_PLATFORM:MNetBSD-[56789].*) && \
+    empty(MACHINE_PLATFORM:MNetBSD-9.99.*)
+# Needs openldap>=2.4.48 for openldap.h.
+# Unfortunately, version detection on the native version fails.
+PREFER.openldap-client=        pkgsrc
+.endif
+
 DEPENDS+=      ${PYPKGPREFIX}-asn1>=0.3.7:../../security/py-asn1
 DEPENDS+=      ${PYPKGPREFIX}-asn1-modules>=0.1.5:../../security/py-asn1-modules
 TEST_DEPENDS+= openldap-server-[0-9]*:../../databases/openldap-server



Home | Main Index | Thread Index | Old Index