diff options
author | jlam <jlam> | 2004-02-19 14:42:39 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-19 14:42:39 +0000 |
commit | 719aac4ce8e4c79d3d9d9284ab866aa9d6698658 (patch) | |
tree | 9bcd4a29372698339fc973913d606b59035a1f70 | |
parent | ff610fe8061a05443014a98a585d7b992f42e1de (diff) | |
download | pkgsrc-719aac4ce8e4c79d3d9d9284ab866aa9d6698658.tar.gz |
If the threads are non-native, then don't build openldap with threads
support. The slapd built without threads passes all of its test except
for the replication test, which is because slurpd is not built (slurpd
requires threads). Bump the PKGREVISION.
This is in response to PR 24473. As a debugging aid in case someone
attempts to really fix the PR, if _OPENLDAP_REQUIRE_THREADS is "yes",
then openldap will forcibly build using GNU pth if native threads
aren't available.
-rw-r--r-- | databases/openldap/Makefile | 23 | ||||
-rw-r--r-- | databases/openldap/PLIST | 6 |
2 files changed, 22 insertions, 7 deletions
diff --git a/databases/openldap/Makefile b/databases/openldap/Makefile index c0d99540c0b..2f9210475aa 100644 --- a/databases/openldap/Makefile +++ b/databases/openldap/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.68 2004/02/14 17:21:36 jlam Exp $ +# $NetBSD: Makefile,v 1.69 2004/02/19 14:42:39 jlam Exp $ DISTNAME= openldap-2.1.25 SVR4_PKGNAME= oldap +PKGREVISION= 1 CATEGORIES= databases MASTER_SITES= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ EXTRACT_SUFX= .tgz @@ -18,8 +19,6 @@ USE_BUILDLINK3= YES USE_PKGINSTALL= YES GNU_CONFIGURE= YES USE_LIBTOOL= YES -PTHREAD_OPTS+= require - TEST_TARGET= test PKG_SYSCONFSUBDIR= openldap @@ -88,7 +87,18 @@ CONF_FILES_PERMS+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} \ .for FILE in ${SUPPS} SUPPORT_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} .endfor -RCD_SCRIPTS= slapd slurpd +RCD_SCRIPTS= slapd + +# While the package does build correctly using GNU pth, slapd isn't able to +# pass "make test" without segfaulting at startup. For now, just build +# without threads-support if it's not a native thread library. +# +.if defined(_OPENLDAP_REQUIRE_THREADS) && \ + !empty(_OPENLDAP_REQUIRE_THREADS:M[yY][eE][sS]) +PTHREAD_OPTS+= require +.else +PTHREAD_OPTS+= native +.endif .include "../../databases/db4/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" @@ -97,8 +107,13 @@ RCD_SCRIPTS= slapd slurpd .if ${PTHREAD_TYPE} == "native" CONFIGURE_ARGS+= --with-threads +PLIST_SUBST+= SLURPD_COMMENT= +RCD_SCRIPTS+= slurpd .elif ${PTHREAD_TYPE} == "pth" CONFIGURE_ARGS+= --with-threads=pth +.else +CONFIGURE_ARGS+= --without-threads +PLIST_SUBST+= SLURPD_COMMENT="@comment " .endif post-install: diff --git a/databases/openldap/PLIST b/databases/openldap/PLIST index 17ab432748d..965bf01f041 100644 --- a/databases/openldap/PLIST +++ b/databases/openldap/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.12 2004/02/18 14:00:42 jlam Exp $ +@comment $NetBSD: PLIST,v 1.13 2004/02/19 14:42:39 jlam Exp $ bin/ldapadd bin/ldapcompare bin/ldapdelete @@ -8,7 +8,7 @@ bin/ldappasswd bin/ldapsearch bin/ldapwhoami etc/rc.d/slapd -etc/rc.d/slurpd +${SLURPD_COMMENT}etc/rc.d/slurpd include/lber.h include/lber_types.h include/ldap.h @@ -32,7 +32,7 @@ lib/libldap_r.so lib/libldap_r.so.2 lib/libldap_r.so.2.124 libexec/slapd -libexec/slurpd +${SLURPD_COMMENT}libexec/slurpd man/man1/ldapadd.1 man/man1/ldapcompare.1 man/man1/ldapdelete.1 |