From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Re: Why reproducibility is breaking by metadata? Date: Wed, 03 Jul 2019 08:39:32 +0200 Message-ID: References: <71aab7b233f9f6df36e0248c86b5e020@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51751) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiYvm-0007kE-G2 for help-guix@gnu.org; Wed, 03 Jul 2019 02:39:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiYve-0003An-W0 for help-guix@gnu.org; Wed, 03 Jul 2019 02:39:45 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:42161) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hiYva-00036w-71 for help-guix@gnu.org; Wed, 03 Jul 2019 02:39:40 -0400 In-Reply-To: <71aab7b233f9f6df36e0248c86b5e020@disroot.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@disroot.org, help-guix znavko@disroot.org writes: > Hello, Guix Help! I am translating Guix manual and found that the > author is entirely given to reproducibility. It leads to such phrases > that metadata breaks reproducibility when he describes > '--save-provenance' flag of 'guix pack' command here: > > 'This option is not enabled by default because, like timestamps, > provenance information contributes nothing to the build process. In > other words, there is an infinity of channel URLs and commit IDs that > can lead to the same pack. Recording such =E2=80=9Csilent=E2=80=9D metada= ta in the > output thus potentially breaks the source-to-binary bitwise > reproducibility property. ' > > I did not expected such a categorical statement. I think, it does not > actually break reproducibility but only complicates checks. If we have > to talk about reproducibility to ignoramus, saying 'this option breaks > reproducibility option' have to have remark 'simply put' or 'plainly'. If you define reproducibility in a pragmatic way as something that can be verified without deep knowledge of file formats, then the only reasonable definition is bitwise identity. That's what anyone can check with generic tools. If you want to check that two outputs of 'guix pack' are equivalent, i.e. identical up to provenance data, then you need a separate tool for each output format (and you have to write those tools yourself because to the best of my knowledge they don't exist yet). In short, I agree with the statements made in the text. However, you are completely right that this paragraph is not written at the right level for the typical user. Here is a proposition for improving it: --save-provenance Save provenance information for the packages passed on the command line. Provenance information includes the URL and commit of the channels in use (see Channels), which permit the recipient to locate the source code of the package definitions that were used. Provenance information is saved in the /gnu/store/=E2=80=A6-profile/man= ifest file in the pack, along with the usual package metadata=E2=80=94the nam= e and version of each package, their propagated inputs, and so on. Note that inclusion of provenance information makes the resulting archive non-reproducible in the sense that two archives containing identical binaries can be different if they were built using different channels or different commits. Does this look better to you? Philosophical side note: the right way to store provenance information is outside of the data they refer to. Unfortunately, with file-based storage, there is no clean way to attach the provenance information securely to the data without putting it into the same file. Konrad.