From b6615b2cd4d45698ad6d2077c07a3faec2c0dcc9 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Wed, 14 Oct 2020 21:24:48 +0200 Subject: [PATCH] Fix: make reproducible by not embedding timestamps By default gzip embeds a timestamps which makes building it twice not reproducible, passing -n skips this embedding behaviour. Motivation: https://reproducible-builds.org --- cmake/InstallAndPackage.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/InstallAndPackage.cmake b/cmake/InstallAndPackage.cmake index eafcfc21b6..9c2ae1924c 100644 --- a/cmake/InstallAndPackage.cmake +++ b/cmake/InstallAndPackage.cmake @@ -45,7 +45,7 @@ if(OPTION_INSTALL_FHS) install(CODE " execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${MAN_SOURCE_FILE} ${MAN_BINARY_FILE}) - execute_process(COMMAND gzip -9 -f ${MAN_BINARY_FILE}) + execute_process(COMMAND gzip -9 -n -f ${MAN_BINARY_FILE}) " COMPONENT manual) install(FILES