Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Sep 2012 22:24:37 +0200
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        Hajimu UMEMOTO <ume@FreeBSD.org>
Cc:        svn-ports-head@FreeBSD.org, Olli Hauer <ohauer@FreeBSD.org>, svn-ports-all@FreeBSD.org
Subject:   Re: svn commit: r303550 - in head: Mk devel/apr1 devel/apr1/files www/apache22 www/apache22-event-mpm www/apache22-itk-mpm www/apache22-peruser-mpm www/apache22-worker-mpm www/apache22/files
Message-ID:  <50451205.60508@FreeBSD.org>
In-Reply-To: <ygey5krjuu1.wl%ume@mahoroba.org>
References:  <201209021431.q82EVxjW017243@svn.freebsd.org> <yge1uijlc8u.wl%ume@mahoroba.org> <5044745F.9010903@gmx.de> <ygezk57jvsz.wl%ume@mahoroba.org> <50447ADD.3050108@gmx.de> <ygey5krjuu1.wl%ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-09-03 11:53, Hajimu UMEMOTO wrote:
> Hi,
> 
>>>>>> On Mon, 03 Sep 2012 11:39:41 +0200
>>>>>> olli hauer <ohauer@gmx.de> said:
> 
> ohauer> On 2012-09-03 11:32, Hajimu UMEMOTO wrote:
>> Hi,
>>
>>>>>>> On Mon, 03 Sep 2012 11:11:59 +0200
>>>>>>> olli hauer <ohauer@gmx.de> said:
>>
>>> I used to specify WITHOUT_IPV6=YES in my /etc/make.conf.  But, now, it
>>> is no effect.  I tried apache22_SET+=IPV6_V6ONLY and
>>> OPTIONS_SET+=IPV6_V6ONLY without success.
>>> Any idea?
>>
>> ohauer> If you had until now WITHOUT_IPV6 in your make.conf, then you have to specify now
>> ohauer> (Do you really want to build for IPv4 only?)
>>
>> ohauer> apache22_SET+=IPV4_ONLY
>> ohauer> apache22_UNSET+=IPV6
>>
>> ohauer> The dedicated SET and UNSET is needed since I convert the three command args into
>> ohauer> a OPTIONS_MULTI directive.
>>
>> Oops, I mean WITH_IPV6_V6ONLY=YES.  I did copy&paste accidentally. X-(
>> There was the knob.  But, it was not in OPTIONS.
>>
> 
> ohauer> This is more or less the same, just unset IPV6 (which is set per default) and the set IPV6_ONLY
> 
> ohauer> apache22_UNSET+=IPV6
> ohauer> apache22_SET+=IPV6_ONLY
> 
> ohauer> This should work now even on a IPv6 only machine (Kernel build with IPv6 support only) with the help
> ohauer> of the extra-patch-server__config.c patch (provided by Curtis Villamizar)
> 
> ohauer> One correction, the INET binding was converted to an OPTIONS_SINGLE and not MULTI directive.
> 
> No, I don't want to disable IPv4 (IPV6_ONLY) but want to disable use
> of IPv4-mapped IPv6 address (IPV6_V6ONLY).
> I wish to specify the option for the following lines in
> Makefile.modules
> 
> .  if ${PORT_OPTIONS:MIPV6_V6ONLY}
> CONFIGURE_ARGS+=	--disable-v4-mapped
> .  else
> CONFIGURE_ARGS+=	--enable-v4-mapped
> .  endif
> 
> BTW, I cannot see ${PORT_OPTIONS:MIPV6_ONLY} nor
> ${PORT_OPTIONS:MIPV4_ONLY} in Makefile*.


Bingo, you found the last remaining APR build option which I have overseen!

The build options "--disable-ipv6" is a APR only parameter and can be removed completely.

I will replace the options IPV6, IPV6_ONLY and IPV4_ONLY with IPV4_MAPPED which reflects the parameter name (only one option)

The fix can be committed without PORTREVISION bump, the default "--enable-v4-mapped" will not change.

Btw. with your hint I found an error in the Apache manuals on the bind.html page

Thanks for your report, and sorry for the delay!

--
Regards,
olli






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