Blame SOURCES/00010-2.7.13-binutils-no-dep.patch

556498
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
556498
index ab10ec5..923d1b7 100644
556498
--- a/Lib/ctypes/util.py
556498
+++ b/Lib/ctypes/util.py
556498
@@ -140,11 +140,15 @@ elif os.name == "posix":
556498
             # assuming GNU binutils / ELF
556498
             if not f:
556498
                 return None
556498
-            cmd = 'if ! type objdump >/dev/null 2>&1; then exit; fi;' \
556498
+            cmd = 'if ! type objdump >/dev/null 2>&1; then exit 10; fi;' \
556498
                   'objdump -p -j .dynamic 2>/dev/null "$1"'
556498
             proc = subprocess.Popen((cmd, '_get_soname', f), shell=True,
556498
                                     stdout=subprocess.PIPE)
556498
             [dump, _] = proc.communicate()
556498
+            if proc.returncode == 10:
556498
+                return os.path.basename(f) #  This is good for GLibc, I think,
556498
+                                           # and a dep on binutils is big (for
556498
+                                           # live CDs).
556498
             res = re.search(br'\sSONAME\s+([^\s]+)', dump)
556498
             if not res:
556498
                 return None