From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#27563: [PATCH v3 2/2] gnu: ghostscript: Write document ID only when encrypting. Date: Fri, 7 Jul 2017 18:42:25 +0200 Message-ID: <20170707184225.4279f1cd@scratchpost.org> References: <20170703200844.3f6d9e19@scratchpost.org> <20170706103216.25939-1-dannym@scratchpost.org> <20170706103216.25939-3-dannym@scratchpost.org> <87podca20z.fsf@gnu.org> <20170707152149.3235f3aa@scratchpost.org> <20170707162151.GA17441@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTWLT-0005sp-PC for bug-guix@gnu.org; Fri, 07 Jul 2017 12:43:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTWLO-0003Qw-Td for bug-guix@gnu.org; Fri, 07 Jul 2017 12:43:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54313) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTWLO-0003Qg-Pw for bug-guix@gnu.org; Fri, 07 Jul 2017 12:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dTWLO-0006fM-GA for bug-guix@gnu.org; Fri, 07 Jul 2017 12:43:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170707162151.GA17441@jasmine.lan> 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: Leo Famulari Cc: 27563@debbugs.gnu.org Hi Leo, On Fri, 7 Jul 2017 12:21:51 -0400 Leo Famulari wrote: > > That leaves the document UUID - and upstream, in some of the other > I think the lowest risk is to do nothing to Ghostscript and move the PDF > documentation to a separate 'doc' output. Then, we could have > reproducible binaries and ignore the PDF issues for now. Does anyone > know how many packages include PDF documentation built with Ghostscript? Aren't the derivations of the doc outputs still a problem? For example, Hydra will run out of space sooner or later because it keeps building them, right? > 2) At least some of the patches in the related Ghostscript discussions > seem to be proof of concepts rather than finished code: > https://bugs.ghostscript.com/show_bug.cgi?id=697484#c3 > So, if these patches came from there, we'd want to be extra careful. No, I wrote the ones here without external sources (except for the direct discussion on my newish upstream bug report, and the PDF and XMP specifications - whatever worth they have). > By the way, this is the patch used for Debian's latest Ghostscript > package: > > https://anonscm.debian.org/git/printing/ghostscript.git/tree/debian/patches/2010_add_build_timestamp_setting.patch?id=e2bf3ad7026afe13636d4937430c3fdae7854078 > > That patch was not reviewed on a public forum, at least nothing I can > find with Google. Again, I'd want to get the Ghostscript team's advice. On such an approach they advised that we should only generate *unique* UUIDs. But the UUIDs are generated from these times. So that linked patch would generate multiple non-unique uuids on systems. That's why I removed the entire UUID and Time sections and actually didn't fiddle with the ghostscript-internal times at all. Builds reproducibly. I wonder how many packages actually use the ghostscript pdf writer too. How to find that out? Note that groff itself also fails to build reproducibly without the patches. In any case, the patch 2/2 is quite tame (it looks scary because of the printf splitting, but it's actually just either leaving "/ID[...]" off or not, globally). But I understand that it would be even easier to do nothing. Wouldn't make the stuff reproducible, though. I'd vote for an environment variable to disable UUID printing and also Time header printing. That way it would do everything normally in regular usage - but when used in packages, it would just not *print* the problematic stuff. No internal state is changed at all by the patches.