From 16e02e11cd11950ddff9ec3fb15b4e25571f311e Mon Sep 17 00:00:00 2001 From: Sertonix Date: Mon, 16 Dec 2024 16:03:58 +0100 Subject: [PATCH] Strip build time from compressed manpages The manpage compression metadata include the true build time (and not SOURCE_DATE_EPOCH like the manpages themselves). Excluding the build time allows the manpage to be build reproducibly. Ref https://reproducible-builds.org/ --- cmake/Modules/Pod2Man.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Modules/Pod2Man.cmake b/cmake/Modules/Pod2Man.cmake index f1c0e400a..6728b673f 100644 --- a/cmake/Modules/Pod2Man.cmake +++ b/cmake/Modules/Pod2Man.cmake @@ -47,7 +47,7 @@ MACRO(POD2MAN PODFILE MANFILE SECTION MANPAGE_DEST_PREFIX) ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${MANFILE}.${SECTION}.gz - COMMAND ${GZIP} --best -c ${CMAKE_CURRENT_BINARY_DIR}/${MANFILE}.${SECTION} > ${CMAKE_CURRENT_BINARY_DIR}/${MANFILE}.${SECTION}.gz + COMMAND ${GZIP} -n --best -c ${CMAKE_CURRENT_BINARY_DIR}/${MANFILE}.${SECTION} > ${CMAKE_CURRENT_BINARY_DIR}/${MANFILE}.${SECTION}.gz DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${MANFILE}.${SECTION} )