pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases openldap-client: Fix FD_SETSIZE on SunOS 64-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/98bae99e347e
branches:  trunk
changeset: 323033:98bae99e347e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu May 02 10:59:13 2019 +0000

description:
openldap-client: Fix FD_SETSIZE on SunOS 64-bit.

The OS default is 64k but OpenLDAP sets a hardcoded limit of 4k.  Bump
PKGREVISION.

diffstat:

 databases/openldap-client/Makefile |  3 ++-
 databases/openldap/Makefile.common |  7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 1246b861db98 -r 98bae99e347e databases/openldap-client/Makefile
--- a/databases/openldap-client/Makefile        Thu May 02 10:11:09 2019 +0000
+++ b/databases/openldap-client/Makefile        Thu May 02 10:59:13 2019 +0000
@@ -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
diff -r 1246b861db98 -r 98bae99e347e databases/openldap/Makefile.common
--- a/databases/openldap/Makefile.common        Thu May 02 10:11:09 2019 +0000
+++ b/databases/openldap/Makefile.common        Thu May 02 10:59:13 2019 +0000
@@ -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
@@ -100,6 +100,11 @@
 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}
 



Home | Main Index | Thread Index | Old Index