Received: by mail.netbsd.org (Postfix, from userid 605) id 1BD0084F3A; Wed, 22 Jun 2022 13:30:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5375084F2F for ; Wed, 22 Jun 2022 13:30:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id qHgHS9avMzn1 for ; Wed, 22 Jun 2022 13:30:50 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id C1EE884F24 for ; Wed, 22 Jun 2022 13:30:50 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 80FFFFB1A; Wed, 22 Jun 2022 13:32:49 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1655904769271420" MIME-Version: 1.0 Date: Wed, 22 Jun 2022 13:32:49 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/databases To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20220622133249.80FFFFB1A@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1655904769271420 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: taca Date: Wed Jun 22 13:32:49 UTC 2022 Modified Files: pkgsrc/databases/openldap-server: Makefile Added Files: pkgsrc/databases/openldap/patches: patch-servers_slapd_daemon.c Log Message: databases/openldap-server: fix runtime problem of slapd Apply fix for slapd from upstream (gitlab commit): ITS#9847 slapd: fix kqueue for FreeBSD/MacOSX/OpenBSD. Without this fix, slapd dose not reply properly. Bump PKGREVISION. To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 pkgsrc/databases/openldap-server/Makefile cvs rdiff -u -r0 -r1.1 \ pkgsrc/databases/openldap/patches/patch-servers_slapd_daemon.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1655904769271420 Content-Disposition: inline Content-Length: 1640 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/databases/openldap-server/Makefile diff -u pkgsrc/databases/openldap-server/Makefile:1.61 pkgsrc/databases/openldap-server/Makefile:1.62 --- pkgsrc/databases/openldap-server/Makefile:1.61 Tue Oct 12 09:10:05 2021 +++ pkgsrc/databases/openldap-server/Makefile Wed Jun 22 13:32:49 2022 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.61 2021/10/12 09:10:05 adam Exp $ +# $NetBSD: Makefile,v 1.62 2022/06/22 13:32:49 taca Exp $ PKGNAME= ${DISTNAME:S/-/-server-/} +PKGREVISION= 1 COMMENT= Lightweight Directory Access Protocol server suite CONFLICTS+= openldap<2.3.23nb1 Added files: Index: pkgsrc/databases/openldap/patches/patch-servers_slapd_daemon.c diff -u /dev/null pkgsrc/databases/openldap/patches/patch-servers_slapd_daemon.c:1.1 --- /dev/null Wed Jun 22 13:32:49 2022 +++ pkgsrc/databases/openldap/patches/patch-servers_slapd_daemon.c Wed Jun 22 13:32:49 2022 @@ -0,0 +1,21 @@ +$NetBSD: patch-servers_slapd_daemon.c,v 1.1 2022/06/22 13:32:49 taca Exp $ + +Apply fix from openldap's gitlab : +ITS#9847 slapd: fix kqueue for FreeBSD/MacOSX/OpenBSD + +--- servers/slapd/daemon.c.orig 2022-05-04 14:55:23.000000000 +0000 ++++ servers/slapd/daemon.c +@@ -227,11 +227,10 @@ static slap_daemon_st *slap_daemon; + slap_daemon[t].sd_kq = kqueue(); \ + } while (0) + +-/* a kqueue fd obtained before a fork can't be used in child process. +- * close it and reacquire it. ++/* a kqueue fd obtained before a fork isn't inherited by child process. ++ * reacquire it. + */ + # define SLAP_SOCK_INIT2() do { \ +- close(slap_daemon[0].sd_kq); \ + slap_daemon[0].sd_kq = kqueue(); \ + } while (0) + --_----------=_1655904769271420--