Wietse Venema píše v čt 17. 11. 2011 v 15:41 -0500: > Pav Lucistnik: > > Wietse Venema p??e v ?t 17. 11. 2011 v 13:23 -0500: > > > Actually, a Postfix built-in default setting changed on 20110918. > > > > > > It now enables IPv6 unless this is turned off in a configuration > > > file. I can fix that at compile time, and thereby not trigger > > > the error on build systems with unexpected IPv6 configurations. > > > > This is interesting. > > > > The build jails are configured to have only IPv4 address on lo0, > > but the host have both IPv4 and IPv6 configured on its lo0. > > > > Changing the jail configuration is possible but if a reasonable > > workaround can be made in postfix-current port I'd prefer not to touch > > pointyhat configuration (unexpected consequences and all that...) > > I can competely fix this specific error instance with a one-line > config file change, but I don't want to end up in the same boat > again when some other program needs to be run during build time. > > A more proactive workaround would be to treat "protocol not supported" > as a non-fatal error, just like "address family not supported" is. > > Please let me know if this works in the build cluster. It will log > a warning but that should be justfied, because the system does have > an abnormal configuration.
Yes, this works on the build cluster.
Sahil, can I commit it to the port?
> Wietse
>
> *** src/util/inet_proto.c- Tue Jan 8 15:36:13 2008
> --- src/util/inet_proto.c Thu Nov 17 08:49:31 2011
> ***************
> *** 219,225 ****
> pf->dns_atype_list = make_unsigned_vector(3, T_A, T_AAAA, 0);
> pf->sa_family_list = make_uchar_vector(3, AF_INET, AF_INET6, 0);
> break;
> ! } else if (errno == EAFNOSUPPORT) {
> msg_warn("%s: IPv6 support is disabled: %m", context);
> msg_warn("%s: configuring for IPv4 support only", context);
> /* FALLTHROUGH */
> --- 219,225 ----
> pf->dns_atype_list = make_unsigned_vector(3, T_A, T_AAAA, 0);
> pf->sa_family_list = make_uchar_vector(3, AF_INET, AF_INET6, 0);
> break;
> ! } else if (errno == EAFNOSUPPORT || errno == EPROTONOSUPPORT) {
> msg_warn("%s: IPv6 support is disabled: %m", context);
> msg_warn("%s: configuring for IPv4 support only", context);
> /* FALLTHROUGH */
--
--
Pav Lucistnik <[email protected]>
<[email protected]>
Why does the Earth have colors?
signature.asc
Description: This is a digitally signed message part
