[tex-k] [Reproducible-builds] SORCE_DATE_EPOCH_TEX_PRIMITIVES

Norbert Preining preining at logic.at
Sat Jun 11 13:33:05 CEST 2016


Hi Karl,

> OK, yes we can patch Debian like this. Though, please also change the pdftex source in version control.

Here is a patch of the rename.

Norbert

--
PREINING Norbert + TeX Live & Debian Developer + http://www.preining.info
GPG: 0x860CDC13    fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
-------------- next part --------------
---
 texk/web2c/lib/ChangeLog  |    2 +-
 texk/web2c/lib/texmfmp.c  |    4 ++--
 texk/web2c/man/pdftex.man |    2 +-
 texk/web2c/pdftexdir/NEWS |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

--- texlive-bin.orig/texk/web2c/lib/ChangeLog
+++ texlive-bin/texk/web2c/lib/ChangeLog
@@ -16,7 +16,7 @@
 
 	* texmfmp.c (init_start_time): new fn, factored out from
 	initstarttime.
-	(get_date_and_time): if envvar SOURCE_DATE_EPOCH_TEX_PRIMITIVES
+	(get_date_and_time): if envvar FORCE_SOURCE_DATE
 	is set, initialize minutes, day, month, year, from
 	SOURCE_DATE_EPOCH value.  Requested by Debian, thread starting at
 	http://tug.org/pipermail/tex-k/2016-May/002691.html.
--- texlive-bin.orig/texk/web2c/lib/texmfmp.c
+++ texlive-bin/texk/web2c/lib/texmfmp.c
@@ -2247,7 +2247,7 @@
 {
   struct tm *tmptr;
 #ifndef onlyTeX
-  string sde_texprim = getenv ("SOURCE_DATE_EPOCH_TEX_PRIMITIVES");
+  string sde_texprim = getenv ("FORCE_SOURCE_DATE");
   if (sde_texprim && STREQ (sde_texprim, "1")) {
     init_start_time ();
     tmptr = gmtime (&start_time);
@@ -2263,7 +2263,7 @@
     /* warn if they gave an invalid value, empty (null string) ok.  */
     if (sde_texprim && strlen (sde_texprim) > 0
         && !STREQ (sde_texprim, "0")) {
-WARNING1 ("invalid value (expected 0 or 1) for environment variable $SOURCE_DATE_EPOCH_TEX_PRIMITIVES: %s", 
+WARNING1 ("invalid value (expected 0 or 1) for environment variable $FORCE_SOURCE_DATE: %s", 
           sde_texprim);
     }
 #endif /* not onlyTeX */
--- texlive-bin.orig/texk/web2c/man/pdftex.man
+++ texlive-bin/texk/web2c/man/pdftex.man
@@ -379,7 +379,7 @@
 timestamps in the PDF output, such as the CreationDate and ModDate keys.
 This is useful for making reproducible builds.
 .TP
-.B SOURCE_DATE_EPOCH_TEX_PRIMITIVES
+.B FORCE_SOURCE_DATE
 If set to the value "1", the time-related \*(TX primitives
 .RI ( \eyear ,
 .IR \emonth ,
--- texlive-bin.orig/texk/web2c/pdftexdir/NEWS
+++ texlive-bin/texk/web2c/pdftexdir/NEWS
@@ -5,7 +5,7 @@
     This by itself should suffice to create reproducible PDFs.  The
     new primitives below support more granular output tweaks with the
     same intent.
-  - if the environment variable SOURCE_DATE_EPOCH_TEX_PRIMITIVES is set
+  - if the environment variable FORCE_SOURCE_DATE is set
     to 1, the \year, \day, and \time primitives are also initialized
     from the SOURCE_DATE_EPOCH value, instead of the current time.
     


More information about the tex-k mailing list