Hi.

On Fri, 15 Jan 2016 22:28:12 +0100 <lu...@debian.org> wrote:
> The forth patch changes dpkg-buildpackage to set SOURCE_DATE_EPOCH to
> the time of the latest debian/changelog entry if it hasn't been already
> set, effectively making the timestamps recorded by dpkg-deb in the most
> common build process deterministic.

The SOURCE_DATE_EPOCH support is now implemented in pdftex/xetex:
SOURCE_DATE_EPOCH will only be used to set CreationDate and related
meta-data in produced files, and if SOURCE_DATE_EPOCH_TEX_PRIMITIVES
equals 1, then the TeX primitives year, month, etc. will also be set so
that the \today command will refer to the date given by
SOURCE_DATE_EPOCH. See the discussion starting at [1], the news [2] and
the commit [3].

The \today command is widely used in packages documentation, and I think
replacing its value with the last source modification date is
meaningful. It will also help reproducibility. Therefore I suggest to
also add those lines to scripts/dpkg-buildpackage.pl, along with
0004-dpkg-buildpackage-Preset-build-timestamp-to-latest-c.patch:

if (! exists($ENV{SOURCE_DATE_EPOCH_TEX_PRIMITIVES})) {
    $ENV{SOURCE_DATE_EPOCH_TEX_PRIMITIVES} = 1;
}

Regards,
Alexis Bienvenüe.

[1] https://www.tug.org/pipermail/tex-k/2016-May/002691.html
[2]
https://www.tug.org/svn/texlive/trunk/Build/source/texk/web2c/pdftexdir/NEWS?revision=40889
[3]
https://www.tug.org/svn/texlive/trunk/Build/source/texk/web2c/lib/texmfmp.c?r1=40504&r2=40889&pathrev=40889

Reply via email to