···11-From 597e73f2a4b2f0b508127931b36d5540d6941823 Mon Sep 17 00:00:00 200111+From ba458f33f335b217d078fdce56e9c6f9f93adb49 Mon Sep 17 00:00:00 200122From: Frederik Rietdijk <fridh@fridh.nl>33Date: Mon, 28 Aug 2017 09:24:06 +020044Subject: [PATCH] Don't use ldconfig5566---77- Lib/ctypes/util.py | 70 ++----------------------------------------------------88- 1 file changed, 2 insertions(+), 68 deletions(-)77+ Lib/ctypes/util.py | 78 ++--------------------------------------------88+ 1 file changed, 2 insertions(+), 76 deletions(-)991010diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py1111-index 5e8b31a854..7b45ce6c15 1006441111+index 0c2510e..79635a8 1006441212--- a/Lib/ctypes/util.py1313+++ b/Lib/ctypes/util.py1414-@@ -94,46 +94,7 @@ elif os.name == "posix":1515- import re, tempfile1414+@@ -100,54 +100,7 @@ elif os.name == "posix":1515+ return thefile.read(4) == elf_header16161717 def _findLib_gcc(name):1818- # Run GCC's linker with the -t (aka --trace) option and examine the···5151- # Raised if the file was already removed, which is the normal5252- # behaviour of GCC if linking fails5353- pass5454-- res = re.search(expr, trace)5454+- res = re.findall(expr, trace)5555- if not res:5656- return None5757-- return os.fsdecode(res.group(0))5757+-5858+- for file in res:5959+- # Check if the given file is an elf file: gcc can report6060+- # some files that are linker scripts and not actual6161+- # shared objects. See bpo-41976 for more details6262+- if not _is_elf(file):6363+- continue6464+- return os.fsdecode(file)6565+-5866+ return None59676060-6168 if sys.platform == "sunos5":6262-@@ -255,34 +216,7 @@ elif os.name == "posix":6969+ # use /usr/ccs/bin/dump on solaris7070+@@ -268,34 +221,7 @@ elif os.name == "posix":6371 else:64726573 def _findSoname_ldconfig(name):···10496 def _findLib_ld(name):10597 # See issue #9998 for why this is needed10698-- 107107-2.15.09999+2.30.0108100