diff --git a/auditwheel/policy/__init__.py b/auditwheel/policy/__init__.py index d4ef8a52..786d0bc3 100644 --- a/auditwheel/policy/__init__.py +++ b/auditwheel/policy/__init__.py @@ -17,8 +17,10 @@ _PLATFORM_REPLACEMENT_MAP = { 'manylinux1_x86_64': ['linux_x86_64'], 'manylinux2010_x86_64': ['linux_x86_64'], + 'manylinux2014_x86_64': ['linux_x86_64'], 'manylinux1_i686': ['linux_i686'], 'manylinux2010_i686': ['linux_i686'], + 'manylinux2014_i686': ['linux_i686'], } diff --git a/auditwheel/policy/policy.json b/auditwheel/policy/policy.json index 9526ccec..1528d687 100644 --- a/auditwheel/policy/policy.json +++ b/auditwheel/policy/policy.json @@ -40,6 +40,32 @@ "GCC": ["3.0", "3.3", "3.3.1", "3.4", "3.4.2", "3.4.4", "4.0.0", "4.2.0", "4.3.0", "4.4.0", "4.5.0"] }, + "lib_whitelist": [ + "libgcc_s.so.1", + "libstdc++.so.6", + "libm.so.6", "libdl.so.2", "librt.so.1", + "libc.so.6", "libnsl.so.1", "libutil.so.1", "libpthread.so.0", + "libX11.so.6", "libXext.so.6", "libXrender.so.1", "libICE.so.6", + "libSM.so.6", "libGL.so.1", "libgobject-2.0.so.0", + "libgthread-2.0.so.0", "libglib-2.0.so.0", "libresolv.so.2" + ]}, + {"name": "manylinux2014", + "priority": 80, + "symbol_versions": { + "GLIBC": ["2.0", "2.1", "2.1.1", "2.1.2", "2.1.3", "2.2", "2.2.1", + "2.2.2", "2.2.3", "2.2.4", "2.2.5", "2.2.6", "2.3", "2.3.2", + "2.3.3", "2.3.4", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", + "2.10", "2.11", "2.12", "2.13", "2.14", "2.15", "2.16", + "2.17"], + "CXXABI": ["1.3", "1.3.1", "1.3.2", "1.3.3", "1.3.4", "1.3.5", + "1.3.6", "1.3.7", "TM_1"], + "GLIBCXX": ["3.4", "3.4.1", "3.4.2", "3.4.3", "3.4.4", "3.4.5", + "3.4.6", "3.4.7", "3.4.8", "3.4.9", "3.4.10", "3.4.11", + "3.4.12", "3.4.13", "3.4.14", "3.4.15", "3.4.16", + "3.4.17", "3.4.18", "3.4.19"], + "GCC": ["3.0", "3.3", "3.3.1", "3.4", "3.4.2", "3.4.4", "4.0.0", + "4.2.0", "4.3.0", "4.4.0", "4.5.0", "4.7.0", "4.8.0"] + }, "lib_whitelist": [ "libgcc_s.so.1", "libstdc++.so.6", diff --git a/scripts/calculate_symbol_versions.py b/scripts/calculate_symbol_versions.py index 6b33e241..7020573c 100644 --- a/scripts/calculate_symbol_versions.py +++ b/scripts/calculate_symbol_versions.py @@ -41,7 +41,12 @@ def find_library(library): def versionify(version_string): - return [int(n) for n in version_string.split('.')] + try: + result = [int(n) for n in version_string.split('.')] + assert len(result) <= 3 + except ValueError: + result = [999999, 999999, 999999, version_string] + return result def calculate_symbol_versions(libraries, symbol_versions, arch):