From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#27563: [PATCH v3 0/2] Make ghostscript reproducible. Date: Sat, 08 Jul 2017 16:32:02 +0200 Message-ID: <87zicfvw2l.fsf@gnu.org> References: <20170703200844.3f6d9e19@scratchpost.org> <20170706103216.25939-1-dannym@scratchpost.org> <87tw2oa246.fsf@gnu.org> <20170707152538.6fb9d21d@scratchpost.org> <8737a86zt4.fsf@gnu.org> <20170707174422.14e87fc2@scratchpost.org> <87o9swxhip.fsf@gnu.org> <20170707202031.7a4d9c35@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTqnC-0000oZ-10 for bug-guix@gnu.org; Sat, 08 Jul 2017 10:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTqn8-0003P9-3J for bug-guix@gnu.org; Sat, 08 Jul 2017 10:33:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55333) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTqn7-0003P5-Vh for bug-guix@gnu.org; Sat, 08 Jul 2017 10:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dTqn7-0006Qo-KI for bug-guix@gnu.org; Sat, 08 Jul 2017 10:33:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170707202031.7a4d9c35@scratchpost.org> (Danny Milosavljevic's message of "Fri, 7 Jul 2017 20:20:31 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 27563@debbugs.gnu.org Danny Milosavljevic skribis: > On Fri, 07 Jul 2017 19:51:10 +0200 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> For CreationDate/ModDate, I think it should honor SOURCE_DATE_EPOCH as >> in >> . > > Really? I've been leaving them off, too. Especially because of this fun= ny comment in the upstream ghostscript: > > /* Initialize the IDs allocated at startup. */ > void > pdf_initialize_ids(gx_device_pdf * pdev) > { > ... > /* > * Acrobat Distiller sets CreationDate and ModDate to the current > * date and time, rather than (for example) %%CreationDate from the > * PostScript file. We think this is wrong, but we do the same. > */ > { > ... proceed to set CreationDate and ModDate to the current time. > } > } I guess they hamper reproducibility if they=E2=80=99re always created? In = that case, they need to follow SOURCE_DATE_EPOCH; if OTOH they=E2=80=99re only created in specific cases that don=E2=80=99t matter much, we can leave them. >> For the two UUIDs (and =E2=80=9CID=E2=80=9D too?), maybe we can use, say, >> GS_GENERATE_UUIDS; if set to 0 or =E2=80=9Cno=E2=80=9D it=E2=80=99s disa= ble, otherwise it=E2=80=99s >> enabled. > > That would look like this: > > if (!getenv("GS_GENERATE_UUIDS") || strcmp(getenv("GS_GENERATE_UUIDS"), "= 0") =3D=3D 0 || strcmp(getenv("GS_GENERATE_UUIDS"), "no") =3D=3D 0) ... Yes. Thanks! Ludo=E2=80=99.