spamassassin: enable IPv6 support with Socket6

Communication between spamc and spamd would fail with messages about
addresses being too long:

  error: Bad arg length for Socket::unpack_sockaddr_in, length is 28,
  should be 16

By adding Socket6 as a buildInput, spamd is now able to process emails
without choking on IPv6 addresses.
This commit is contained in:
Erlend Pedersen 2019-11-30 13:58:15 +01:00
parent ad3c49da0e
commit 6e87213291

View File

@ -13,7 +13,8 @@ perlPackages.buildPerlPackage rec {
patches = [ ./sa-update_add--siteconfigpath.patch ];
buildInputs = [ makeWrapper ] ++ (with perlPackages; [ HTMLParser NetDNS NetAddrIP DBFile HTTPDate MailDKIM
LWP IOSocketSSL DBI EncodeDetect IPCountry NetIdent Razor2ClientAgent MailSPF NetDNSResolverProgrammable ]);
LWP IOSocketSSL DBI EncodeDetect IPCountry NetIdent Razor2ClientAgent MailSPF NetDNSResolverProgrammable
Socket6 ]);
# Enabling 'taint' mode is desirable, but that flag disables support
# for the PERL5LIB environment variable. Needs further investigation.