From b7c4854d83a21513fa34b20e428c44b3a71c9b39 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 30 Nov 2023 13:49:28 +0100 Subject: [PATCH] Build only libzim dependencies on bionic. We compile only libzim on bionic, for compatibility with old libc. No need to compile all other dependencies (and fight with some of them not compiling) --- kiwixbuild/dependencies/all_dependencies.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiwixbuild/dependencies/all_dependencies.py b/kiwixbuild/dependencies/all_dependencies.py index f2bfd46..09f29b3 100644 --- a/kiwixbuild/dependencies/all_dependencies.py +++ b/kiwixbuild/dependencies/all_dependencies.py @@ -1,3 +1,5 @@ +from os import environ + from .base import ( Dependency, NoopSource, @@ -12,7 +14,7 @@ class AllBaseDependencies(Dependency): class Builder(NoopBuilder): @classmethod def get_dependencies(cls, platformInfo, allDeps): - if platformInfo.build == "wasm": + if platformInfo.build == "wasm" or environ.get('OS_NAME') == 'bionic': return ['zlib', 'lzma', 'zstd', 'icu4c', 'xapian-core'] base_deps = ['zlib', 'lzma', 'zstd', 'xapian-core', 'pugixml', 'libcurl', 'icu4c', 'mustache', 'libmicrohttpd', 'zim-testing-suite']