Hi Marius, On Mon, 10 Jul 2017 21:07:00 +0200 Marius Bakke <mba...@fastmail.com> wrote:
> Danny Milosavljevic <dan...@scratchpost.org> writes: > > > * gnu/packages/groff.scm (groff)[arguments]: Add phase "setenv". > > What does this add to the previous patch? Can you add a comment in the > code explaining what it's for? It replaces the previous patch by using a new patched-ghostscript feature: - ghostscript can now be instructed to not print the problematic parts (timestamps in headers, UUIDs in headers) that were the original cause of the "ever-changing PDFs" problem. The previous approach was fighting the symptoms, where every time a problem appeared in one of the outputs, I'd patch it somewhere else so that, if it did make it to ghostscript, ghostscript would put fake timestamps and would derive UUIDs from them - which upstream recommended we should definitely not do. That was really not scalable or sane. Also, the original ghostscript states that they are printing the current system date into PDFs (rather than, say, the input file mtime), against better judgement, for compatibility. Just no. So this patch prevents ghostscript from putting the timestamps or the document UUIDs into the PDFs in the first place (I don't mean it puts a fake one there now - I mean it leaves the fields off entirely). Much simpler. I'll add a comment.