From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id PbQRB1YE9GA30QAAgWs5BA (envelope-from ) for ; Sun, 18 Jul 2021 12:37:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IIN9AlYE9GCnTwAAB5/wlQ (envelope-from ) for ; Sun, 18 Jul 2021 10:37:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BB4D92CF6 for ; Sun, 18 Jul 2021 12:37:09 +0200 (CEST) Received: from localhost ([::1]:60124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m54AW-00021e-VH for larch@yhetil.org; Sun, 18 Jul 2021 06:37:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m54AQ-00021M-Cq for guix-patches@gnu.org; Sun, 18 Jul 2021 06:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m54AQ-0007ox-56 for guix-patches@gnu.org; Sun, 18 Jul 2021 06:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m54AQ-0004No-3k for guix-patches@gnu.org; Sun, 18 Jul 2021 06:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49517] [PATCH] gnu: txr: Build documentation and update to 265. Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Jul 2021 10:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49517 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Kaz Kylheku Cc: "Paul A. Patience" , 49517@debbugs.gnu.org Received: via spool by 49517-submit@debbugs.gnu.org id=B49517.162660461816838 (code B ref 49517); Sun, 18 Jul 2021 10:37:02 +0000 Received: (at 49517) by debbugs.gnu.org; 18 Jul 2021 10:36:58 +0000 Received: from localhost ([127.0.0.1]:55264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m54AM-0004NW-7a for submit@debbugs.gnu.org; Sun, 18 Jul 2021 06:36:58 -0400 Received: from mout02.posteo.de ([185.67.36.66]:44863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m54AJ-0004NI-Gk for 49517@debbugs.gnu.org; Sun, 18 Jul 2021 06:36:57 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2473F240103 for <49517@debbugs.gnu.org>; Sun, 18 Jul 2021 12:36:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1626604609; bh=JRkIPV1oO21K2mOYItRLi8YU17O9EvQ0V8gaiwnYAx0=; h=From:To:Cc:Subject:Date:From; b=D6GCYKZTvzQatycOO8j60dwZzGdjzGPLTU9aF41BU1XSfC/T7xmNuqsNL06tAB3Go 630P8awuJmS0hW6LBWNlfm/wk7VKWdk/EFg9wWSbldauUWH0XE8A13ERb/p3sIB22p heImHHCRD8pTBuGXMIfgmVB5zJBCZTcfZEcQpep0qmi+7vAck71Xix6GBHQUQ6Blqt dHUd7WPaTi5cTv5/e/Ycz4jFr5kyFMbghI61zbVfplNqRGaRvrElel+iunQrNluOmq 6bDpz9uNyHsO6RT2Iahy0QGWBavL4wC0T0O8t6d5VNkmZQmaKDkl1ERqhWs1+iUqHT cLMzumj6iiasA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GSLxq65Myz9rxK; Sun, 18 Jul 2021 12:36:47 +0200 (CEST) References: <87o8b1p8k1.fsf@kitej> <3ae1061ea0a61b579c48f9ea7b4f4832@mail.kylheku.com> <96d55c0d8940c64eca79aa4a15a3cb8f@mail.kylheku.com> From: Guillaume Le Vaillant In-reply-to: <96d55c0d8940c64eca79aa4a15a3cb8f@mail.kylheku.com> Date: Sun, 18 Jul 2021 10:36:36 +0000 Message-ID: <874kcr7vt7.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626604629; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Ol2HdgjfxID1x3tuls2lFO4ksPwyqRHzRWCm9R8PVOQ=; b=YaKVYbKxrlBedyxblzzz+nxlOyRE2ABf18bIDl2y1rPFvHuxC64H95voPyyuGdre/n+SJ+ tVYAwhq20NOw7zFFBYPCJiIbCzDs49NHkKq3sF9lxbfT76uV8+WT2H6GF93/ewfSWWmo2h bEuY/MXZT+Nmd/n4lhd8FoVxdurg0siFHe3UOoTPOe81/Z/iUC6ca5P9RegQ6Gz10RmS17 SB6AxcHRVjGEcY6yO6umkcvChvJqfQxhNYqojS5x1OttBfG/42QpCsnYhXbKicqWN25WVo 1zoB1PZym+xqvdqfBTiurDam/mrivMwWqH2T4iPyIWiTMHPrCxEBW61y4K3aWg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626604629; a=rsa-sha256; cv=none; b=s4lt7F1B+dPEbCoENy/gCfH+8QhpH69itffomlofLAxVj+Duwrh510Nvtd+AUkDnnre67F bXEVM33MiRkX4wamknd188pTBwcwJNJPqNYadcVXo5jQA9CpW+wWkpZjWEkEiaPptUIP56 NfEZzC3kdf/tcSWL+7svfhpZxrX2aTMWKSwZc2MFMkzODnvS8yl998Nbfzdo8gK2DHJlAf igDPnW+KypwcUXiDDcBy1XXkO9uKo8cAaifwVg/qlJOm1nAEVkrnNI9wh0M8cbxEpyxK1q iaJ7iefVf6AJSmnB0hyjwmoe0lo+ao9QrOY/KO49F1Ag/jCOWbcZGjg96l2gkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=D6GCYKZT; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=D6GCYKZT; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: BB4D92CF6 X-Spam-Score: -0.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: yHVM9NSKSD7J --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Kaz Kylheku skribis: > On 2021-07-17 15:51, Kaz Kylheku wrote: >> On 2021-07-17 02:57, Guillaume Le Vaillant wrote: >>> Hi, >>> When testing the patch to build the HTML and PDF documentation, >>> I noticed that the 'share/doc/txr-263/txr-manpage.pdf' file is not >>> reproducible. There are some timestamps and UUIDs in it that change at >>> each build (diffoscope output attached). >>> Could you take a look at that and see if there's a way to make it >>> reproducible? >>> Thanks. >> Hi Guillaume, >> Thank you for your report. I don't see anything in the pdfroff=20 >> documentation >> about getting rid of this. I might use a program similar to this one >> to just overwrite the UUIDs and dates: > > I've noticed that there are some dates in the document which > respond to SOURCE_DATE_EPOCH: > > 2 0 obj > < /CreationDate(D:20210717203740-07'00') > /ModDate(D:20210717203740-07'00') > /Creator(groff version 1.22.3)>>endobj > > If I build with the SOURCE_DATE_EPOCH environment variable, > these dates from Ghostscript follow that variable. > That's why Guillaume isn't seeing an issue in that section > of the file. Hi Kaz, I tried your patch and it doesn't fix all the timestamps in the environment used to build Guix packages: - Timestamps have the "YYYY-MM-DDTHH:MM:SSZ" format instead of "YYYY-MM-DDTHH:MM:SS+00:00" - There are two "...Date(D:YYYYMMDDHHMMSSZ..." timestamps after the XML block, although SOURCE_DATE_EPOCH is set to 1 in the environment With the following modified 'pdf-clobber-stamps.tl' the document becomes reproducible with Guix (but probably not in some other environments, depending on the timezone format): =2D-8<---------------cut here---------------start------------->8--- (let* ((epoch (or (tointz (getenv "SOURCE_DATE_EPOCH")) 0)) (isotime (time-string-utc epoch "%FT%TZ")) (pdf (file-get-string "txr-manpage.pdf")) (start (search-str pdf "....-..-..T..:..:..Z/ `Date>@isotime`)) (assert (eql (len xml) orig-len)) (set [pdf start..end] xml) (upd pdf (regsub #/Date\(D:..............Z/ "Date(D:19700101000001Z")) (file-put-string "txr-manpage.pdf.temp" pdf) (rename-path "txr-manpage.pdf.temp" "txr-manpage.pdf")) =2D-8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYPQENA8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j9RFQD9HNpMepapt1Fu9EU+lnJXYgoBYMmPwTidd/1x tfjnstMA/2xOoFinkjN6uv/UTW1cY2JzGrewvfmBfzVS9PIBvF9v =tzAy -----END PGP SIGNATURE----- --=-=-=--