PragmaTwice opened a new pull request, #3257: URL: https://github.com/apache/kvrocks/pull/3257
This patch adds a new cmake variable `DEPS_FETCH_DIR`: - fetched dependence archives will be put to this dir; - if the archive file in this dir exists, downloading phase will be skipped. Hence this patch enables "offline building" of kvrocks. Steps for offline building: 1. in an online environment, fetch kvrocks source repo and run cmake with `-DDEPS_FETCH_DIR=<dep-dir>`. 2. copy kvrocks source code along with `build/<dep-dir>` to a offline environment. 3. in the offline environment, build kvrocks with `-DDEPS_FETCH_DIR=<dep-dir>`. An example of files in the dep dir: ```sh $ ll build/deps total 40M -rw-r--r-- 1 twice twice 559K Nov 11 18:44 cpptrace-v1.0.3.zip -rw-r--r-- 1 twice twice 747K Nov 11 18:43 fmt-12.1.0.zip -rw-r--r-- 1 twice twice 1.1M Nov 11 18:42 gtest-v1.17.0.zip -rw-r--r-- 1 twice twice 958K Nov 11 18:42 jemalloc-5.3.0.zip -rw-r--r-- 1 twice twice 2.2M Nov 11 18:43 jsoncons-v1.4.3.zip -rw-r--r-- 1 twice twice 904K Nov 11 18:43 libevent-release-2.1.12-stable.zip -rw-r--r-- 1 twice twice 1.2M Nov 11 18:44 luajit-c0a8e68325ec261a77bde1c8eabad398168ffe74.zip -rw-r--r-- 1 twice twice 479K Nov 11 18:42 lz4-v1.10.0.zip -rw-r--r-- 1 twice twice 460K Nov 11 18:43 pegtl-3.2.8.zip -rw-r--r-- 1 twice twice 1015K Nov 11 18:44 rangev3-0.12.0.zip -rw-r--r-- 1 twice twice 15M Nov 11 18:43 rocksdb-v10.6.2.zip -rw-r--r-- 1 twice twice 1.2M Nov 11 18:42 snappy-1.2.2-rtti.zip -rw-r--r-- 1 twice twice 70K Nov 11 18:43 span-v0.11.0.zip -rw-r--r-- 1 twice twice 355K Nov 11 18:43 spdlog-v1.16.0.zip -rw-r--r-- 1 twice twice 7.4M Nov 11 18:43 tbb-v2022.3.0.zip -rw-r--r-- 1 twice twice 98K Nov 11 18:43 trie-906e6abd1e7063f1dacd3a6b270aa654b525eb0a.zip -rw-r--r-- 1 twice twice 1.2M Nov 11 18:43 xxhash-v0.8.3.zip -rw-r--r-- 1 twice twice 2.5M Nov 11 18:42 zlib-2.2.4.zip -rw-r--r-- 1 twice twice 2.7M Nov 11 18:43 zstd-v1.5.7.zip ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
