From d9fb47458fa5fae5a974ef37662a929f48b88064 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 2 Jan 2023 12:36:14 +0100 Subject: [PATCH] Exclude cargo shared libraries from the artifacts Signed-off-by: Azat Khuzhin --- docker/packager/binary/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/packager/binary/build.sh b/docker/packager/binary/build.sh index 436fcbe921c..5e31f1e1702 100755 --- a/docker/packager/binary/build.sh +++ b/docker/packager/binary/build.sh @@ -107,8 +107,11 @@ fi mv ./programs/clickhouse* /output [ -x ./programs/self-extracting/clickhouse ] && mv ./programs/self-extracting/clickhouse /output mv ./src/unit_tests_dbms /output ||: # may not exist for some binary builds -find . -name '*.so' -print -exec mv '{}' /output \; -find . -name '*.so.*' -print -exec mv '{}' /output \; + +# Exclude cargo build directory since it may have some shared libraries +# (even though they are not required for the clickhouse binary) +find . -name '*.so' -not -path '*/cargo/*' -print -exec mv '{}' /output \; +find . -name '*.so.*' -not -path '*/cargo/*' -print -exec mv '{}' /output \; prepare_combined_output () { local OUTPUT