Source: shadow
Version: 1:4.2-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that foo could not be built reproducibly.

The attached patch—based on Git master—removes make the manpage revision
date deterministic.  Once applied, shadow can be built reproducibly in
our current experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
From 7980c93399a48960b2d9f3b66ac40d0f67b656d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= <lu...@debian.org>
Date: Wed, 22 Apr 2015 21:04:18 +0000
Subject: [PATCH] Make the package build reproducibly:

Add a patch to allow manpage revision date to be externally set and set the
build date to the latest changelog entry in debian/rules.
---
 debian/changelog                             |   5 +
 debian/patches/464_enable_setting_build_date | 572 +++++++++++++++++++++++++++
 debian/patches/series                        |   1 +
 debian/rules                                 |   3 +
 4 files changed, 581 insertions(+)
 create mode 100644 debian/patches/464_enable_setting_build_date

diff --git a/debian/changelog b/debian/changelog
index 58acc95..c9d2771 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,11 @@ shadow (1:4.2.1-1) UNRELEASED; urgency=low
   [ Laurent Bigonville ]
   * Move pam_selinux open call higher in the session stack. Closes: #747313
 
+  [ Jérémy Bobbio ]
+  * Make the package build reproducibly:
+    - Add a patch to allow manpage revision date to be externally set.
+    - Set the build date to the latest changelog entry in debian/rules.
+
  -- Christian Perrier <bubu...@debian.org>  Tue, 06 May 2014 07:39:03 +0200
 
 shadow (1:4.2-2) unstable; urgency=low
