[Tarantool-patches] [PATCH v1] static-build: use hashes of downloaded files
sergeyb at tarantool.org
sergeyb at tarantool.org
Wed Jan 27 19:37:01 MSK 2021
From: Sergey Bronnikov <sergeyb at tarantool.org>
Using hashes in ExternalProject_Add() [1] allows to avoid extra
downloads on rebuilds.
1. https://cmake.org/cmake/help/latest/module/ExternalProject.html
Closes #5761
---
Gitlab CI: https://gitlab.com/tarantool/tarantool/-/pipelines/247666614
Branch: ligurio/gh-5761-hashes
Issue: https://github.com/tarantool/tarantool/issues/5761
static-build/CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/static-build/CMakeLists.txt b/static-build/CMakeLists.txt
index 9a2f85052..39cb321d0 100644
--- a/static-build/CMakeLists.txt
+++ b/static-build/CMakeLists.txt
@@ -40,6 +40,7 @@ endif()
#
ExternalProject_Add(openssl
URL https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
+ URL_MD5 3f486f2f4435ef14b81814dbbc7b48bb
CONFIGURE_COMMAND <SOURCE_DIR>/config
CC=${CMAKE_C_COMPILER}
CXX=${CMAKE_CXX_COMPILER}
@@ -84,6 +85,7 @@ ExternalProject_Add(icu
#
ExternalProject_Add(zlib
URL https://zlib.net/zlib-${ZLIB_VERSION}.tar.gz
+ URL_MD5 1c9f62f0778697a09d36121ead88e08e
CONFIGURE_COMMAND env
CC=${CMAKE_C_COMPILER}
CFLAGS=${DEPENDENCY_CFLAGS}
@@ -99,6 +101,7 @@ ExternalProject_Add(zlib
#
ExternalProject_Add(ncurses
URL https://ftp.gnu.org/gnu/ncurses/ncurses-${NCURSES_VERSION}.tar.gz
+ URL_MD5 e812da327b1c2214ac1aed440ea3ae8d
CONFIGURE_COMMAND <SOURCE_DIR>/configure
CC=${CMAKE_C_COMPILER}
CXX=${CMAKE_CXX_COMPILER}
@@ -132,6 +135,7 @@ ExternalProject_Add(ncurses
#
ExternalProject_Add(readline
URL https://ftp.gnu.org/gnu/readline/readline-${READLINE_VERSION}.tar.gz
+ URL_MD5 7e6c1f16aee3244a69aba6e438295ca3
CONFIGURE_COMMAND <SOURCE_DIR>/configure
CC=${CMAKE_C_COMPILER}
CFLAGS=${DEPENDENCY_CFLAGS}
@@ -241,6 +245,7 @@ if (APPLE)
else()
ExternalProject_Add(unwind
URL https://download.savannah.nongnu.org/releases/libunwind/libunwind-${UNWIND_VERSION}.tar.gz
+ URL_MD5 f09b670de5db6430a3de666e6aed60e3
CONFIGURE_COMMAND <SOURCE_DIR>/configure
CC=${CMAKE_C_COMPILER}
CXX=${CMAKE_CXX_COMPILER}
--
2.25.1
More information about the Tarantool-patches
mailing list