From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp57.i.mail.ru (smtp57.i.mail.ru [217.69.128.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 0A81D42EF5C for ; Fri, 26 Jun 2020 17:22:35 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Fri, 26 Jun 2020 17:22:33 +0300 Message-Id: Subject: [Tarantool-patches] [PATCH v1 1/6] build: static build needs more cleanup in sources List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kirill Yukhin , Alexander Turenko Cc: tarantool-patches@dev.tarantool.org Building Tarantool sources on make command run may fail with: [ 10%] make[2]: *** [test/small] Error 1 [ 10%] make[1]: *** [test/CMakeFiles/symlink_small_tests.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... The root cause of the issue that Dockerfile.staticbuild uses local copy of sources: COPY . /tarantool Which may have broken links in tests, like: $ ls -al test ... luajit-tap -> //third_party/luajit/test small -> //src/lib/small/test/ ... To fix the issue this links should be removed from the docker local copy of sources before build, like: rm -rf test/small test/luajit-tap Closes #5025 --- Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4874-out-of-source-build-full-ci Issue: https://github.com/tarantool/tarantool/issues/5025 Dockerfile.staticbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.staticbuild b/Dockerfile.staticbuild index 253f2d5e9..f67f46f5e 100644 --- a/Dockerfile.staticbuild +++ b/Dockerfile.staticbuild @@ -75,7 +75,7 @@ RUN set -x && \ RUN set -x && \ find . -name 'CMakeFiles' -type d -exec rm -rf {} + && \ find . -name 'CMakeCache.txt' -type f -delete && \ - rm -rf build + rm -rf build test/small test/luajit-tap RUN pip install -r /tarantool/test-run/requirements.txt -- 2.17.1