pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/py-ldap py-ldap: add build fixes



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e122c7cbcd8b
branches:  trunk
changeset: 414447:e122c7cbcd8b
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Fri Mar 27 16:34:57 2020 +0000

description:
py-ldap: add build fixes

This package requires cyrus-sasl to build. Separately, it had a test(1)
invocation that's non-portable.

diffstat:

 databases/py-ldap/Makefile               |   5 +++--
 databases/py-ldap/distinfo               |   3 ++-
 databases/py-ldap/patches/patch-Makefile |  15 +++++++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diffs (53 lines):

diff -r 249daf9ffc29 -r e122c7cbcd8b databases/py-ldap/Makefile
--- a/databases/py-ldap/Makefile        Fri Mar 27 16:04:24 2020 +0000
+++ b/databases/py-ldap/Makefile        Fri Mar 27 16:34:57 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.84 2020/01/18 21:49:04 jperkin Exp $
+# $NetBSD: Makefile,v 1.85 2020/03/27 16:34:57 gutteridge Exp $
 
 DISTNAME=      python-ldap-3.2.0
 PKGNAME=       ${DISTNAME:S/python/${PYPKGPREFIX}/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python-ldap/}
 
@@ -19,6 +19,7 @@
 TEST_ENV+=     SLAPD=${PREFIX}/libexec/slapd
 
 .include "../../databases/openldap-client/buildlink3.mk"
+.include "../../security/cyrus-sasl/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 249daf9ffc29 -r e122c7cbcd8b databases/py-ldap/distinfo
--- a/databases/py-ldap/distinfo        Fri Mar 27 16:04:24 2020 +0000
+++ b/databases/py-ldap/distinfo        Fri Mar 27 16:34:57 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.43 2019/04/09 11:51:20 adam Exp $
+$NetBSD: distinfo,v 1.44 2020/03/27 16:34:57 gutteridge Exp $
 
 SHA1 (python-ldap-3.2.0.tar.gz) = f0658ddeffd4c059bb804890b80c00d62b70be60
 RMD160 (python-ldap-3.2.0.tar.gz) = 846bf38cb166f478f2cf401f889ad7ecd39b05c5
 SHA512 (python-ldap-3.2.0.tar.gz) = ef2833739fd57ad26d97ae5dba3bca8a47e770ff3f113d06a5bed0841f8fcbbe6cd102e75c753dfff48f5f6041f46a91c6166f3bb9ca44ef9bd643c0666c6b23
 Size (python-ldap-3.2.0.tar.gz) = 367645 bytes
+SHA1 (patch-Makefile) = ef130a8711a94cc070f11baf0d481bbc69ff3910
diff -r 249daf9ffc29 -r e122c7cbcd8b databases/py-ldap/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/py-ldap/patches/patch-Makefile  Fri Mar 27 16:34:57 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2020/03/27 16:34:57 gutteridge Exp $
+
+Fix non-portable test expression.
+
+--- Makefile.orig      2018-07-30 16:05:13.000000000 +0000
++++ Makefile
+@@ -74,7 +74,7 @@ valgrind: build $(PYTHON_SUPP)
+           $(PYTHON) setup.py test
+ 
+       @grep -A7 "blocks are definitely lost" build/valgrind.log; \
+-      if [ $$? == 0 ]; then \
++      if [ $$? = 0 ]; then \
+           echo "Found definitive leak, see build/valgrind.log"; \
+           exit 1; \
+       fi



Home | Main Index | Thread Index | Old Index