Source: klog Version: 2.6-1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that klog could not be built reproducibly. This is because the build system uses CMake's TIMESTAMP feature without specifying the "UTC" flag. Whilst CMake will automatically use SOURCE_DATE_EPOCH, without the "UTC" flag it will generate output based on the build system's timezone. It will therefore generate nondetermistic output (even if the requested format is just a date). Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1970-01-01 00:00:00.000000000 +0000 --- b/debian/patches/reproducible-build.patch 2026-11-23 17:29:15.039102941 +0000 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2026-11-23 + +--- klog-2.6.orig/src/CMakeLists.txt ++++ klog-2.6/src/CMakeLists.txt +@@ -472,7 +472,7 @@ elseif(APPLE) + endif() + + # Get today's date for the release entry +-string(TIMESTAMP KLOG_BUILD_DATE "%Y-%m-%d") ++string(TIMESTAMP KLOG_BUILD_DATE "%Y-%m-%d" UTC) + + # Generate metainfo from template + configure_file( --- a/debian/patches/series 2026-11-23 17:13:07.571016171 +0000 --- b/debian/patches/series 2026-11-23 17:29:14.132392345 +0000 @@ -0,0 +1 @@ +reproducible-build.patch

