python37: 3.7.9 -> 3.7.10, fixup patches

authored by Martin Weinelt and committed by Frederik Rietdijk 92087cb1 04f43694

+21 -13
pkgs/development/interpreters/python/cpython/3.7/find_library.patch pkgs/development/interpreters/python/cpython/3.6/find_library.patch
+19 -11
pkgs/development/interpreters/python/cpython/3.7/no-ldconfig.patch
··· 1 - From 597e73f2a4b2f0b508127931b36d5540d6941823 Mon Sep 17 00:00:00 2001 1 + From ba458f33f335b217d078fdce56e9c6f9f93adb49 Mon Sep 17 00:00:00 2001 2 2 From: Frederik Rietdijk <fridh@fridh.nl> 3 3 Date: Mon, 28 Aug 2017 09:24:06 +0200 4 4 Subject: [PATCH] Don't use ldconfig 5 5 6 6 --- 7 - Lib/ctypes/util.py | 70 ++---------------------------------------------------- 8 - 1 file changed, 2 insertions(+), 68 deletions(-) 7 + Lib/ctypes/util.py | 78 ++-------------------------------------------- 8 + 1 file changed, 2 insertions(+), 76 deletions(-) 9 9 10 10 diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py 11 - index 5e8b31a854..7b45ce6c15 100644 11 + index 0c2510e..79635a8 100644 12 12 --- a/Lib/ctypes/util.py 13 13 +++ b/Lib/ctypes/util.py 14 - @@ -94,46 +94,7 @@ elif os.name == "posix": 15 - import re, tempfile 14 + @@ -100,54 +100,7 @@ elif os.name == "posix": 15 + return thefile.read(4) == elf_header 16 16 17 17 def _findLib_gcc(name): 18 18 - # Run GCC's linker with the -t (aka --trace) option and examine the ··· 51 51 - # Raised if the file was already removed, which is the normal 52 52 - # behaviour of GCC if linking fails 53 53 - pass 54 - - res = re.search(expr, trace) 54 + - res = re.findall(expr, trace) 55 55 - if not res: 56 56 - return None 57 - - return os.fsdecode(res.group(0)) 57 + - 58 + - for file in res: 59 + - # Check if the given file is an elf file: gcc can report 60 + - # some files that are linker scripts and not actual 61 + - # shared objects. See bpo-41976 for more details 62 + - if not _is_elf(file): 63 + - continue 64 + - return os.fsdecode(file) 65 + - 58 66 + return None 59 - 60 67 61 68 if sys.platform == "sunos5": 62 - @@ -255,34 +216,7 @@ elif os.name == "posix": 69 + # use /usr/ccs/bin/dump on solaris 70 + @@ -268,34 +221,7 @@ elif os.name == "posix": 63 71 else: 64 72 65 73 def _findSoname_ldconfig(name): ··· 96 104 def _findLib_ld(name): 97 105 # See issue #9998 for why this is needed 98 106 -- 99 - 2.15.0 107 + 2.30.0 100 108
+2 -2
pkgs/development/interpreters/python/cpython/default.nix
··· 222 222 else 223 223 ./3.7/fix-finding-headers-when-cross-compiling.patch 224 224 ) 225 - ] ++ optionals (isPy36 || isPy37) [ 225 + ] ++ optionals (isPy36) [ 226 226 # Backport a fix for ctypes.util.find_library. 227 - ./3.7/find_library.patch 227 + ./3.6/find_library.patch 228 228 ]; 229 229 230 230 postPatch = ''