Created attachment 168323 [details] patch to remove version string warning With modern perl versions (I'm using 5.20), the included Storable module has a version number which is non-numeric. This results in every program written with the p5-forks module to emit this warning: Argument "2.49_01" isn't numeric in numeric ge (>=) at /usr/local/lib/perl5/site_perl/mach/5.20/forks.pm line 1570. The module itself has not been updated in a long time, but there is a proposed patch for this on the CPAN bug database at https://rt.cpan.org/Ticket/Display.html?id=102730 which is what I implement with this local patch in the port. The Debian project has done similar: https://anonscm.debian.org/cgit/pkg-perl/packages/libforks-perl.git/tree/debian/patches/storable-version-check
What about parsing it with the perl version module instead ?
This is the least invasive patch, in my opinion. Personally, I think this module should just require Storable > 2.45 since that version breaks the module, but I'm not in a position to do that.
because the man page says: use forks; #ALWAYS LOAD AS FIRST MODULE, if possible
A commit references this bug: Author: pi Date: Thu Mar 17 14:32:13 UTC 2016 New revision: 411284 URL: https://svnweb.freebsd.org/changeset/ports/411284 Log: devel/p5-forks: remove version string warning See https://rt.cpan.org/Ticket/Display.html?id=102730 and https://bugs.debian.org/780351 PR: 208087 Submitted by: Vick Khera <vivek@khera.org> Changes: head/devel/p5-forks/Makefile head/devel/p5-forks/files/ head/devel/p5-forks/files/patch-lib_forks.pm
Thanks, committed.