From 1066eb1afd55dbc25dc8883ecf1eb9462cd0f65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 6 Dec 2020 14:50:33 +0100 Subject: tde_create_tarball: Add options to make tarballs reproducible independently of UMASK and time zone. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 7b6865d9e60d3220cecea027f227ab084f1a903c) --- modules/TDEMacros.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 79d4f25..b16c38d 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -2309,11 +2309,12 @@ macro( tde_create_tarball ) if( "${TAR_VERSION}" MATCHES "GNU *tar" ) set( TAR_SETOWNER "--owner=root;--group=root" ) set( TAR_REPRODUCIBLE "--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime" ) + list( APPEND TAR_REPRODUCIBLE "--mode=u+rw,go=rX,a-s" ) tde_read_src_metadata() if( TDE_PKG_DATETIME ) - list( APPEND TAR_REPRODUCIBLE --mtime "${TDE_PKG_DATETIME}" ) + list( APPEND TAR_REPRODUCIBLE --mtime "${TDE_PKG_DATETIME} UTC" ) elseif( TDE_SCM_MODULE_DATETIME ) - list( APPEND TAR_REPRODUCIBLE --mtime "${TDE_SCM_MODULE_DATETIME}" ) + list( APPEND TAR_REPRODUCIBLE --mtime "${TDE_SCM_MODULE_DATETIME} UTC" ) endif( ) elseif( "${TAR_VERSION}" MATCHES "bsd *tar" ) set( TAR_SETOWNER "--uname=root;--gname=root" ) -- cgit v1.2.1