diff --git a/debian/patches/464_enable_setting_build_date b/debian/patches/464_enable_setting_build_date
new file mode 100644
index 0000000..49d75e7
--- /dev/null
+++ b/debian/patches/464_enable_setting_build_date
@@ -0,0 +1,572 @@
+diff --git a/configure.in b/configure.in
+index a55f125..4a874a5 100644
+--- a/configure.in
++++ b/configure.in
+@@ -625,6 +625,11 @@ fi
+ 
+ AC_DEFINE_UNQUOTED(SHELL, ["$SHELL"], [The default shell.])
+ 
++if test "x$BUILD_DATE" = "x"; then
++	BUILD_DATE=$(date +"%Y-m-d")
++fi
++AC_SUBST(BUILD_DATE)
++
+ AM_GNU_GETTEXT_VERSION(0.16)
+ AM_GNU_GETTEXT([external], [need-ngettext])
+ AM_CONDITIONAL(USE_NLS, test "x$USE_NLS" = "xyes")
+diff --git a/man/chage.1.xml b/man/chage.1.xml
+index d05617d..070d692 100644
+--- a/man/chage.1.xml
++++ b/man/chage.1.xml
+@@ -53,6 +53,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>chage</refentrytitle>
+diff --git a/man/chfn.1.xml b/man/chfn.1.xml
+index 153d67e..2d7d9b5 100644
+--- a/man/chfn.1.xml
++++ b/man/chfn.1.xml
+@@ -55,6 +55,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>chfn</refentrytitle>
+diff --git a/man/chgpasswd.8.xml b/man/chgpasswd.8.xml
+index 88a6409..28b40a4 100644
+--- a/man/chgpasswd.8.xml
++++ b/man/chgpasswd.8.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>chgpasswd</refentrytitle>
+diff --git a/man/chpasswd.8.xml b/man/chpasswd.8.xml
+index 31238d9..ce8f6da 100644
+--- a/man/chpasswd.8.xml
++++ b/man/chpasswd.8.xml
+@@ -56,6 +56,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>chpasswd</refentrytitle>
+diff --git a/man/chsh.1.xml b/man/chsh.1.xml
+index 2c853be..204fdc3 100644
+--- a/man/chsh.1.xml
++++ b/man/chsh.1.xml
+@@ -55,6 +55,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>chsh</refentrytitle>
+diff --git a/man/config.xml.in b/man/config.xml.in
+index 2dbad9f..89b8560 100644
+--- a/man/config.xml.in
++++ b/man/config.xml.in
+@@ -1,2 +1,3 @@
+ <!ENTITY GROUP_NAME_MAX_LENGTH '@GROUP_NAME_MAX_LENGTH@'>
+ <!ENTITY SHADOW_UTILS_VERSION '@VERSION@'>
++<!ENTITY SHADOW_BUILD_DATE '@BUILD_DATE@'>
+diff --git a/man/expiry.1.xml b/man/expiry.1.xml
+index 63575b0..1af94ec 100644
+--- a/man/expiry.1.xml
++++ b/man/expiry.1.xml
+@@ -56,6 +56,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>expiry</refentrytitle>
+diff --git a/man/faillog.5.xml b/man/faillog.5.xml
+index 0e16752..fbdf56b 100644
+--- a/man/faillog.5.xml
++++ b/man/faillog.5.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>faillog</refentrytitle>
+diff --git a/man/faillog.8.xml b/man/faillog.8.xml
+index a9132a8..973d9f0 100644
+--- a/man/faillog.8.xml
++++ b/man/faillog.8.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>faillog</refentrytitle>
+diff --git a/man/gpasswd.1.xml b/man/gpasswd.1.xml
+index ebd1b41..654de0a 100644
+--- a/man/gpasswd.1.xml
++++ b/man/gpasswd.1.xml
+@@ -57,6 +57,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>gpasswd</refentrytitle>
+diff --git a/man/groupadd.8.xml b/man/groupadd.8.xml
+index 93d8b6f..d440adc 100644
+--- a/man/groupadd.8.xml
++++ b/man/groupadd.8.xml
+@@ -55,6 +55,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>groupadd</refentrytitle>
+diff --git a/man/groupdel.8.xml b/man/groupdel.8.xml
+index 438e9e5..d3d201c 100644
+--- a/man/groupdel.8.xml
++++ b/man/groupdel.8.xml
+@@ -53,6 +53,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>groupdel</refentrytitle>
+diff --git a/man/groupmems.8.xml b/man/groupmems.8.xml
+index 2afdbd8..dea6398 100644
+--- a/man/groupmems.8.xml
++++ b/man/groupmems.8.xml
+@@ -56,6 +56,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>groupmems</refentrytitle>
+diff --git a/man/groupmod.8.xml b/man/groupmod.8.xml
+index 4666625..ebb364e 100644
+--- a/man/groupmod.8.xml
++++ b/man/groupmod.8.xml
+@@ -53,6 +53,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>groupmod</refentrytitle>
+diff --git a/man/groups.1.xml b/man/groups.1.xml
+index 02e5432..6b4a70b 100644
+--- a/man/groups.1.xml
++++ b/man/groups.1.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>groups</refentrytitle>
+diff --git a/man/grpck.8.xml b/man/grpck.8.xml
+index 77c4bd8..eaa4e90 100644
+--- a/man/grpck.8.xml
++++ b/man/grpck.8.xml
+@@ -53,6 +53,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>grpck</refentrytitle>
+diff --git a/man/gshadow.5.xml b/man/gshadow.5.xml
+index 200fcef..4cefe07 100644
+--- a/man/gshadow.5.xml
++++ b/man/gshadow.5.xml
+@@ -41,6 +41,7 @@
+       <contrib>Creation, 2005</contrib>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>gshadow</refentrytitle>
+diff --git a/man/id.1.xml b/man/id.1.xml
+index e947e19..c864455 100644
+--- a/man/id.1.xml
++++ b/man/id.1.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>id</refentrytitle>
+diff --git a/man/lastlog.8.xml b/man/lastlog.8.xml
+index 191b74b..e1ca088 100644
+--- a/man/lastlog.8.xml
++++ b/man/lastlog.8.xml
+@@ -53,6 +53,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>lastlog</refentrytitle>
+diff --git a/man/limits.5.xml b/man/limits.5.xml
+index 1c8e54d..b197e0c 100644
+--- a/man/limits.5.xml
++++ b/man/limits.5.xml
+@@ -54,6 +54,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>limits</refentrytitle>
+diff --git a/man/login.1.xml b/man/login.1.xml
+index 1bca536..81f2f2c 100644
+--- a/man/login.1.xml
++++ b/man/login.1.xml
+@@ -85,6 +85,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>login</refentrytitle>
+diff --git a/man/login.access.5.xml b/man/login.access.5.xml
+index bb3e77c..8b4ee54 100644
+--- a/man/login.access.5.xml
++++ b/man/login.access.5.xml
+@@ -53,6 +53,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>login.access</refentrytitle>
+diff --git a/man/login.defs.5.xml b/man/login.defs.5.xml
+index 98d37fd..32732ad 100644
+--- a/man/login.defs.5.xml
++++ b/man/login.defs.5.xml
+@@ -117,6 +117,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>login.defs</refentrytitle>
+diff --git a/man/logoutd.8.xml b/man/logoutd.8.xml
+index 13b1337..c868d57 100644
+--- a/man/logoutd.8.xml
++++ b/man/logoutd.8.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>logoutd</refentrytitle>
+diff --git a/man/newgidmap.1.xml b/man/newgidmap.1.xml
+index ad7a186..11570ca 100644
+--- a/man/newgidmap.1.xml
++++ b/man/newgidmap.1.xml
+@@ -33,6 +33,9 @@
+ ]>
+ 
+ <refentry id='newgidmap.1'>
++  <refentryinfo>
++    <date>&SHADOW_BUILD_DATE;</date>
++  </refentryinfo>
+   <refmeta>
+     <refentrytitle>newgidmap</refentrytitle>
+     <manvolnum>1</manvolnum>
+diff --git a/man/newgrp.1.xml b/man/newgrp.1.xml
+index 62f0625..ff67768 100644
+--- a/man/newgrp.1.xml
++++ b/man/newgrp.1.xml
+@@ -53,6 +53,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>newgrp</refentrytitle>
+diff --git a/man/newuidmap.1.xml b/man/newuidmap.1.xml
+index 04bb14f..700b782 100644
+--- a/man/newuidmap.1.xml
++++ b/man/newuidmap.1.xml
+@@ -33,6 +33,9 @@
+ ]>
+ 
+ <refentry id='newuidmap.1'>
++  <refentryinfo>
++    <date>&SHADOW_BUILD_DATE;</date>
++  </refentryinfo>
+   <refmeta>
+     <refentrytitle>newuidmap</refentrytitle>
+     <manvolnum>1</manvolnum>
+diff --git a/man/newusers.8.xml b/man/newusers.8.xml
+index c906175..a16b503 100644
+--- a/man/newusers.8.xml
++++ b/man/newusers.8.xml
+@@ -67,6 +67,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>newusers</refentrytitle>
+diff --git a/man/nologin.8.xml b/man/nologin.8.xml
+index 0f5cf30..fb04a4a 100644
+--- a/man/nologin.8.xml
++++ b/man/nologin.8.xml
+@@ -41,6 +41,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>nologin</refentrytitle>
+diff --git a/man/passwd.1.xml b/man/passwd.1.xml
+index eece5e9..0898f1f 100644
+--- a/man/passwd.1.xml
++++ b/man/passwd.1.xml
+@@ -59,6 +59,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>passwd</refentrytitle>
+diff --git a/man/passwd.5.xml b/man/passwd.5.xml
+index 8625dfb..edb6187 100644
+--- a/man/passwd.5.xml
++++ b/man/passwd.5.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>passwd</refentrytitle>
+diff --git a/man/porttime.5.xml b/man/porttime.5.xml
+index e28ce60..339695d 100644
+--- a/man/porttime.5.xml
++++ b/man/porttime.5.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>porttime</refentrytitle>
+diff --git a/man/pwck.8.xml b/man/pwck.8.xml
+index fbe4cd7..1482d81 100644
+--- a/man/pwck.8.xml
++++ b/man/pwck.8.xml
+@@ -58,6 +58,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>pwck</refentrytitle>
+diff --git a/man/pwconv.8.xml b/man/pwconv.8.xml
+index 3e26498..2a2a371 100644
+--- a/man/pwconv.8.xml
++++ b/man/pwconv.8.xml
+@@ -58,6 +58,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>pwconv</refentrytitle>
+diff --git a/man/sg.1.xml b/man/sg.1.xml
+index 012d9a5..a40ad6e 100644
+--- a/man/sg.1.xml
++++ b/man/sg.1.xml
+@@ -53,6 +53,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>sg</refentrytitle>
+diff --git a/man/shadow.3.xml b/man/shadow.3.xml
+index edc46d5..13e541d 100644
+--- a/man/shadow.3.xml
++++ b/man/shadow.3.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>shadow</refentrytitle>
+diff --git a/man/shadow.5.xml b/man/shadow.5.xml
+index 3b2f44a..3cc8c4e 100644
+--- a/man/shadow.5.xml
++++ b/man/shadow.5.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>shadow</refentrytitle>
+diff --git a/man/su.1.xml b/man/su.1.xml
+index 15502e3..d546c0a 100644
+--- a/man/su.1.xml
++++ b/man/su.1.xml
+@@ -69,6 +69,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>su</refentrytitle>
+diff --git a/man/suauth.5.xml b/man/suauth.5.xml
+index dff366a..4d5f9e2 100644
+--- a/man/suauth.5.xml
++++ b/man/suauth.5.xml
+@@ -52,6 +52,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>suauth</refentrytitle>
+diff --git a/man/subgid.5.xml b/man/subgid.5.xml
+index f7b4b50..9f2c6b4 100644
+--- a/man/subgid.5.xml
++++ b/man/subgid.5.xml
+@@ -32,6 +32,9 @@
+ <!-- SHADOW-CONFIG-HERE -->
+ ]>
+ <refentry id='subgid.5'>
++  <refentryinfo>
++    <date>&SHADOW_BUILD_DATE;</date>
++  </refentryinfo>
+   <refmeta>
+     <refentrytitle>subgid</refentrytitle>
+     <manvolnum>5</manvolnum>
+diff --git a/man/subuid.5.xml b/man/subuid.5.xml
+index a833f57..774ffbf 100644
+--- a/man/subuid.5.xml
++++ b/man/subuid.5.xml
+@@ -32,6 +32,9 @@
+ <!-- SHADOW-CONFIG-HERE -->
+ ]>
+ <refentry id='subuid.5'>
++  <refentryinfo>
++    <date>&SHADOW_BUILD_DATE;</date>
++  </refentryinfo>
+   <refmeta>
+     <refentrytitle>subuid</refentrytitle>
+     <manvolnum>5</manvolnum>
+diff --git a/man/sulogin.8.xml b/man/sulogin.8.xml
+index 432232c..fbebd01 100644
+--- a/man/sulogin.8.xml
++++ b/man/sulogin.8.xml
+@@ -54,6 +54,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>sulogin</refentrytitle>
+diff --git a/man/useradd.8.xml b/man/useradd.8.xml
+index d697d48..f80bcb5 100644
+--- a/man/useradd.8.xml
++++ b/man/useradd.8.xml
+@@ -69,6 +69,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>useradd</refentrytitle>
+diff --git a/man/userdel.8.xml b/man/userdel.8.xml
+index 3f95a8d..5826e85 100644
+--- a/man/userdel.8.xml
++++ b/man/userdel.8.xml
+@@ -58,6 +58,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>userdel</refentrytitle>
+diff --git a/man/usermod.8.xml b/man/usermod.8.xml
+index e1ffdfb..2be2f7f 100644
+--- a/man/usermod.8.xml
++++ b/man/usermod.8.xml
+@@ -58,6 +58,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>usermod</refentrytitle>
+diff --git a/man/vipw.8.xml b/man/vipw.8.xml
+index 810ef59..bc0d677 100644
+--- a/man/vipw.8.xml
++++ b/man/vipw.8.xml
+@@ -54,6 +54,7 @@
+       <email>nicolas.franc...@centraliens.net</email>
+       <contrib>shadow-utils maintainer, 2007 - now</contrib>
+     </author>
++    <date>&SHADOW_BUILD_DATE;</date>
+   </refentryinfo>
+   <refmeta>
+     <refentrytitle>vipw</refentrytitle>
diff --git a/debian/patches/series b/debian/patches/series
index 0a59b9f..ddf3d99 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -16,3 +16,4 @@
 523_su_arguments_are_no_more_concatenated_by_default
 508_nologin_in_usr_sbin
 505_useradd_recommend_adduser
+464_enable_setting_build_date
diff --git a/debian/rules b/debian/rules
index 51c0f5d..0a39214 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
 
 DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
+BUILD_DATE = $(shell dpkg-parsechangelog -S Date | date -u +"%Y-%m-%d" -f -)
+export BUILD_DATE
+
 # Enable PIE, BINDNOW, and possible future flags.
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-- 
2.1.4

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to