ports/net/py-ldap0/files/patch-setup.cfg
Kubilay Kocak 4146e33cd2 net/ldap0: Update to 0.6.8 [1]
Note: ldap0 is Python 3.x only since 0.3.0

While I'm here, level up ports compliance and fix ports issues:

  - Match COMMENT to setup.py:description
  - Match *_DEPENDS (and versions) to setup.py:*_requires
  - Add TEST_* variables and test (QA) target [1][2]
  - Replace setup.py INCLUDES patch with setuptools build_ext commands
    which honour environment variables
  - Strip extension/library
  - Patch setup.cfg to remove unconditional debug builds
  - Update pkg-descr formatting and WWW url (to match setup.py:homepage)

[1] It's possible to make the unconditional requirement to HAVE_SASL,
    ie: a requirement to have a SASL enabled openldap client, optional, by
    conditionally adding --undef HAVE_SASL to PYDISTUTILS_BUILDARGS
    depending on WANT_OPENLDAP_SASL, but the ldap0 tests unconditionally
    run a number of unconditional sasl based tests. These tests should be
    made to skip (not fail) if SASL is not available, and the port made to
    support non-SASL based configuration. TODO: Upstream test improvements.

[2] WANT_OPENLDAP_SASL currently only results in the openldap-client being
    SASL enabled, but doesn't affect the openldap-server port. There's no
    way at present to require/force a SASL enabled openldap-server port,
    which doesn't enable the SASL option by default either. A slave port
    (openldap24-sasl-server, matching client slave port) that enables the
    SASL option would be great.

portlint: OK (looks fine.)
testport: OK (poudriere: 12amd64, Python 3.7)
maketest: OK (Ran 248 tests: (skipped=12, expected failures=3))

PR:		242043 [1]
Submitted by:	<geraud gcu info> [1]
Approved by:	portmgr (maintainer timeout: > 1 months, blanket: ports compliance)
2020-01-13 02:49:03 +00:00

10 lines
246 B
INI

--- setup.cfg.orig 2020-01-12 07:58:53 UTC
+++ setup.cfg
@@ -1,6 +1,6 @@
[_libldap0]
defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
-extra_compile_args = -Wall -O1 -g -DPYMALLOC_DEBUG
+extra_compile_args = -Wall
extra_objects =
libs = ldap_r