From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EMgWJeiJHWB/UAAA0tVLHw (envelope-from ) for ; Fri, 05 Feb 2021 18:09:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AHbNIOiJHWDlMgAAbx9fmQ (envelope-from ) for ; Fri, 05 Feb 2021 18:09:44 +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 30F9594030E for ; Fri, 5 Feb 2021 18:09:44 +0000 (UTC) Received: from localhost ([::1]:43018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l85Y6-0000Lo-TY for larch@yhetil.org; Fri, 05 Feb 2021 13:09:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l84r0-00073P-Es for guix-devel@gnu.org; Fri, 05 Feb 2021 12:25:10 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:52775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l84qs-0005w6-Ms; Fri, 05 Feb 2021 12:25:08 -0500 Received: by mail-wm1-x333.google.com with SMTP id l12so6640896wmq.2; Fri, 05 Feb 2021 09:25:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=FFMeggvkDshSVDqqYPmPbnH12VepxjKF1rfBifHXA8k=; b=gOTxm5Wf0uM+k1zp52CNJzu7s66XvhKRkcvVNWDg8Ae1/LiH7zp9SGpU45AJvanFk/ YrRMjYxe4Z+whjuTCJ+Z8hd+UgSxEQ5ovQ2Io1jKILjKtuAI0zIkE1ftD2v3I21D6pC5 kLbEgkrgQXMFAouC6hrXsn3LBGB4zd1BKfyfLx/8qF6Y4PXk9ft1bUwNfKGIyBivNDi9 GnYnvsYKaZrYnDrluXXkTLb8tFZfOGv/M7X5oIC4ibrzXZUS8MKOt2Q8E3pb0XHfvlBj AB+NBJOLvrACuIQo0McUws8FuPVlImYRGL2h6rVrfZB/JdedL5lYzLKPxbSQHmQxI54H pePA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=FFMeggvkDshSVDqqYPmPbnH12VepxjKF1rfBifHXA8k=; b=q1dIIKMGF1HkgoTIOVxxR6OMTsXnZ0XY9aOlb42VjrDHyrKUeOloeI7KJZhVvLgxve qayBVrZJiPfkmV/TNIvfsHrv5tDIV5mNC8SJ1axgGs1HMnbdjmjwwXpMUUcFtcvTsFK7 Yq6oXm5LqkjTQXuSVTzfxCNyT4sIrWKWbjZ7IEwmHurfdXvXfXP7ragTms2Z/SyH0Yq9 PKRqZCAXCg7OAOU3Ncwdkxm7oUDBtD8DWGwZ8V+15ghdt5A91tZRJr/UJehES13pdwVl 4ZeOj/3P2WFPvhcov7qHQ65EhCadennTI/n5nSUeh5ifH6M5wW2gCnUiLprEYpDqr30b JliA== X-Gm-Message-State: AOAM53390S0rCRthP9wZ96XaLiZG+dCYEGJ93cFZ9b43WM3CLRmu8SCA LPf+KsUicVCfs1k5s3LSwYP/cgaOeA8= X-Google-Smtp-Source: ABdhPJymrs9GVb/Gg/JAAqzIF6iuLifctMzRWEyMCMQRCaL7Xa7zpUVYYn62U+Y+G3s2wjzGwWjHtQ== X-Received: by 2002:a1c:e402:: with SMTP id b2mr4537013wmh.122.1612545900450; Fri, 05 Feb 2021 09:25:00 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id n10sm13141116wro.39.2021.02.05.09.24.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 09:24:59 -0800 (PST) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Unreproducible =?utf-8?Q?=E2=80=9Cguix?= pack -f =?utf-8?Q?do?= =?utf-8?Q?cker=E2=80=9D?= because config.scm-builder In-Reply-To: <87im766d30.fsf@gnu.org> References: <20210116182957.31075-1-ludo@gnu.org> <87wnvyv7w6.fsf@gnu.org> <86bldahz42.fsf@gmail.com> <8735ylm4zx.fsf@gnu.org> <86pn1jct3y.fsf@gmail.com> <877dnqe3to.fsf@gnu.org> <86eehycjre.fsf@gmail.com> <87im766d30.fsf@gnu.org> Date: Fri, 05 Feb 2021 18:22:10 +0100 Message-ID: <86lfc2bfb1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=gOTxm5Wf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 30F9594030E X-Spam-Score: -3.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: aVzx/+nOKV5P Hi Ludo, On Fri, 05 Feb 2021 at 11:09, Ludovic Court=C3=A8s wrote: > So I guess you can propose a patch and let someone else review it. > :-) I will. :-) > Looks like tar made this file a hard link in one case and not in the > other. This is weird because we don=E2=80=99t ask it to create hard links > (there=E2=80=99s even a comment in (guix scripts pack)). I have 2 machines running Debian and one running Ubuntu. The 2 Debian produces the same things. Ubuntu not. > Is this docker image the result of the same derivation? Could you try > building that derivation on different machines? (You can copy the .drv > around with =E2=80=98guix copy=E2=80=99.) It was built with different derivations. I mean the scenario where Alice wants to rebuild what Bob did. Now, let use the same derivation. Some details in case I am doing something wrong: --8<---------------cut here---------------start------------->8--- $ echo Ubuntu $ guix gc -D $(guix pack -f docker hello) finding garbage collector roots... [0 MiB] deleting '/gnu/store/nkvlqwzvxdlhzlc7vhfcngxc19x2ay2f-docker-pack.tar.gz' deleting `/gnu/store/trash' deleting unused links... C-c C-c =20 $ guix gc -D $(guix pack -f docker hello -d) finding garbage collector roots... [0 MiB] deleting '/gnu/store/323k33sfx869d0nkh69ary8sj6xiy4s4-docker-pack.tar.gz.drv' deleting `/gnu/store/trash' deleting unused links... C-c C-c --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ echo Debian $ guix copy $(guix pack -f docker hello -d) --to=3Dmeary guix copy: sending 1 store item (0 MiB) to '193.48.40.110'... /gnu/store/323k33sfx869d0nkh69ary8sj6xiy4s4-docker-pack.tar.gz.drv --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ echo Ubuntu $ guix build /gnu/store/323k33sfx869d0nkh69ary8sj6xiy4s4-docker-pack.tar.gz= .drv substitute: mise =C3=A0 jour des substituts depuis =C2=AB https://ci.guix.g= nu.org=C2=BB... 100.0 % La d=C3=A9rivation suivante sera compil=C3=A9e : /gnu/store/323k33sfx869d0nkh69ary8sj6xiy4s4-docker-pack.tar.gz.drv=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 construction de /gnu/store/323k33sfx869d0nkh69ary8sj6xiy4s4-docker-pack.tar.gz.drv... tar: Removing leading `/' from member names tar: Removing leading `/' from hard link targets construction de /gnu/store/323k33sfx869d0nkh69ary8sj6xiy4s4-docker-pack.tar.gz.drv r=C3=A9u= ssie /gnu/store/nkvlqwzvxdlhzlc7vhfcngxc19x2ay2f-docker-pack.tar.gz=20=20 --8<---------------cut here---------------end--------------->8--- So tar is appearing here=E2=80=A6 Hum?! However, if I redo the same steps,= it does not. Well, I do not like that=E2=80=A6 Building on Ubuntu using the derivation from Debian gives the same image as building on Ubuntu using the derivation from Ubuntu. I thought the tools were captured by the commit: same commit, same tools. Well, I miss something=E2=80=A6 > Could you also show the output of: > > stat /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/libexec/get= conf/POSIX_V6_LP64_OFF64 > > on the two machines you used? First on Debian and second on Ubuntu --8<---------------cut here---------------start------------->8--- $ stat /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/libexec/getco= nf/POSIX_V6_LP64_OFF64 File: /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/libexec/getc= onf/POSIX_V6_LP64_OFF64 Size: 29960 Blocks: 64 IO Block: 4096 regular file Device: 801h/2049d Inode: 8129616 Links: 5 Access: (0555/-r-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2021-02-05 17:37:15.728728952 +0100 Modify: 1970-01-01 01:00:01.000000000 +0100 Change: 2020-06-17 12:40:06.389935679 +0200 Birth: - --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ stat /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/libexec/getco= nf/POSIX_V6_LP64_OFF64 Fichier : /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/libexec/ge= tconf/POSIX_V6_LP64_OFF64 Taille : 29960 Blocs : 64 Blocs d'E/S : 4096 fichier P=C3=A9riph=C3=A9rique : 814h/2068d In=C5=93ud : 148900093 Liens : 1 Acc=C3=A8s : (0555/-r-xr-xr-x) UID : ( 0/ root) GID : ( 0/ root) Acc=C3=A8s : 2021-02-05 17:46:05.537903382 +0100 Modif. : 1970-01-01 01:00:01.000000000 +0100 Changt : 2020-12-04 23:16:33.155711694 +0100 Cr=C3=A9=C3=A9 : - --8<---------------cut here---------------end--------------->8--- =20=20 > I wonder if it could be that tar nowadays decides to preserve hard links > by default and one of your machine had this file hard-linked while the > other one didn=E2=80=99t. Wow, I thought that the same tar was used the one provided by Guix and not by the host. For sure the default tar are not the same on both machine (v1.30 for Debian and v1.29 for Ubuntu). What is the md5sum checksum of =E2=80=99guix pack -f docker hello=E2=80=99 = on Guix System for commit b9a54aa? Thanks for the help, simon