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/
pull/4198/head
Sertonix 2024-12-16 16:03:58 +01:00
parent 55b99e19ab
commit 16e02e11cd
1 changed files with 1 additions and 1 deletions

View File

@ -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}
)