On 2019/01/27 14:09, Andrew Hewus Fresh wrote: > In perl 5.26 and 5.28 you can set PERL_USE_UNSAFE_INC to a truthy value to > add the . back to @INC, so should be able to set a the appropriate ENV > argument in the Makefile instead of patching. > > https://perldoc.perl.org/perl5260delta.html#Removal-of-the-current-directory-(%22.%22)-from-%40INC
"this feature will likely be removed in some future perl version" Think I'd prefer to not store up extra work for the future as if this is removed later I bet half of the ports won't have been updated .. > On January 27, 2019 2:01:55 PM PST, Charlene Wendling <[email protected]> > wrote: > > > >Here is a diff to fix the Parallel::Prefork build with Perl 5.28. > > > >'make test' passes. > > > >Charlène. > > > >Index: Makefile > >=================================================================== > >RCS file: /cvs/ports/devel/p5-Parallel-Prefork/Makefile,v > >retrieving revision 1.7 > >diff -u -p -u -p -r1.7 Makefile > >--- Makefile 2 Sep 2016 23:00:15 -0000 1.7 > >+++ Makefile 27 Jan 2019 21:58:08 -0000 > >@@ -4,6 +4,7 @@ COMMENT = simple prefork server framewor > > > > DISTNAME = Parallel-Prefork-0.18 > > CATEGORIES = devel > >+REVISION = 0 > > > > # Perl > > PERMIT_PACKAGE_CDROM = Yes > >Index: patches/patch-Makefile_PL > >=================================================================== > >RCS file: patches/patch-Makefile_PL > >diff -N patches/patch-Makefile_PL > >--- /dev/null 1 Jan 1970 00:00:00 -0000 > >+++ patches/patch-Makefile_PL 27 Jan 2019 21:58:08 -0000 > >@@ -0,0 +1,10 @@ > >+$OpenBSD$ > >+Fix for perl 5.26.0+ (no . in @inc by default) > >+Index: Makefile.PL > >+--- Makefile.PL.orig > >++++ Makefile.PL > >+@@ -1,3 +1,4 @@ > >++BEGIN { push @INC, '.'; } > >+ use inc::Module::Install; > >+ > >+ all_from 'lib/Parallel/Prefork.pm'; > > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity.
