Bug#896537: libmoosex-mungehas-perl: missing dependency on libtype-tiny-perl | libeval-closure-perl

Niko Tyni ntyni at debian.org
Sun Apr 22 09:02:05 BST 2018


Package: libmoosex-mungehas-perl
Version: 0.007-2
Severity: serious
User: debian-perl at lists.debian.org
Usertags: use-failure

This package is missing a dependency on libtype-tiny-perl:

 # perl -e 'use MooseX::MungeHas'
 Could not load Eval::TypeTiny at /usr/share/perl5/MooseX/MungeHas.pm line 24.
 BEGIN failed--compilation aborted at /usr/share/perl5/MooseX/MungeHas.pm line 24.
 Compilation failed in require at -e line 1.
 BEGIN failed--compilation aborted at -e line 1.

Looking at the code, libeval-closure should also do as an alternative:

        for my $backend (qw/ Eval::TypeTiny Eval::Closure /)
        {
                last if eval(
                        "require $backend; *eval_closure = \\&$backend\::eval_closure;"
                );
        }
        exists(&eval_closure)
                or croak "Could not load Eval::TypeTiny";

-- 
Niko Tyni   ntyni at debian.org



More information about the pkg-perl-maintainers mailing list