Bug 214364 - mail/postgrey: p5-IO-Socket-INET6 dependency missing
Summary: mail/postgrey: p5-IO-Socket-INET6 dependency missing
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Wen Heping
URL:
Keywords:
Depends on: 214826
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-09 19:12 UTC by OlivierW
Modified: 2016-11-25 17:55 UTC (History)
3 users (show)

See Also:
ports.maintainer: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description OlivierW 2016-11-09 19:12:46 UTC
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
Comment 1 ports.maintainer 2016-11-11 06:47:50 UTC
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.
Comment 2 ports.maintainer 2016-11-25 12:34:22 UTC
Patch to net/p5-Net-Server submitted in bug #214826
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2016-11-25 12:38:32 UTC
@Melissa Thank you for the fix
Comment 4 OlivierW 2016-11-25 17:55:20 UTC
Thanks Melissa!
I confirm problem is solved: net/p5-IO-Socket-INET6 is installed automatically when I install p5-Net-Server.