Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2017 20:52:13 +0000
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        Boris Samorodov <bsam@passap.ru>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r438592 - in head/www/nginx-devel: . files
Message-ID:  <20170415205213.GK85682@FreeBSD.org>
In-Reply-To: <a4ba8140-d31f-03a0-133d-76ba16537fc9@passap.ru>
References:  <201704151739.v3FHdat1041522@repo.freebsd.org> <a4ba8140-d31f-03a0-133d-76ba16537fc9@passap.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Boris,

hope you're doing well.

On Sat, Apr 15, 2017 at 08:59:06PM +0300, Boris Samorodov wrote:
> 15.04.2017 20:39, Sergey A. Osokin пишет:
> > Author: osa
> > Date: Sat Apr 15 17:39:35 2017
> > New Revision: 438592
> > URL:https://svnweb.freebsd.org/changeset/ports/438592
> > 
> > Log:
> >    Remove IPV6 knob, IPv6 now compiled-in automatically if support is found.
> 
> Hm. This ties the decision of if the IPv6 exists/desired at target host
> to the build host. Is it really intentional?

Good question!

Original commit: http://hg.nginx.org/nginx/rev/a6d116645c51

The configure option `--with-ipv6' isn't avaliable anymore, so it's been removed
from nginx-devel/Makefile too.

According to nginx-1.12.0/auto/unix, the nginx tests the IPv6 feature this way:

# RFC 3542 way to get IPv6 datagram destination address

ngx_feature="IPV6_RECVPKTINFO"
ngx_feature_name="NGX_HAVE_IPV6_RECVPKTINFO"
ngx_feature_run=no
ngx_feature_incs="#include <sys/socket.h>
                  #include <netinet/in.h>"
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test="setsockopt(0, IPPROTO_IPV6, IPV6_RECVPKTINFO, NULL, 0)"
. auto/feature

A GENERIC kernel contains the INET6 option and both header files are available,
so, on default FreeBSD installation compiles an nginx with IPv6 support
by default.

-- 
Sergey A. Osokin
osa@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170415205213.GK85682>