Alien-FFI
view release on metacpan or search on metacpan
$ret;
});
requires 'Path::Tiny' => '0.077';
patch sub {
my($build) = @_;
my $libffi_pc = Path::Tiny->new('libffi.pc.in');
if(-f $libffi_pc)
{
# I think the actual error is somewhere other
# than the .pc file, but this works around it
# at least in the way that we use it.
$build->log('edit libffi.pc.in');
$libffi_pc->copy('libffi.pc.in.orig');
$libffi_pc->edit_lines(sub {
s/^toolexeclibdir=.*$/toolexeclibdir=\${libdir\}/;
});
}
};
});
}
}
if($Config{archname} =~ /^aarch64-linux/)
{
# libffi 3.4.3 broke Linux Arm64
# https://github.com/PerlFFI/FFI-Platypus/issues/374
# For now not black listing it for other Arm64
# systems (like macOS) because I did not see the
# errors there.
meta->around_hook( prefer => sub {
my $orig = shift;
my $ret = $orig->(@_);
$ret->{list} = [
grep { $_->{version} ne '3.4.3' }
@{ $ret->{list} }
];
( run in 0.270 second using v1.01-cache-2.11-cpan-65fba6d93b7 )