From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#27563: [PATCH v3 0/2] Make ghostscript reproducible. Date: Fri, 7 Jul 2017 20:20:31 +0200 Message-ID: <20170707202031.7a4d9c35@scratchpost.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> 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]:45500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTXsI-0002IT-OP for bug-guix@gnu.org; Fri, 07 Jul 2017 14:21:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTXsE-0000XJ-Ly for bug-guix@gnu.org; Fri, 07 Jul 2017 14:21:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54379) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTXsE-0000Wr-Iy for bug-guix@gnu.org; Fri, 07 Jul 2017 14:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dTXsE-0000Uf-Ch for bug-guix@gnu.org; Fri, 07 Jul 2017 14:21:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87o9swxhip.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 27563@debbugs.gnu.org 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 funny= 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. } } > 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 disab= le, 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) ... > > Also, where would we set it so the build processes of all the other > > packages actually pick it up? =20 >=20 > Eventually we can add it to gnu-build-system.scm, but for now, given > that core-updates is well built, we should add it on a case-by-case > basis. I don=E2=80=99t think there are that many packages that produce P= DFs, > but I could be wrong. Okay :) =09