Source: complexity Version: 1.13-3 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 complexity could not be built reproducibly. This is because an .info file generates a "Copyright 2011 — 2026"-like line based on the current build year, which means the package differs depending on what year you build it. Patch attached that seeds this date from SOURCE_DATE_EPOCH (if it is available.) [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/05_reproducible_build.patch 1969-12-31 16:00:00.000000000 -0800 --- b/debian/patches/05_reproducible_build.patch 2026-10-14 10:11:53.945854319 -0700 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2026-10-14 + +--- complexity-1.13.orig/doc/example-texi.tpl ++++ complexity-1.13/doc/example-texi.tpl +@@ -27,7 +27,7 @@ texi=example.texi + [=(dne "")=] + @end ignore + +-@set CRIGHT 2011-[= (shell "date '+%Y'") =] ++@set CRIGHT 2011-[= (shell "date --utc --date=@${SOURCE_DATE_EPOCH:-$(date +%s)} '+%Y'") =] + @set PKG-TITLE [= package =] - [= prog-title =] + @set PROGRAM [=prog-name=] + @set TITLE [=prog-title=] --- a/debian/patches/series 2026-10-14 09:51:14.951082770 -0700 --- b/debian/patches/series 2026-10-14 10:06:16.735698956 -0700 @@ -2,3 +2,4 @@ 02_fix_gnulib_compat.patch 03_fix_doc_setflags.patch 04_fix_lic.patch +05_reproducible_build.patch

