* [Tarantool-patches] [PATCH v1 1/6] build: static build needs more cleanup in sources
@ 2020-06-26 14:22 Alexander V. Tikhonov
0 siblings, 0 replies; only message in thread
From: Alexander V. Tikhonov @ 2020-06-26 14:22 UTC (permalink / raw)
To: Kirill Yukhin, Alexander Turenko; +Cc: tarantool-patches
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 -> /<wrong path>/third_party/luajit/test
small -> /<wrong path>/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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-26 14:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-26 14:22 [Tarantool-patches] [PATCH v1 1/6] build: static build needs more cleanup in sources Alexander V. Tikhonov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox