diff -Nurd -x'*~' B-Hooks-EndOfScope-0.21.orig/t/10-test_without_vm_pure_pp.t B-Hooks-EndOfScope-0.21/t/10-test_without_vm_pure_pp.t
--- B-Hooks-EndOfScope-0.21.orig/t/10-test_without_vm_pure_pp.t	2016-05-25 14:34:49.000000000 -0400
+++ B-Hooks-EndOfScope-0.21/t/10-test_without_vm_pure_pp.t	2018-01-22 05:17:03.000000000 -0500
@@ -1,6 +1,7 @@
 use strict;
 use warnings;
 use Test::More 0.88;
+use Config;
 
 use B::Hooks::EndOfScope;
 
@@ -34,7 +35,21 @@
   next if $fn eq 't/00-report-prereqs.t';
 
   note "retesting $fn";
-  my @cmd = (
+  my @cmd;
+  if ($] >= 5.010 && $Config{"byteorder"} =~ /^1/) {
+      # little-endian means intel (not powerpc), for which fink has
+      # multiple single-arch distros that are seen by a single (fat)
+      # perl interp from apple for a perl version supported by fink
+      # (i.e., starting with 5.10.0). This is the logic taken from
+      # Fink::PkgVersion as of fink-0.29.13.
+      push @cmd, '/usr/bin/arch';
+      if ( $Config{"longsize"} == 4 ) {
+	  push @cmd, '-i386';   # 32-bit
+      } else {
+	  push @cmd, '-x86_64'; # 64-bit
+      }
+  }
+  push @cmd, (
     $^X,
     $has_dh ? '-MDevel::Hide=Variable::Magic' : (),
     $fn