pkgsrc-Bugs archive

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

pkg/52176: Update mail/dovecot2 to use "poll" instead of "kqueue" or "epoll"



>Number:         52176
>Category:       pkg
>Synopsis:       Update mail/dovecot2 to use "poll" instead of "kqueue" or "epoll"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 18 08:50:00 +0000 2017
>Originator:     Juraj Lutter
>Release:        master
>Organization:
>Environment:
SunOS nmailhub 5.11 joyent_20170330T015208Z i86pc i386 i86pc

>Description:
When running dovecot in joyent-branded zone (probably also in lx-branded one) we get:

Apr 15 22:52:17 nmailhub dovecot: [ID 583609 local3.crit] anvil: Fatal: epoll_create(): No such file or directory
Apr 15 22:52:17 nmailhub dovecot: [ID 583609 local3.error] master: Error: service(anvil): command startup failed, throttling for 2 secs

Either epoll is not available or mail/dovecot2 does detect it wrong.

>How-To-Repeat:
Run mail/dovecot2 in joyent-branded zone.
>Fix:
Build with this patch applied:

diff --git a/mail/dovecot2/options.mk b/mail/dovecot2/options.mk
index dc0367e6d36..ade154a9f1f 100644
--- a/mail/dovecot2/options.mk
+++ b/mail/dovecot2/options.mk
@@ -1,7 +1,7 @@
 # $NetBSD: options.mk,v 1.10 2016/07/18 15:03:05 fhajny Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.dovecot
-PKG_SUPPORTED_OPTIONS= kqueue pam tcpwrappers
+PKG_SUPPORTED_OPTIONS= kqueue poll pam tcpwrappers
 PKG_OPTIONS_OPTIONAL_GROUPS= ssl
 PKG_OPTIONS_GROUP.ssl= gnutls ssl
 PKG_SUGGESTED_OPTIONS= pam ssl tcpwrappers
@@ -51,6 +51,16 @@ CONFIGURE_ARGS+=     --with-notify=kqueue
 .endif
 
 ###
+### poll support
+###
+.if !empty(PKG_OPTIONS:Mpoll)
+CONFIGURE_ARGS+=       --with-ioloop=poll
+CONFIGURE_ARGS+=       --with-notify=poll
+.else
+# use the defaults
+.endif
+
+###
 ### tcpwrappers support
 ###
 .if !empty(PKG_OPTIONS:Mtcpwrappers)



Home | Main Index | Thread Index | Old Index