diff options
author | jlam <jlam@pkgsrc.org> | 2005-12-21 03:54:23 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2005-12-21 03:54:23 +0000 |
commit | 0b66c94faeac67eafc39beaecfd325c1245a3894 (patch) | |
tree | 5f1cc0cc9e688deefef13c746e153776d7efe989 /databases | |
parent | 4e726c6d7ea8e979c00e78c9851623c15fa48ca8 (diff) | |
download | pkgsrc-0b66c94faeac67eafc39beaecfd325c1245a3894.tar.gz |
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 (limited to 'databases')
-rw-r--r-- | databases/openldap/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/databases/openldap/Makefile b/databases/openldap/Makefile index 573f7fd54c0..944fff00b7b 100644 --- a/databases/openldap/Makefile +++ b/databases/openldap/Makefile @@ -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 @@ PTHREAD_OPTS+= require 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 |