Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2011 15:41:12 -0500 (EST)
From:      Wietse Venema <wietse@porcupine.org>
To:        pav@FreeBSD.org
Cc:        Wietse Venema <wietse@porcupine.org>, Sahil Tandon <sahil+freebsd-ports@tandon.net>, Renato Botelho <garga@FreeBSD.org>, Jase Thew <freebsd@beardz.net>, Kurt Jaeger <lists@opsec.eu>, freebsd-ports@FreeBSD.org, Chris Rees <utisoft@gmail.com>
Subject:   Re: "postfix-current" broken on amd64 platform
Message-ID:  <3SkvVw2ZYzzk2RT@spike.porcupine.org>
In-Reply-To: <1321560805.6735.15.camel@hood.oook.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

	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 */



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