[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#890734: texlive-metapost: mpost does not honour SOURCE_DATE_EPOCH



Am 18.02.2018 um 08:16 teilte Jerome Benoit mit:

Hi Jerome,

> it appears the mpost does not honour SOURCE_DATE_EPOCH:
> see attached script.
> 
I'm not sure what the significance of the SOURCE_DATE_EPOCH effort is.
Is is just Debian specific or are there more parties, which are trying
to build reproducibly? I'm just evaluating if we could submit that bug
to upstream or if a possibly patch needs to be developed (and
maintained) in Debian.

The place where we would have to patch is clear, attached is a first
patch. It disables time stamping in general. Can you tell how to
evaluate the ENV variable SOURCE_DATE_EPOCH?

Hilmar
-- 
sigfault
#206401 http://counter.li.org
Index: texlive-bin/texk/web2c/mplibdir/psout.w
===================================================================
--- texlive-bin.orig/texk/web2c/mplibdir/psout.w	2019-07-31 18:22:53.956816442 +0200
+++ texlive-bin/texk/web2c/mplibdir/psout.w	2019-07-31 18:28:39.212816442 +0200
@@ -5059,8 +5059,8 @@
   s = mp_metapost_version();
   mp_ps_print(mp, s);
   mp_xfree(s);
-  mp_ps_print_nl(mp, "%%CreationDate: ");
-  mp_ps_print_int(mp, round_unscaled(internal_value(mp_year))); 
+  mp_ps_print_nl(mp, "%%CreationDate: 1970.01.01:00.00");
+  /* mp_ps_print_int(mp, round_unscaled(internal_value(mp_year)));
   mp_ps_print_char(mp, '.');
   mp_ps_print_dd(mp, round_unscaled(internal_value(mp_month))); 
   mp_ps_print_char(mp, '.');
@@ -5068,7 +5068,7 @@
   mp_ps_print_char(mp, ':');
   t = round_unscaled(internal_value(mp_time));
   mp_ps_print_dd(mp, t / 60); 
-  mp_ps_print_dd(mp, t % 60);
+  mp_ps_print_dd(mp, t % 60); */
   mp_ps_print_nl(mp, "%%Pages: 1");
 }
 

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: