From 185954266bdf59587d25335963ec5071c216c21b Mon Sep 17 00:00:00 2001
From: Joe Garcia <joe.garcia@ssec.wisc.edu>
Date: Tue, 20 Apr 2021 08:35:05 -0500
Subject: [PATCH] one more fix for linux

---
 ShellB3/sb3bin/thosewhohuntelfs.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ShellB3/sb3bin/thosewhohuntelfs.py b/ShellB3/sb3bin/thosewhohuntelfs.py
index 93e68901..cd6c730d 100755
--- a/ShellB3/sb3bin/thosewhohuntelfs.py
+++ b/ShellB3/sb3bin/thosewhohuntelfs.py
@@ -442,6 +442,8 @@ def ldd(path,elvish=True,forbiddenlibs=[]):
             if len(tmp)>0:
                 printerr('@'*32 + 'Binary '+path+' links to forbidden library '+lib)
             uhoh += tmp
+        if platform.machine()=="aarch64" and os.path.basename(os.path.dirname(path)) in ('amd64','x86'):
+            return 0 #don't care. this binary is probably the wrong hardware
     else:
         pid= sp.Popen(['otool','-L',path], env=clean_env(), stdout=sp.PIPE, stderr=sp.PIPE)
 
-- 
GitLab