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 oBr5LSUaHWDDfwAA0tVLHw (envelope-from ) for ; Fri, 05 Feb 2021 10:12:53 +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 YArQKSUaHWAmbAAAbx9fmQ (envelope-from ) for ; Fri, 05 Feb 2021 10:12:53 +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 63D19940309 for ; Fri, 5 Feb 2021 10:12:53 +0000 (UTC) Received: from localhost ([::1]:34952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7y6e-0000ht-Be for larch@yhetil.org; Fri, 05 Feb 2021 05:12:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7y34-0005bA-14 for guix-devel@gnu.org; Fri, 05 Feb 2021 05:09:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58405) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7y33-00057O-FH; Fri, 05 Feb 2021 05:09:09 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33700 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l7y32-0005BK-UH; Fri, 05 Feb 2021 05:09:09 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun 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 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> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 17 =?utf-8?Q?Pluvi=C3=B4se?= an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 05 Feb 2021 11:09:07 +0100 In-Reply-To: <86eehycjre.fsf@gmail.com> (zimoun's message of "Tue, 02 Feb 2021 21:11:33 +0100") Message-ID: <87im766d30.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: -2.85 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 63D19940309 X-Spam-Score: -2.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: hlfqBuMZcFNU Hi, zimoun skribis: > then the sysconfdir is set to /usr/local/etc because it is the default. > And so it leads to subtle differences really hard to guess. I think it > is worth to add one sentence or footnote at the end of the section > =C2=ABRunning Guix Before It Is Installed=C2=BB, right after: > > Note that ./pre-inst-env guix pull does not upgrade the local > source tree; it simply updates the ~/.config/guix/current > symlink (see Invoking guix pull). Run git pull instead if you > want to upgrade your local source tree. > > Something like: =C2=ABNote that =E2=80=99guix pull=E2=80=99 preserves the= settings of the host > Guix, for instance =E2=80=99sysconfdir=E2=80=99, and by default the GNU s= tandards set > =E2=80=99prefix=E2=80=99 to =E2=80=99/usr/local/=E2=80=99 and =E2=80=99sy= sconfdir=E2=80=99 to =E2=80=99$prefix/etc=E2=80=99, whereas > regular Guix uses =E2=80=99--sysconfdir=3D/etc/=E2=80=99.=C2=BB > > WDYT? As often, I have mixed feelings: we would end up +/- duplicating the Standards in the manual, possibly even without citing the primary source (I could be a Wikipedian :-)). So to me that=E2=80=99s not great. OTOH, as you write, letting people stumble upon this kind of issue is not an option, either. So I guess you can propose a patch and let someone else review it. :-) >> You did find other differences eventually though, right? > > The produced tarballs have the same Guix hash, i.e., all the same > inputs, but not the same outputs, compare with commit b9a54aa: [...] > --- /tmp/docker-meary/4ca83868d5e98cb06179a2a7372afe029c10d43bdc9fbfcc577= 1b89da74889b8/layer.tar > +++ /tmp/docker-pfiuh02/4ca83868d5e98cb06179a2a7372afe029c10d43bdc9fbfcc5= 771b89da74889b8/layer.tar > =E2=94=9C=E2=94=80=E2=94=80 file list > =E2=94=82 @@ -823,17 +823,17 @@ > > [...] > > =E2=94=82 --r-x=E2=80=A6 29960 gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr= -glibc-2.31/libexec/getconf/POSIX_V6_LP64_OFF64 > > [...] > > =E2=94=82 +hr-x=E2=80=A6 0 gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr= -glibc-2.31/libexec/getconf/POSIX_V6_LP64_OFF64 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)). 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.) Could you also show the output of: stat /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/libexec/getco= nf/POSIX_V6_LP64_OFF64 on the two machines you used? 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. Ludo=E2=80=99.