From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: tarantool-patches@dev.tarantool.org, alexander.turenko@tarantool.org
Subject: [Tarantool-patches] [PATCH v1] static-build: use hashes of downloaded files
Date: Wed, 27 Jan 2021 19:37:01 +0300 [thread overview]
Message-ID: <4a34a0310b2529d4d85c534eb05802b0d7076c9b.1611765145.git.sergeyb@tarantool.org> (raw)
From: Sergey Bronnikov <sergeyb@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
next reply other threads:[~2021-01-27 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-27 16:37 Sergey Bronnikov via Tarantool-patches [this message]
2021-01-27 18:26 ` Alexander Turenko via Tarantool-patches
2021-01-27 22:19 ` Sergey Bronnikov via Tarantool-patches
2021-01-29 14:42 ` Kirill Yukhin via Tarantool-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4a34a0310b2529d4d85c534eb05802b0d7076c9b.1611765145.git.sergeyb@tarantool.org \
--to=tarantool-patches@dev.tarantool.org \
--cc=alexander.turenko@tarantool.org \
--cc=sergeyb@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH v1] static-build: use hashes of downloaded files' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox