git: d91a0855b799 - main - devel/p5-AnyEvent-Subprocess: add small fix
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jun 2022 17:37:41 UTC
The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=d91a0855b7998f68c07134a387bad57ae7b513c1 commit d91a0855b7998f68c07134a387bad57ae7b513c1 Author: Eugene Grosbein <eugen@FreeBSD.org> AuthorDate: 2022-06-21 17:29:04 +0000 Commit: Eugene Grosbein <eugen@FreeBSD.org> CommitDate: 2022-06-21 17:37:28 +0000 devel/p5-AnyEvent-Subprocess: add small fix There is a bug in AnyEvent::Subprocess since 2015, which requires a one line patch and unfortunately the authors of AnyEvent::Subprocess still did not fix it. This bug produces a warning on resent versions of Moose during startup: Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref. at /usr/local/lib/perl5/site_perl/AnyEvent/Subprocess/Types.pm line 42. See also: https://github.com/zhmylove/pwsvpn Reported by: Sergei Zhmylove --- devel/p5-AnyEvent-Subprocess/Makefile | 2 +- .../files/patch-lib_AnyEvent_Subprocess_Types.pm | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/devel/p5-AnyEvent-Subprocess/Makefile b/devel/p5-AnyEvent-Subprocess/Makefile index 20acc8508e9c..07e659577c43 100644 --- a/devel/p5-AnyEvent-Subprocess/Makefile +++ b/devel/p5-AnyEvent-Subprocess/Makefile @@ -2,7 +2,7 @@ PORTNAME= AnyEvent-Subprocess PORTVERSION= 1.102912 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/devel/p5-AnyEvent-Subprocess/files/patch-lib_AnyEvent_Subprocess_Types.pm b/devel/p5-AnyEvent-Subprocess/files/patch-lib_AnyEvent_Subprocess_Types.pm new file mode 100644 index 000000000000..1dc8590a804b --- /dev/null +++ b/devel/p5-AnyEvent-Subprocess/files/patch-lib_AnyEvent_Subprocess_Types.pm @@ -0,0 +1,11 @@ +--- lib/AnyEvent/Subprocess/Types.pm.orig 2011-02-25 19:36:55 UTC ++++ lib/AnyEvent/Subprocess/Types.pm +@@ -39,7 +39,7 @@ coerce SubprocessCode, from ArrayRef[Str], via { + subtype CodeList, as ArrayRef[CodeRef]; + coerce CodeList, from CodeRef, via { [$_] }; + +-enum WhenToCallBack, qw/Readable Line/; ++enum WhenToCallBack, [qw/Readable Line/]; + + 1; +