Source: nfstest
Version: 3.2-4
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
nfstest could not be built reproducibly.

This is because the dates in the manual page are generated from the
current build date.

A patch is attached that generates them from the SOURCE_DATE_EPOCH
environment variable (if it is present).

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build 1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/reproducible-build 2026-06-01 09:45:31.387404827 -0700
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2026-06-01
+
+--- nfstest-3.2.orig/tools/create_manpage.py
++++ nfstest-3.2/tools/create_manpage.py
+@@ -524,7 +524,7 @@ def create_manpage(src, dst):
+         progname = os.path.splitext(usage.split()[0])[0]
+ 
+     pname = progname.split('.')[-1]
+-    datestr = time.strftime("%e %B %Y")
++    datestr = time.strftime("%e %B %Y", 
time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
+ 
+     # Open man page to create
+     fd = open(manpage, 'w')
--- a/debian/patches/series     2026-06-01 09:30:33.539603968 -0700
--- b/debian/patches/series     2026-06-01 09:45:30.666786554 -0700
@@ -1,2 +1,3 @@
 pyw
 morepyfi
+reproducible-build

Reply via email to