From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id APrOMTkJ7WKjWwEAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 14:12:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yLXNMTkJ7WJSnAAA9RJhRA (envelope-from ) for ; Fri, 05 Aug 2022 14:12:41 +0200 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 98FF68C96 for ; Fri, 5 Aug 2022 14:12:41 +0200 (CEST) Received: from localhost ([::1]:57640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJwC0-0001vk-P3 for larch@yhetil.org; Fri, 05 Aug 2022 08:12:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJcsV-0002pF-GF for guix-devel@gnu.org; Thu, 04 Aug 2022 11:35:22 -0400 Received: from out1.migadu.com ([91.121.223.63]:43547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJcsP-0000bw-3n for guix-devel@gnu.org; Thu, 04 Aug 2022 11:35:11 -0400 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reproduciblemedia.com; s=key1; t=1659627306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0M4jrNKA4AC8x37Hk7ao732S3rPjkOA5KY3p5mzVuyQ=; b=lG0mV349tXEWa8ONGhiDyYPikPoyYLgV2vvp1n16FEhC9rrqq8OHlcuRk6LJraMusif0/q lPiJ5I/eSwcrd3YU6jd44eYRgpnK7tmAwmYmFjX2z96jYBLJExUf4FIKrplvh0y57RvoNK RLY6c9zgbYTY7gHGTYhpr50kxxvhUlI= Date: Thu, 04 Aug 2022 15:35:05 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: blake@reproduciblemedia.com Message-ID: <95f927abedd010a883f52fd641d88cd9@reproduciblemedia.com> Subject: Re: A real-life test of long-term reproducibility To: "Konrad Hinsen" , "Guix Devel" In-Reply-To: References: Received-SPF: pass client-ip=91.121.223.63; envelope-from=blake@reproduciblemedia.com; helo=out1.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 05 Aug 2022 08:11:58 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659701561; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0M4jrNKA4AC8x37Hk7ao732S3rPjkOA5KY3p5mzVuyQ=; b=ZMYjWp4GUrKq+2TURO7M81dfyHW/lp7JTHknCvsyhIL1mjkcfVe5vSiTZ6qMGTGbMLVwBJ 2JVdnig3brhKAGyuxVetwjomZ4xe9A/tFXHQL/v4HOGyvrSOS7F9WtxJMZgzzP5irPKJ9v RFiJTtXImhngr5xeGbNDSpKl1Xe0X/YHGfjwlDWmxVkbI7Yjq4yuIh8dgc6VbVhH72r7cu z7Kok0r1ZNQmhv/8IKYZ4127mMqpd5FwjbSbjcwc5OcTgv8QSvAutRkpzQL9xFXC+wWfXQ Z4/FnyuBLQ62fB8uJjUc1e4f2DusDcAZhsAssa0/q/xmMWVZv1O6YZePXJHlzw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659701561; a=rsa-sha256; cv=none; b=ctYMUCpS98zAOb/FeK05PKdPiOIwRhHdKUGueCU34AKkwHXsEwdlDgAmqHg20UwApQBNiU EYTuUbJv8Kx+Lq7548S2hdVoSK2bl2sEeCk1a1s49LdLLmUouHY1bMuuINbQBjWZgFD7OY opr1LRdgizUG23jY97oGQVWmbBy4rkTvHwhET+r2p4c97hO6IoPWsH2hJMn0zbQPxx+l63 n/pKEeFupwfPGnHqtwMjl+JCUY4boc+Dku8Dh7w+kC2oL5gKg0CTwoiHkKg+m4i+HOCKch +sWgOyKobuvZUIomBuJzLLryucBfrw7BPrkcFXGjAmA2BHFDAT4u96rlTlwmgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=reproduciblemedia.com header.s=key1 header.b=lG0mV349; dmarc=pass (policy=quarantine) header.from=reproduciblemedia.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=reproduciblemedia.com header.s=key1 header.b=lG0mV349; dmarc=pass (policy=quarantine) header.from=reproduciblemedia.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 98FF68C96 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: paaRO/uo2mpo Hi Konrad, =0A=0AJust one quick comment:=0A=0AAugust 4, 2022 8:43 AM, "Ko= nrad Hinsen" wrote:=0A=0A> Hi everyone,=0A> = =0A> One of our claims is that Guix can rebuild code identically as long = as=0A> we have a machine with a Linux kernel and a POSIX filesystem.=0A= =0AThis actually isn't the claim. Reproducibility is only guaranteed on= =0AGuix systems. It's important that you reproduce the entire system, whi= ch=0Ameans you will have needed to have saved the commit of your version = of=0Athe Guix package manager in order to return to that system.=0A=0ASee= the section of the Guix manual "Replicating Guix" for more info.=0Ahttps= ://guix.gnu.org/en/manual/devel/en/html_node/Replicating-Guix.html=0A=0AH= appy hacking!=0A=0A> This week=0A> I had an occasion to put this to a rea= l-life test. So far it's a=0A> failure. I can guess reasons for my failed= attempts, but I don't think=0A> they were unreasonable to try. So I'd li= ke to document something that=0A> works, to avoid others falling into the= same traps. I just don't know=0A> yet what the Right Way To Do It is!=0A= > =0A> The package I want to rebuild and use is "nmoldyn" from Guix commi= t=0A> f250a868d8c687df08559682fa68fb4ea2a1ea69. That's the commit referen= ced=0A> in my notes, obtained via "guix describe" in early 2018. I am pre= tty=0A> sure it worked fine back then.=0A> =0A> First attempt:=0A> =0A> $= guix time-machine --commit=3Df250a868d8c687df08559682fa68fb4ea2a1ea69 --= build nmoldyn=0A> Updating channel 'guix' from Git repository at 'https:= //git.savannah.gnu.org/git/guix.git'...=0A> Backtrace:=0A> In guix/store.= scm:=0A> 672:3 19 (_)=0A> In ice-9/boot-9.scm:=0A> 1752:10 18 (with-excep= tion-handler _ _ #:unwind? _ #:unwind-for-type _)=0A> In guix/store.scm:= =0A> 659:37 17 (thunk)=0A> In guix/status.scm:=0A> 815:4 16 (call-with-st= atus-report _ _)=0A> In guix/store.scm:=0A> 1298:8 15 (call-with-build-ha= ndler # =E2=80=A6)=0A> = 2168:25 14 (run-with-store # _ # _ = # _ # _)=0A> In guix/inferior.scm:=0A> 903:8 13 (_ _)=0A> In guix/channel= s.scm:=0A> 944:2 12 (_ _)=0A> 891:2 11 (_ _)=0A> In ./guix/monads.scm:=0A= > 487:9 10 (_ _)=0A> In guix/store.scm:=0A> 1996:8 9 (_ _)=0A> In guix/ch= annels.scm:=0A> 642:36 8 (_ #)=0A> = 703:11 7 (_)=0A> In ice-9/eval.scm:=0A> 619:8 6 (_ #(#(#(#) "/gnu/store/=E2=80=A6" =E2=80=A6) =E2=80=A6))=0A>= 626:19 5 (_ #(#(#(#) "/gnu/store/= =E2=80=A6" =E2=80=A6) =E2=80=A6))=0A> 155:9 4 (_ #(#(#(#) "/gnu/store/=E2=80=A6" =E2=80=A6) =E2=80=A6))=0A> 2= 23:20 3 (proc #(#(#(#) "/gnu/sto=E2= =80=A6" =E2=80=A6) =E2=80=A6))=0A> In unknown file:=0A> 2 (%resolve-varia= ble (7 . %guix-register-program) #)=0A> In ic= e-9/boot-9.scm:=0A> 1685:16 1 (raise-exception _ #:continuable? _)=0A> 16= 85:16 0 (raise-exception _ #:continuable? _)=0A> =0A> ice-9/boot-9.scm:16= 85:16: In procedure raise-exception:=0A> error: %guix-register-program: u= nbound variable=0A> =0A> I don't understand what is going wrong here, but= it may be related to=0A> the fact that the commit I am trying to go back= to is older than "guix=0A> time-machine". If that's the explanation, it = would help if Guix showed=0A> some clear error message instead of crashin= g.=0A> =0A> Next I tried checking out the source code for commit=0A> f250= a868d8c687df08559682fa68fb4ea2a1ea69, and building it from=0A> source. Th= is is a bit tricky because 2018 Guix cannot be built in=0A> today's Guix = build environment. For example, today we have Guile 3, but=0A> back then = we had Guile 2.2. So I need to do "guix environment guix" in=0A> an older= Guix, before the Guile 3 transition, but later than the=0A> introduction= of time-machine. I picked one somewhat at random:=0A> =0A> $ guix time-m= achine --commit=3De2293cbbe0cd20ddeb932e6f5616565ab468c087=0A> -- environ= ment =E2=80=93pure guix=0A> =0A> Then I did "bootstrap", "configure =E2= =80=93localstatedir=3D/var", "make=0A> check". The latter shows 15 failur= es, some of which look important:=0A> =0A> FAIL: tests/builders.scm=0A> F= AIL: tests/derivations.scm=0A> FAIL: tests/packages.scm=0A> FAIL: tests/g= uix-environment.sh=0A> FAIL: tests/guix-daemon.sh=0A> =0A> And indeed I c= annot build much with my compiled guix:=0A> =0A> $ ./pre-inst-env guix bu= ild nmoldyn=0A> =0A> hangs after a while, running a binary called "test-l= ock" for hours.=0A> =0A> Given the time lapse, I suppose there have been = incompatible changes in=0A> the build daemon, making the old Guix incompa= tible with the rather=0A> recent build daemon running on my machine. But = is there a way around=0A> this, other than installing an old Guix in a fu= lly isolated VM?=0A> =0A> And if installing the old Guix in a VM is the o= nly solution, what would=0A> be the best way to do that? I can't think of= much else than starting=0A> from another distribution (e.g. Debian) and = following the installation=0A> instructions. That's already a lot of work= , but it's made worse by the=0A> installation instructions being hidden i= nside the manual of that old=0A> commit, which I cannot easily consult.= =0A> =0A> I'd be grateful for any suggestions!=0A> =0A> Cheers,=0A> Konra= d