Bug#1150917: complexity: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Oct 14 18:14:36 BST 2026
Source: complexity
Version: 1.13-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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 <lamby at debian.org>
+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
+
+- at set CRIGHT 2011-[= (shell "date '+%Y'") =]
++ at 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
More information about the Reproducible-bugs
mailing list