Skip to content

Commit

Permalink
openldap-client: Fix FD_SETSIZE on SunOS 64-bit.
Browse files Browse the repository at this point in the history
The OS default is 64k but OpenLDAP sets a hardcoded limit of 4k.  Bump
PKGREVISION.
  • Loading branch information
jperkin committed May 2, 2019
1 parent 9d12d25 commit 01a9f8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion databases/openldap-client/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.26 2017/06/02 08:29:56 adam Exp $
# $NetBSD: Makefile,v 1.27 2019/05/02 10:59:13 jperkin Exp $

PKGNAME= ${DISTNAME:S/-/-client-/}
PKGREVISION= 1
COMMENT= Lightweight Directory Access Protocol libraries and client programs

CONFLICTS+= openldap<2.3.23nb1
Expand Down
7 changes: 6 additions & 1 deletion databases/openldap/Makefile.common
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.42 2018/12/20 17:54:09 adam Exp $
# $NetBSD: Makefile.common,v 1.43 2019/05/02 10:59:13 jperkin Exp $
#
# used by databases/openldap-client/Makefile
# used by databases/openldap-cloak/Makefile
Expand Down Expand Up @@ -100,6 +100,11 @@ PTH_FDSETSIZE_cmd= \
CPPFLAGS+= -DOPENLDAP_FD_SETSIZE=${PTH_FDSETSIZE_cmd:sh:Q}
.endif

# OpenLDAP hardcodes this to 4096, disregarding the OS default.
.if !empty(MACHINE_PLATFORM:MSunOS-*-x86_64)
CPPFLAGS+= -DOPENLDAP_FD_SETSIZE=65536
.endif

MAKE_FLAGS+= moduledir=${OPENLDAP_MODULEDIR}
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}

Expand Down

0 comments on commit 01a9f8b

Please sign in to comment.