summaryrefslogtreecommitdiff
path: root/databases/openldap/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-02-19 14:42:39 +0000
committerjlam <jlam@pkgsrc.org>2004-02-19 14:42:39 +0000
commitf55802a5e990a7ce55e7d4c0c8fde321c0f5d19e (patch)
tree9bcd4a29372698339fc973913d606b59035a1f70 /databases/openldap/Makefile
parent36fb56a61facc4effec8c865f05d15d913f1068c (diff)
downloadpkgsrc-f55802a5e990a7ce55e7d4c0c8fde321c0f5d19e.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.
Diffstat (limited to 'databases/openldap/Makefile')
-rw-r--r--databases/openldap/Makefile23
1 files changed, 19 insertions, 4 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: