diff options
| author | J0WI <J0WI@users.noreply.github.com> | 2020-05-02 16:22:46 +0200 |
|---|---|---|
| committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-05-03 22:57:46 +0200 |
| commit | 4cdd6d7cc182e7f67702e47cbc112aea23773a83 (patch) | |
| tree | fb34f4e2339ebdda0666e2c9a4d077e2353bda3f /community/python2-tkinter/musl-find_library.patch | |
| parent | 2d581491bd79267f082d6f47f3b6085a7ebfacbd (diff) | |
| download | aports-4cdd6d7cc182e7f67702e47cbc112aea23773a83.tar.bz2 aports-4cdd6d7cc182e7f67702e47cbc112aea23773a83.tar.xz | |
community/python2-tkinter: remove aport
Orphaned package, removing in favor of python3-tkinter
Diffstat (limited to 'community/python2-tkinter/musl-find_library.patch')
| -rw-r--r-- | community/python2-tkinter/musl-find_library.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/community/python2-tkinter/musl-find_library.patch b/community/python2-tkinter/musl-find_library.patch deleted file mode 100644 index 7899abb736..0000000000 --- a/community/python2-tkinter/musl-find_library.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff -ru Python-2.7.12.orig/Lib/ctypes/util.py Python-2.7.12/Lib/ctypes/util.py ---- Python-2.7.12.orig/Lib/ctypes/util.py 2016-06-26 00:49:30.000000000 +0300 -+++ Python-2.7.12/Lib/ctypes/util.py 2016-11-03 16:05:46.954665040 +0200 -@@ -204,6 +204,41 @@ - def find_library(name, is64 = False): - return _get_soname(_findLib_crle(name, is64) or _findLib_gcc(name)) - -+ elif True: -+ -+ # Patched for Alpine Linux / musl - search manually system paths -+ def _is_elf(filepath): -+ try: -+ with open(filepath, 'rb') as fh: -+ return fh.read(4) == b'\x7fELF' -+ except: -+ return False -+ -+ def find_library(name): -+ from glob import glob -+ # absolute name? -+ if os.path.isabs(name): -+ return name -+ # special case for libm, libcrypt and libpthread and musl -+ if name in ['m', 'crypt', 'pthread']: -+ name = 'c' -+ elif name in ['libm.so', 'libcrypt.so', 'libpthread.so']: -+ name = 'libc.so' -+ # search in standard locations (musl order) -+ paths = ['/lib', '/usr/local/lib', '/usr/lib'] -+ if 'LD_LIBRARY_PATH' in os.environ: -+ paths = os.environ['LD_LIBRARY_PATH'].split(':') + paths -+ for d in paths: -+ f = os.path.join(d, name) -+ if _is_elf(f): -+ return os.path.basename(f) -+ -+ prefix = os.path.join(d, 'lib'+name) -+ for suffix in ['.so', '.so.*']: -+ for f in glob('{0}{1}'.format(prefix, suffix)): -+ if _is_elf(f): -+ return os.path.basename(f) -+ - else: - - def _findSoname_ldconfig(name): |
