Skip to content

Commit

Permalink
devel/p5-AnyEvent-Subprocess: add small fix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Eugene Grosbein authored and Eugene Grosbein committed Jun 21, 2022
1 parent 40568ca commit d91a085
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion devel/p5-AnyEvent-Subprocess/Makefile
Expand Up @@ -2,7 +2,7 @@

PORTNAME= AnyEvent-Subprocess
PORTVERSION= 1.102912
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
Expand Down
@@ -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;

0 comments on commit d91a085

Please sign in to comment.