Mailing List Archive

OpebBSD port of Varnish
Hello list

while attempting to build Varnish on OpenBSD-current I stumbled across
one tiny and a larger issue at ompile time:

1. varnish-1.0.1/lib/libvarnish/cli_common.c requires an additional
#include <sys/types.h>
before
#include <sys/uio.h>

With this tiny issue out of the way, the next one appears to be more
substantial:

2. varnish-1.0.1/lbin/varnishd/cache_acceptor_kqueue.c makes use of
the kevent filter EVFILT_TIMER which is apparently not supported in
OpenBSD.
Unfortunately, I am not fluent enough a kernel programmer to
paraphrase this kevent into an OpenBSD equivalent without considerable
effort up front.

Do you intend to increase portability and add support beyond Linux and
FreeBSD anyway?

I am looking forward to test Varnish under OpenBSD on i386, sparc and
sparc64 archs, and eventually to maintain an OpenBSD port/package.
Thank you for making Varnish available.

Regards,
Rolf
OpebBSD port of Varnish [ In reply to ]
"Rolf Sommerhalder" <rolf.sommerhalder at alumni.ethz.ch> writes:
> 2. varnish-1.0.1/lbin/varnishd/cache_acceptor_kqueue.c makes use of
> the kevent filter EVFILT_TIMER which is apparently not supported in
> OpenBSD.
> Unfortunately, I am not fluent enough a kernel programmer to
> paraphrase this kevent into an OpenBSD equivalent without considerable
> effort up front.

Without EVFILT_TIMER, much of the point of using kqueue is gone. I'd
suggest you try to lobby the OpenBSD developers to update their kqueue
implementation (FreeBSD has had EVFILT_TIMER for over five years).

> Do you intend to increase portability and add support beyond Linux and
> FreeBSD anyway?

I'm afraid it isn't high on our priority list. We primarily target
the systems we use ourselves (FreeBSD 6 and 7, Ubuntu, RHEL / CentOS)

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no