From unknown Thu Jun 19 14:14:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49640 <49640@debbugs.gnu.org> To: bug#49640 <49640@debbugs.gnu.org> Subject: Status: [PATCH core-updates] gnu: ghostscript: Improve reproducibility of PDF document generation Reply-To: bug#49640 <49640@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:14:03 +0000 retitle 49640 [PATCH core-updates] gnu: ghostscript: Improve reproducibilit= y of PDF document generation reassign 49640 guix-patches submitter 49640 Guillaume Le Vaillant severity 49640 normal tag 49640 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 19 07:45:29 2021 Received: (at submit) by debbugs.gnu.org; 19 Jul 2021 11:45:29 +0000 Received: from localhost ([127.0.0.1]:58182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5RiD-0000i0-Bn for submit@debbugs.gnu.org; Mon, 19 Jul 2021 07:45:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:35668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5RiB-0000ht-Ux for submit@debbugs.gnu.org; Mon, 19 Jul 2021 07:45:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5Ri5-0000Tg-HP for guix-patches@gnu.org; Mon, 19 Jul 2021 07:45:27 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34509) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5Rhz-0000fp-7u for guix-patches@gnu.org; Mon, 19 Jul 2021 07:45:19 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B3154240028 for ; Mon, 19 Jul 2021 13:45:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1626695109; bh=LPMwDBlY38L8zh/5Mjxd3//KyxwxoqR+17ot6h2p+Ck=; h=From:To:Subject:Date:From; b=GyJPakffV1hmghkCfJ7Ff/YZGVswp9bidTtMlCn6P1egHh++lmjbgWjaOJ+8MCgRM utGpfzv2woxiAdAP4BJOrWIsc7x6pFQOHBJICDroGFRLsY7r7VdD9fKpSiW8usewRr LyhFQvAiX0tzktHHHi2oS0ZlmPzKcXZd6Lcj/Fzrki+sunGpD/8DfU9yUeUY6B9spq iHIuQJnX2EsoZAAKE30f9eaaIOlg5Ot6kTQOTTt9m0ncgb3eXGi1yNNyUolmE3pLUq pb4VXeb23yEeqLTNKKLm8EHkkzKp+N/8uM4/93NFwjzZz57/uJVN6dVfQZGcLJGrmL a27jrQH0WiiZw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GT0QD6VwQz9rxF for ; Mon, 19 Jul 2021 13:45:08 +0200 (CEST) From: Guillaume Le Vaillant To: guix-patches@gnu.org Subject: [PATCH core-updates] gnu: ghostscript: Improve reproducibility of PDF document generation Date: Mon, 19 Jul 2021 11:45:07 +0000 Message-ID: <87eebucyt8.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.65; envelope-from=glv@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi, When trying to solve a reproducibility issue when generating the PDF documentation of the txr software (see [1]), Paul Patience noticed that ghostscript writes a creation date in the PDF even when the GS_GENERATE_UUIDS environment variable is set to "0". The attached patch updates 'ghostscript-no-header-creationdate.patch' to fix this issue. Given the amount of rebuilds caused by modifying ghostscript, this should go to core-updates, but is core-updates in freeze state already, or can I push this patch right now? Note: Even with this patch, there are still some cases where PDF generation by ghostscript is not reproducible (for reasons not related to creation date), like groff-doc. [1]: https://bugs.gnu.org/49517 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-ghostscript-Improve-reproducibility-of-PDF-docum.patch Content-Transfer-Encoding: quoted-printable From=20db5962c68099f835350c24c8a3f889b9fa1f8a8e Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Mon, 19 Jul 2021 11:48:12 +0200 Subject: [PATCH] gnu: ghostscript: Improve reproducibility of PDF document generation * gnu/packages/patches/ghostscript-no-header-creationdate.patch: Disable writing "xmp:ModifyDate" and "xmp:CreateDate" if GS_GENERATE_UUIDS is set= to "0" or "no". =2D-- .../ghostscript-no-header-creationdate.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/patches/ghostscript-no-header-creationdate.patch = b/gnu/packages/patches/ghostscript-no-header-creationdate.patch index 92ddbdade0..b19f3ab5d9 100644 =2D-- a/gnu/packages/patches/ghostscript-no-header-creationdate.patch +++ b/gnu/packages/patches/ghostscript-no-header-creationdate.patch @@ -20,3 +20,25 @@ index 0fb067e..b342e2c 100644 { struct tm tms; time_t t; +--- orig/gnu-ghostscript-9.14.0/devices/vector/gdevpdfe.c ++++ gnu-ghostscript-9.14.0/devices/vector/gdevpdfe.c +@@ -692,6 +692,9 @@ + pdf_xml_attribute_name(s, "xmlns:xmp"); + pdf_xml_attribute_value(s, "http://ns.adobe.com/xap/1.0/"); + pdf_xml_tag_end(s); ++ if (!getenv("GS_GENERATE_UUIDS") || ++ (strcasecmp(getenv("GS_GENERATE_UUIDS"), "0") !=3D 0 && ++ strcasecmp(getenv("GS_GENERATE_UUIDS"), "no") !=3D 0)) + { + pdf_xml_tag_open_beg(s, "xmp:ModifyDate"); + pdf_xml_tag_end(s); +@@ -700,6 +701,9 @@ + pdf_xml_tag_close(s, "xmp:ModifyDate"); + pdf_xml_newline(s); + } ++ if (!getenv("GS_GENERATE_UUIDS") || ++ (strcasecmp(getenv("GS_GENERATE_UUIDS"), "0") !=3D 0 && ++ strcasecmp(getenv("GS_GENERATE_UUIDS"), "no") !=3D 0)) + { + pdf_xml_tag_open_beg(s, "xmp:CreateDate"); + pdf_xml_tag_end(s); =2D-=20 2.32.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYPVlww8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j+F/wD+LW+8WvWlSI0/4+k3Pack6bYVbOwyOmGAkLd6 K91UgCQA/iveL5MRM5d1cHaZElkypnwjczvG6BT+nmTVPJkZ6pr+ =ngON -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 19 10:35:35 2021 Received: (at 49640) by debbugs.gnu.org; 19 Jul 2021 14:35:35 +0000 Received: from localhost ([127.0.0.1]:59681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5UMp-0003Hy-GQ for submit@debbugs.gnu.org; Mon, 19 Jul 2021 10:35:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5UMo-0003Hm-49 for 49640@debbugs.gnu.org; Mon, 19 Jul 2021 10:35:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43706) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5UMh-0005JM-PI; Mon, 19 Jul 2021 10:35:27 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=42872 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5UMh-0005Ei-74; Mon, 19 Jul 2021 10:35:27 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Guillaume Le Vaillant Subject: Re: bug#49640: [PATCH core-updates] gnu: ghostscript: Improve reproducibility of PDF document generation References: <87eebucyt8.fsf@kitej> Date: Mon, 19 Jul 2021 16:35:18 +0200 In-Reply-To: <87eebucyt8.fsf@kitej> (Guillaume Le Vaillant's message of "Mon, 19 Jul 2021 11:45:07 +0000") Message-ID: <87k0lmnzh5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49640 Cc: 49640@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Guillaume, Guillaume Le Vaillant skribis: > When trying to solve a reproducibility issue when generating the > PDF documentation of the txr software (see [1]), Paul Patience noticed > that ghostscript writes a creation date in the PDF even when the > GS_GENERATE_UUIDS environment variable is set to "0". > > The attached patch updates 'ghostscript-no-header-creationdate.patch' to > fix this issue. > > Given the amount of rebuilds caused by modifying ghostscript, this > should go to core-updates, but is core-updates in freeze state already, > or can I push this patch right now? [...] > From db5962c68099f835350c24c8a3f889b9fa1f8a8e Mon Sep 17 00:00:00 2001 > From: Guillaume Le Vaillant > Date: Mon, 19 Jul 2021 11:48:12 +0200 > Subject: [PATCH] gnu: ghostscript: Improve reproducibility of PDF document > generation > > * gnu/packages/patches/ghostscript-no-header-creationdate.patch: Disable > writing "xmp:ModifyDate" and "xmp:CreateDate" if GS_GENERATE_UUIDS is s= et to > "0" or "no". LGTM, you can push to =E2=80=98core-updates=E2=80=99. Was this submitted u= pstream? Note: when =E2=80=98core-updates=E2=80=99 is frozen, we=E2=80=99ll fork =E2= =80=98core-updates-frozen=E2=80=99 so that people can happily keeping messing up on =E2=80=98core-updates=E2=80= =99. This was suggested some months ago during the Guix Days and I think it can make things smoother! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 19 11:24:09 2021 Received: (at 49640-done) by debbugs.gnu.org; 19 Jul 2021 15:24:09 +0000 Received: from localhost ([127.0.0.1]:59843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5V7p-0002jo-38 for submit@debbugs.gnu.org; Mon, 19 Jul 2021 11:24:09 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5V7l-0002jA-OJ for 49640-done@debbugs.gnu.org; Mon, 19 Jul 2021 11:24:07 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 53689240103 for <49640-done@debbugs.gnu.org>; Mon, 19 Jul 2021 17:23:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1626708239; bh=UXy3AOFEgBms93zTd8n6Fe7f0Ejch198nv05zPgWls0=; h=From:To:Cc:Subject:Date:From; b=D139GKrKp1a4mELqX5R+cOp56Pi7PF1+fISUxaXVmelYr91DMNlrlnuq1f/cz+qwO EjpJ4AZ+UWZXwVN/Yjn8Xa/NVbDt/3uAzGzz5IAG8+hHeqj05eelb3F93IO1fEwspL RPPoZp5tMzyXtnJVp0iNND9GJGRc1O4ALOOWJ8D/4xYbjgFckfMtFJL9YOjd4ttt2S MPatQNJU9GbUJtZti6NgRE62ANQd4WC0XFvl/4a7og69x6llxzjtoL9RUq+5IAShtU VXgFNQ+G+VuHdsVAk20SpXFNPGrOFbMjwe/qtkNkg4WoEr1baZf/sR3PJpZ8fM8aE8 U7ECSNZcKoIKw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GT5Gk2LgZz9rxD; Mon, 19 Jul 2021 17:23:58 +0200 (CEST) References: <87eebucyt8.fsf@kitej> <87k0lmnzh5.fsf@gnu.org> From: Guillaume Le Vaillant To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#49640: [PATCH core-updates] gnu: ghostscript: Improve reproducibility of PDF document generation In-reply-to: <87k0lmnzh5.fsf@gnu.org> Date: Mon, 19 Jul 2021 15:23:57 +0000 Message-ID: <878s22cooi.fsf@kitej> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49640-done Cc: 49640-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Ludovic Court=C3=A8s skribis: > LGTM, you can push to =E2=80=98core-updates=E2=80=99. Done in db5962c68099f835350c24c8a3f889b9fa1f8a8e. Thanks for the review. > Was this submitted upstream? No, in [1] upstream indicates explicitly that they don't want to implement reproducible builds. [1] https://bugs.ghostscript.com/show_bug.cgi?id=3D698208 From unknown Thu Jun 19 14:14:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 17 Aug 2021 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator