From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gC1ZA7+xfWchJwEAe85BDQ:P1 (envelope-from ) for ; Tue, 07 Jan 2025 22:59:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gC1ZA7+xfWchJwEAe85BDQ (envelope-from ) for ; Tue, 07 Jan 2025 23:59:11 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=hCmAR3Nc; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=UnUFuNfS; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736290750; 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=cj9g9yZzyQu7cJmxcOtNeHihSCwYN+8sU1YygcTxB7U=; b=TrVuEObVvT8OQMiyTW02EQqiXqo+kduOv9n5L0g6gsTefpGKVgvj5Bi+auAqSCVAqJt/7H HFzT5YVydPT6GPUbTJ1l6HqmIOwkuIlNeLPZGyqUUNs1gx4ZM5DP31BX/NebLSuPfiSUfT K248fTyRKR6xEZEagiMTDWudhRfhwrPSHQFbfWgVAuLo41kKcZZbScbpCnlOMTcX6l5gAA Cf44OVD8VV2a7lYI3JvxAtqz7NiTeXd4BYOyA6J3dRBm244Q6uuEILX8NIhqAwDWtLNuFr oypefhvPWzUkUJGI1mjKIfupFFja/Qi81iZKhl0HycQgqMHCWwWTcK18HvNHjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=hCmAR3Nc; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=UnUFuNfS; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736290750; a=rsa-sha256; cv=none; b=iFHyyLOSdRht7kmjZp/1vHq3oGiO7Z4AGEX6abgaOIvpsO9RSql/PDY+E847dw7xY27erF KjJWHfQ3XFSYUQa9a8udo9nZEc38MsFScL75nv4V2PARW2nl4Z9ohqSzUiYlvx+7qWYTCi hojdHNRSXzx5B5alMSiomvowvBIS1220hFgU1yp67Vx/w1W/7Pwfud9qnm5UYWclCvwczz K2uz2alo2M4FsYMw91Il7trwCz3/GmUU4CG0ht1fUuL98MmJ9L9KnXFdf15jkrFkAIlwdt 4+OL2QmpPgMsbfd1H6OZXWLWFF3E+iTMJHIRotyZeGocq5/PU+pgIC9KXbthBA== 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 C922B641E8 for ; Tue, 07 Jan 2025 23:59:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVIXS-0002xV-3t; Tue, 07 Jan 2025 17:59:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVIXO-0002xD-TU for bug-guix@gnu.org; Tue, 07 Jan 2025 17:59:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tVIXO-0007ip-Kb for bug-guix@gnu.org; Tue, 07 Jan 2025 17:59:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=cj9g9yZzyQu7cJmxcOtNeHihSCwYN+8sU1YygcTxB7U=; b=hCmAR3NcqBRMvoZtL98djnAMZ6xCQj7WImR6fh32U4GLJ1qIBuWBEoNsGCfI8TRcQ6NaaUH0W1B331by7SqbsaXQ5DrdMxgSabDUuB1PfnRAJN+2sYh/VEeUX6U3Wk4g30RcByseSZmSnBKPw92M4IyZsmTgStos4/Eg1zoO0J5Xw8+WdGVwwYZs4W5RE2Ab9F97glFEdMlZ67/IEQa/OwyGyfzY8hlNK/wPrZIP6/nJt8scroSwuwyEKm9ov3s2ZEfBeRnmGMqzqudij7lVEiKEKqP6opQ/vZSo00jP7RoFuKc62vR0F38A9HXzJx6HeRqKCAdafURi3UOFCWWYdg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVIXO-00047J-50 for bug-guix@gnu.org; Tue, 07 Jan 2025 17:59:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#75090: Make 'guix pack -f docker' tarballs reproducible? Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 07 Jan 2025 22:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75090 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Josefsson Cc: 75090@debbugs.gnu.org Received: via spool by 75090-submit@debbugs.gnu.org id=B75090.173629069515757 (code B ref 75090); Tue, 07 Jan 2025 22:59:02 +0000 Received: (at 75090) by debbugs.gnu.org; 7 Jan 2025 22:58:15 +0000 Received: from localhost ([127.0.0.1]:45088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVIWd-000465-9q for submit@debbugs.gnu.org; Tue, 07 Jan 2025 17:58:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52970) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVIWb-00045k-S8 for 75090@debbugs.gnu.org; Tue, 07 Jan 2025 17:58:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVIWT-0007dg-Fv; Tue, 07 Jan 2025 17:58:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=cj9g9yZzyQu7cJmxcOtNeHihSCwYN+8sU1YygcTxB7U=; b=UnUFuNfSkF3dvcAjP34T OWe+42KQ5plF2Cjnz9gTxyUu/8IcwAYPEK2s/olWoAlIYR/Sswnn9J9kml2Gg2sv2JMZC6/mLS0Za LQjESpHKyk3BB80YmxrGZvmuRaE0f5jRdSCM5uIjH0ZWWJTycNSjKE1Na71v6xyjaFcQ0/yCXv6Hh KoyJyMAa9sa7TYF+2aAYLrP9N0XzyisNH+mzuQqDXbXM0PhbWTq9vdzsQTamrQKyvTUIaXc6gQQi/ URBbZJun3VFIV4Vhvkp7RDJjkf2BY1/21u2mn8ItroW7VJFECUYvjDJVi3NR7AHwvY2HQKAnZbxjD CKOMk0JacAbHTA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87msgjofih.fsf@kaka.sjd.se> (Simon Josefsson's message of "Wed, 25 Dec 2024 18:10:14 +0100") References: <87msgjofih.fsf@kaka.sjd.se> Date: Tue, 07 Jan 2025 23:57:41 +0100 Message-ID: <87jzb6xme2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -0.38 X-Spam-Score: -0.38 X-Migadu-Queue-Id: C922B641E8 X-TUID: dP1jMC6pXndS Hi Simon, Simon Josefsson skribis: > I am creating docker archives using: > > guix pack guix bash-minimal coreutils-minimal net-base --save-provenance = -S /bin=3Dbin -S /share=3Dshare -f docker --image-tag=3Dguix --max-layers= =3D8 --verbosity=3D2 > > To my surprise the output was not reproducible between re-runs. > > The reason is because of the timestamp and ownership information in the > outer tarball. The internals are identical and reproducible. See > diffoscope output below. > > I tried to work around it by wrapping either the 'guix pack' or > 'guix-daemon' commands with this environment variable, which I suggest > for inspiration as additional parameters to tar: > > TAR_OPTIONS=3D"--owner=3D0 --group=3D0 --numeric-owner --sort=3Dname --mo= de=3Dgo+u,go-w --mtime=3D@0" > > I would prefer 'guix pack' produced reproducible archives by default. Indeed. I sent a fix based on your suggestion: . Thanks, Ludo=E2=80=99.