pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/openldap Fix PR pkg/32069 by limiting the FD...
details: https://anonhg.NetBSD.org/pkgsrc/rev/50477d2d3f01
branches: trunk
changeset: 504777:50477d2d3f01
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Dec 21 03:54:23 2005 +0000
description:
Fix PR pkg/32069 by limiting the FD_SETSIZE used by OpenLDAP to the
maximum value supported by GNU Pth when building against GNU Pth.
diffstat:
databases/openldap/Makefile | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 4a9bf2241940 -r 50477d2d3f01 databases/openldap/Makefile
--- a/databases/openldap/Makefile Tue Dec 20 23:50:34 2005 +0000
+++ b/databases/openldap/Makefile Wed Dec 21 03:54:23 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.105 2005/12/17 05:20:21 jlam Exp $
+# $NetBSD: Makefile,v 1.106 2005/12/21 03:54:23 jlam Exp $
DISTNAME= openldap-2.3.11
PKGREVISION= 1
@@ -93,6 +93,18 @@
CONFIGURE_ARGS+= --with-threads
.elif ${PTHREAD_TYPE} == "pth"
CONFIGURE_ARGS+= --with-threads=pth
+#
+# Don't use a larger FD_SETSIZE than GNU Pth can handle (value taken from
+# pth.h header).
+#
+PTH_FDSETSIZE_cmd= \
+ if ${TEST} -f ${BUILDLINK_PREFIX.pth:Q}/include/pth.h; then \
+ ${AWK} '/if FD_SETSIZE >/ { print $$4 }' \
+ ${BUILDLINK_PREFIX.pth}/include/pth.h; \
+ else \
+ ${ECHO} 0; \
+ fi
+CPPFLAGS+= -DOPENLDAP_FD_SETSIZE=${PTH_FDSETSIZE_cmd:sh:Q}
.endif
RCD_SCRIPTS+= slurpd
Home |
Main Index |
Thread Index |
Old Index