diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-12-06 14:50:33 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-12-07 03:33:28 +0100 |
commit | 1066eb1afd55dbc25dc8883ecf1eb9462cd0f65a (patch) | |
tree | 27c610e6e1555142fabe13657622a10028769137 | |
parent | 38b2578bd711911ac10741859506ec442484f0cf (diff) | |
download | tde-cmake-1066eb1afd55dbc25dc8883ecf1eb9462cd0f65a.tar.gz tde-cmake-1066eb1afd55dbc25dc8883ecf1eb9462cd0f65a.zip |
tde_create_tarball: Add options to make tarballs reproducible
independently of UMASK and time zone.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7b6865d9e60d3220cecea027f227ab084f1a903c)
-rw-r--r-- | modules/TDEMacros.cmake | 5 |
1 files 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" ) |