From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WJhZBqP182BqugAAgWs5BA (envelope-from ) for ; Sun, 18 Jul 2021 11:34:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kKk8AqP182AlTwAAbx9fmQ (envelope-from ) for ; Sun, 18 Jul 2021 09:34:27 +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 D0AA325ED8 for ; Sun, 18 Jul 2021 11:34:26 +0200 (CEST) Received: from localhost ([::1]:51258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m53Bp-0007s9-Tu for larch@yhetil.org; Sun, 18 Jul 2021 05:34:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4wc2-00073P-8T for guix-patches@gnu.org; Sat, 17 Jul 2021 22:33:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43388) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4wc1-00027X-Nh for guix-patches@gnu.org; Sat, 17 Jul 2021 22:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m4wc1-0000rm-LN for guix-patches@gnu.org; Sat, 17 Jul 2021 22:33:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49517] [PATCH] gnu: txr: Build documentation and update to 265. Resent-From: Kaz Kylheku Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Jul 2021 02:33:01 +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: Guillaume Le Vaillant Cc: "Paul A. Patience" , 49517@debbugs.gnu.org Received: via spool by 49517-submit@debbugs.gnu.org id=B49517.16265755413281 (code B ref 49517); Sun, 18 Jul 2021 02:33:01 +0000 Received: (at 49517) by debbugs.gnu.org; 18 Jul 2021 02:32:21 +0000 Received: from localhost ([127.0.0.1]:54934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4wbM-0000qq-3r for submit@debbugs.gnu.org; Sat, 17 Jul 2021 22:32:21 -0400 Received: from omta002.cacentral1.a.cloudfilter.net ([3.97.99.33]:56886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4tA7-0001yZ-6y for 49517@debbugs.gnu.org; Sat, 17 Jul 2021 18:52:03 -0400 Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id 4mjbmWgZK4bIn4tA1mHpsE; Sat, 17 Jul 2021 22:51:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1626562313; bh=f+94zKnBPHha7QElmqI23M8vYM4Q/+43/UgZQv/pq1w=; h=To:Subject:Date:From:Cc:In-Reply-To:References; b=t3F3oO1fXvA3qNHNm1juJfxmmWkO1Fv9mB4P8HeR7wotHTJu0QeG6H8yyKJnKE+Mn a86v980Q6MqJ6b0fVhGZCFX80maxGFweCu9eSCyKnIW1sNpVdZusm2v5Oo6/QTpzHd hbzjVfdVB0wjIKqLlqyUWEn1kvZkaYh/CKQHwJXgqW3VyCMLbyCsYd/g/andOzvQex Sh4Ld9t3Y8bQEuZfHpSsVLYgIWLVcRkDRStlPgJ158hzQ3B/fwXRWEbIP4nybLE9Af SQ4KTb9udl+FwAtLv72nn/iRUpfgu8pmkvGK/5XXKWr+ufy92mw/CSXKzBA/dsw7p9 3lMsgVsIlkJ3A== Received: from kylheku.com ([70.79.163.252]) by cmsmtp with ESMTPA id 4tA0mRx3gM8ol4tA0m89pA; Sat, 17 Jul 2021 22:51:53 +0000 X-Authority-Analysis: v=2.4 cv=Ua6U9IeN c=1 sm=1 tr=0 ts=60f35f09 a=95A0EdhkF1LMGt25d7h1IQ==:117 a=95A0EdhkF1LMGt25d7h1IQ==:17 a=IkcTkHD0fZMA:10 a=SMorJkV_YP8A:10 a=e_q4qTt1xDgA:10 a=r-vMztYSCw5oGDslwDcA:9 a=QEXdDO2ut3YA:10 Received: from www-data by kylheku.com with local (Exim 4.72) (envelope-from ) id 1m4tA0-0004NI-0C; Sat, 17 Jul 2021 15:51:52 -0700 X-PHP-Originating-Script: 501:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Sat, 17 Jul 2021 15:51:51 -0700 From: Kaz Kylheku In-Reply-To: <87o8b1p8k1.fsf@kitej> References: <87o8b1p8k1.fsf@kitej> Message-ID: <3ae1061ea0a61b579c48f9ea7b4f4832@mail.kylheku.com> X-Sender: kaz@kylheku.com User-Agent: Roundcube Webmail/0.9.2 X-CMAE-Envelope: MS4xfOGSXMYGZ4xGnpPIzm6BLfS33hTYZ8feVbO2uimVBnEYVNOMeeL9WGbZdI0vCsEv4MiVrZIdjWcZNg3CmLm5hHFXbCDAnasnU8/imbZc9QuN1Q6tBFSq hcGBXFBSrsZRseuSzVptzEQmBSuTmAwcz7B0wLHQ41LwXZ+KlX9mdpjkBDzdYUlJ7oX+LMRQNJI5dldUqQCzQGS4hsue7p9vlg/Q/VwuQcCSOKejslVXvzfB X-Mailman-Approved-At: Sat, 17 Jul 2021 22:32:19 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 18 Jul 2021 05:34:14 -0400 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=1626600866; 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: content-transfer-encoding:content-transfer-encoding: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=EZcba9QaTSHh9Ku0xRUHkRhNho/szNnrVl0YpSvtsVA=; b=mt1z6rI+tDX6aATJTbEve8Y6XI7me1XhfyqchtPWTd1ovWekvLXFks1c+9u4SPWbMKzML/ Smghbbax04ciIhrKGrPUlmCyZR/eJWYYIGWoeQRBFrLZ3yyeZ5s/fdensbDNE6/xSFvqo0 nwo0Jx1heb5jXShbUdZA0xVrjciC/R+q2bBYSc+/ZNQzQFWfd1nkmUU4KYZuSySW4irKM4 u03MSzaHHj9IoN3b120qpCt1+ZiBmgVQ2dHCjjE5mlA8nb1H5Dd3pIPBYuwh0t4mYkIQzY a9Nf2XWeGpc3TNLtBOoSZUNuKyaizZ+ySkhwS9RsshJyCz1EDlQal5FXmN9Umw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626600866; a=rsa-sha256; cv=none; b=GNPJaS8iCZiy1Dk5ppgafMHyYQwXgYuFYyaDqIkx76shSPQCdjikiOybsWZQOhNL5t2s5p kuBpbX5cQHm/JQwWuYaeDg+y+GLip3pEdBn+X+7MCmrUF4LIrWK+4TuGrtIL3Cinr3pqKa 613qxuZNmlvQulLDPBjUnpJKg1AWsE1ckWFSrjNwp9/wmkt4vwZJ73G6wBiUO61MV/WKiO tb7HQstViskMqt+EQX8tFmEKbiA/xkj1fNDf2n8A1LyN/FKqlwDBzS3AH3dxsdDu8rPj8f OLvmNDFoNbiHp8SxxDzNKDt7Dr2xopiOT1CxBnHyZgrSf+/UxtaBsEohpzgJNg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=shaw.ca header.s=s20180605 header.b=t3F3oO1f; dmarc=fail reason="SPF not aligned (relaxed)" header.from=kylheku.com (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-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=shaw.ca header.s=s20180605 header.b=t3F3oO1f; dmarc=fail reason="SPF not aligned (relaxed)" header.from=kylheku.com (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: D0AA325ED8 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0rXSRmK054iF On 2021-07-17 02:57, Guillaume Le Vaillant wrote: > Hi, >=20 > 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). >=20 > 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: (let* ((pdf (file-get-string "txr-manpage.pdf")) (start (search-str pdf "....-..-..T..:..:..-..:../ "Date>1970-01-01T00:00:00-00:00")) (assert (eql (len xml) orig-len)) (set [pdf start..end] xml) (file-put-string "txr-manpage.pdf.temp" pdf) (rename-path "txr-manpage.pdf.temp" "txr-manpage.pdf")) I have some questions. 1. When, for the sake of reproducible binary builds, we replace date stamps with fixed dates, is there a preference for what date to use? I used the Unix epoch, as you can see. I'm aware of the convention involving the environment variable SOURCE_DATE_EPOCH. Should I use that? 2. Is there some recommended practice with regard to some ./configure option or environment/make variable to react to for ensuring reproducible builds? So that is to say, suppose I don't wish to do the above embedded XML cleaning, except when building for a distro that strives for reproducibility. For opting in to reproducibilty, should I again rely on SOURCE_DATE_EPOCH and have the build react to it? Thanks ...