From d4f0be02d3f01ca5574a2bc50298a38183f4bfbf Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 12 Mar 2018 09:09:29 -0400 Subject: [PATCH] i18n: make build reproducible The RCC output files in version 2 contain a timestamp of the source file, which changes per build. Drop down to version 1, which just removes the timestamp. See reproducible builds note 'timestamps in source generated by rcc'. FIXES #917 --- CMakeModules/CalamaresAddTranslations.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeModules/CalamaresAddTranslations.cmake b/CMakeModules/CalamaresAddTranslations.cmake index 63bf63189..f5dd8c50c 100644 --- a/CMakeModules/CalamaresAddTranslations.cmake +++ b/CMakeModules/CalamaresAddTranslations.cmake @@ -61,7 +61,7 @@ macro(add_calamares_translations language) add_custom_command( OUTPUT ${trans_outfile} COMMAND "${Qt5Core_RCC_EXECUTABLE}" - ARGS ${rcc_options} -name ${trans_file} -o ${trans_outfile} ${trans_infile} + ARGS ${rcc_options} --format-version 1 -name ${trans_file} -o ${trans_outfile} ${trans_infile} MAIN_DEPENDENCY ${trans_infile} DEPENDS ${QM_FILES} )