Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1] static-build: use hashes of downloaded files
@ 2021-01-27 16:37 Sergey Bronnikov via Tarantool-patches
  2021-01-27 18:26 ` Alexander Turenko via Tarantool-patches
  2021-01-29 14:42 ` Kirill Yukhin via Tarantool-patches
  0 siblings, 2 replies; 4+ messages in thread
From: Sergey Bronnikov via Tarantool-patches @ 2021-01-27 16:37 UTC (permalink / raw)
  To: tarantool-patches, alexander.turenko

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-29 14:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27 16:37 [Tarantool-patches] [PATCH v1] static-build: use hashes of downloaded files Sergey Bronnikov via Tarantool-patches
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox