Hello, I just upgrade from postgrey 1.36 to 1.37 and while restarting the service I got this error: Nov 9 20:05:27 freebsd postgrey[59233]: FATAL: Can't locate IO/Socket/INET6.pm in @INC (you may need to install the IO::Socket::INET6 module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.24 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.24/mach /usr/local/lib/perl5/5.24) at /usr/local/lib/perl5/site_perl/Net/Server/Proto.pm line 122. I had to install: "p5-IO-Socket-INET6" to solve the issue. Best Regards, Olivier
The error message shows the failed include happens in Net/Server/Proto.pm. In this case, it's a require that happens only when the host given isn't a bare port or IPv4 address. The common use cases with postgrey are unix sockets and localhost, so this was a bug simply not hit until now. The workaround is to manually install net/p5-IO-Socket-INET6; however, adding it as a dependency for postgrey would not be correct. The correct fix is to add net/p5-IO-Socket-INET6 as a dependency to net/p5-Net-Server. I've added the maintainer (perl@freebsd.org) to the CC list.
Patch to net/p5-Net-Server submitted in bug #214826
@Melissa Thank you for the fix
Thanks Melissa! I confirm problem is solved: net/p5-IO-Socket-INET6 is installed automatically when I install p5-Net-Server.