From unknown Thu Sep 11 12:42:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41908 <41908@debbugs.gnu.org> To: bug#41908 <41908@debbugs.gnu.org> Subject: Status: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' Reply-To: bug#41908 <41908@debbugs.gnu.org> Date: Thu, 11 Sep 2025 19:42:01 +0000 retitle 41908 guix time-machine fails; XXXX is not related to introductory = commit of channel 'guix' reassign 41908 guix submitter 41908 Jan Nieuwenhuizen severity 41908 serious thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 17 05:28:06 2020 Received: (at submit) by debbugs.gnu.org; 17 Jun 2020 09:28:06 +0000 Received: from localhost ([127.0.0.1]:50351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlUMV-0005kP-0v for submit@debbugs.gnu.org; Wed, 17 Jun 2020 05:28:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:38486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlUMT-0005k0-BQ for submit@debbugs.gnu.org; Wed, 17 Jun 2020 05:28:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jlUMT-0003gj-5X for bug-guix@gnu.org; Wed, 17 Jun 2020 05:28:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42535) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlUMS-0005iF-5e; Wed, 17 Jun 2020 05:28:00 -0400 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=39196 helo=dundal.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jlUMO-0002so-PX; Wed, 17 Jun 2020 05:27:57 -0400 From: Jan Nieuwenhuizen To: bug-guix@gnu.org Subject: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Wed, 17 Jun 2020 11:27:53 +0200 Message-ID: <87blli11pi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, After pulling this morning, guix time-machine fails, look: --8<---------------cut here---------------start------------->8--- $ guix pull --commit=3D559491ea5b36b89b2a2f9d48dacf6a2d7e219910 Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Building from this channel: guix https://git.savannah.gnu.org/git/guix.git 559491e [...] hint: Run `guix pull --news' to read all the news. 11:23:19 janneke@dundal:~/src/guix/master $ guix time-machine --commit=3D36640207c9543e48cd6daa92930f023f80065a5d -- = environment hello Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' is not= related to introductory commit of channel 'guix' [1]11:23:25 janneke@dundal:~/src/guix/master git log --pretty=3Doneline | grep 36640207c9543e48cd6daa92930f023f80065a5d 36640207c9543e48cd6daa92930f023f80065a5d quirks: Build 'compute-guix-deriva= tion' modules with 2.2 when needed. --8<---------------cut here---------------end--------------->8--- Am I missing something? Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 18 18:29:49 2020 Received: (at 41908) by debbugs.gnu.org; 18 Jun 2020 22:29:49 +0000 Received: from localhost ([127.0.0.1]:54599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jm32b-000535-8C for submit@debbugs.gnu.org; Thu, 18 Jun 2020 18:29:49 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:45788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jm32Z-00052q-78 for 41908@debbugs.gnu.org; Thu, 18 Jun 2020 18:29:48 -0400 Received: by mail-wr1-f67.google.com with SMTP id c3so7715912wru.12 for <41908@debbugs.gnu.org>; Thu, 18 Jun 2020 15:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=dVj/DAphMWU+OWXLeZ7kNIj2Yl25Xm+quiikEMhW+O4=; b=hgBfBP/3UCjPuTydgfjfjINKGmSk7PnpUtHh9jtUWL55TA6PGDFMH/2BXqTR5T+Vi8 DfN7i5mgJU78IXQZbFX9n+jkgCPITfkl0Pk2Vd6V2btoPkdQutteHKJkjvAYT6yjD8vZ WtEyHaWP7L5T8ZHI4HpxC2X8BHzl833pruLVgXjE5w2OzL+DSnfh9idiv5+pwVNC1gw8 zEouprqZhWGz4TUgqk7lYu3inWE6HQhrSwWbU2oeRk7jFCX0G7RuFN6u/4nmR2eKm0OZ xI7ep1rCE/84nJxve7RvaUuTQ5GedWli22K5x0Qw2saTjUjlm92jjOg4KRB1pe3QKAt4 II6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=dVj/DAphMWU+OWXLeZ7kNIj2Yl25Xm+quiikEMhW+O4=; b=RImUUoPP1v8IVAPLgwv1AGnA2Fb/bOKsD16FbFxGqTKmvkskHQkG+iAcX+C/5ukTWf aGlUi7cjDM1uPPVPZOz0fECtdookra9bTPls9MXYJkZuNFZRz4fY/iAZTfxvY1F9taZG ecY5V/nFx3WV76LSHJNH0iv8Jml9mbXrBjPIyDrIVLbQiosQE/Np35Oh9kKcgTwXD3cl 4EXJfElEE3Hyg6khoWSl0eM/S4gL1XJlgxHd2h0DbBZ1kmyJOIEH+tjoYsze/IYl3m2s djFM+I41lac6tUshHznWAkXfJuXxhFW08NwFvAkVHL42YG8pP4CZdHiSNGMDSvaB1jWq SmEw== X-Gm-Message-State: AOAM532YNkICxrjDmIhfRvSAxuvWY5vCsRMLXsRlv7OL6jO0Xw49ce3T wVPq2rehsVQIAARbWhN/pVdpY47aT4A= X-Google-Smtp-Source: ABdhPJy2YPiROmSzAV7/xsfBYTMEUKNxOfqA/tz8MF5TpzUIQChBtp5QPRy9J2fxcMPoGoTDfJPEUw== X-Received: by 2002:a5d:6802:: with SMTP id w2mr717494wru.68.1592519381014; Thu, 18 Jun 2020 15:29:41 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j24sm1475192wrd.43.2020.06.18.15.29.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 15:29:40 -0700 (PDT) From: zimoun To: Jan Nieuwenhuizen , 41908@debbugs.gnu.org Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' In-Reply-To: <87blli11pi.fsf@gnu.org> References: <87blli11pi.fsf@gnu.org> Date: Fri, 19 Jun 2020 00:29:39 +0200 Message-ID: <867dw4vwh8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41908 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dear Janneke, On Wed, 17 Jun 2020 at 11:27, Jan Nieuwenhuizen wrote: > $ guix time-machine --commit=36640207c9543e48cd6daa92930f023f80065a5d -- environment hello > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... > guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' > is not related to introductory commit of channel 'guix' It seems related to the new machinery about authentication, i.e., I guess: 838ac881ec * time-machine: Add '--disable-authentication'. On my machine: --8<---------------cut here---------------start------------->8--- guix pull --commit= -p /tmp/bug /tmp/bug/bin/guix time-machine --commit=36640207c9543e48cd6daa92930f023f80065a5d -- environment hello --8<---------------cut here---------------end--------------->8--- works as expected. I mean I get: --8<---------------cut here---------------start------------->8--- Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to 3664020 (664 new commits)... substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% [...] ^C --8<---------------cut here---------------end--------------->8--- Then I stopped before it completes. And I re-run the same time-machine command and I get the same error message: --8<---------------cut here---------------start------------->8--- Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' is not related to introductory commit of channel 'guix' --8<---------------cut here---------------end--------------->8--- But with the new option "--disable-authentication", it works -- even it is maybe not what you want. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 18 19:02:50 2020 Received: (at 41908) by debbugs.gnu.org; 18 Jun 2020 23:02:51 +0000 Received: from localhost ([127.0.0.1]:54637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jm3YY-0005tA-Mz for submit@debbugs.gnu.org; Thu, 18 Jun 2020 19:02:50 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jm3YV-0005sr-Ri for 41908@debbugs.gnu.org; Thu, 18 Jun 2020 19:02:48 -0400 Received: by mail-wr1-f68.google.com with SMTP id t13so5389154wrs.2 for <41908@debbugs.gnu.org>; Thu, 18 Jun 2020 16:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=5JGRaxOO4jqyCSoK52Qk74DEx/6DpoFskxyp1H+3dAM=; b=huiIGzzW3C4I3ROyA1UFQlr4XurlNdXSMSwdwtWi+PYEUG8iaxvscM6dieCNIDwmqx B16E8uR5UDxUZDoVPri/5NgZgEI125bPVJEqfNY7D92lZVlsuj4bXziVzQaHrr5j0F6X 1HvKw3WyfrtF+lAMjM+5fDIj1Rrgtv5pOS84Wv+qtFf3oQcJ7qtpfIPpii2giU/58KI/ 54GpXg57V20JplZAkcPk6v/cZj2PbynvMkLgZnY78jbqzTIoSxFW2JhHvclqibeGy+Vl PMaO3XvJBpdqS9yb5jlyDdn38xrrL7UCkLZSFR8xKrdWkBfoaju6bfyvwo0t9GVxcrlC XixA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=5JGRaxOO4jqyCSoK52Qk74DEx/6DpoFskxyp1H+3dAM=; b=etWal6ZO8T2ohZ75uS4yY3hFeI7rohSUs6h85TTeae6Q6OMH1Wla43hVySL4aowvdg +DrfF+KUOjrwcpFpdAVQAL2kizVgccSIORF/vHliEUZW//R633hZ8sUau3Ri6bfr0buL apm1R31az3bGwKzt/eDSr6VRD6K3S+3nK5vuzgfMDNsVjVK/rhS1kQSMEatngLTMtcuT CWjaUnjBVEi4lcl39ek2Z1NOIMvvWxrp8Qwue+i7jvH43isrTGafHZasaVTVY8bGWPyf priShfjBnIiMOdtFoL/lNHjH6TXWwoFPvZWuM0s0QjEJzCdqmQ1ml7h0Jq4hydns9/36 jWTA== X-Gm-Message-State: AOAM533vQOEDtuU4G+x+0geq36gu9q+b29AJa1V8SVjgHlrNqTIA8RXh Pq5sv68T5I6uToXhT6nCVCLV4FdExMg= X-Google-Smtp-Source: ABdhPJzCHHbCdz+c1av9hn8fAo2xScw8hWVqlXcn5eVjHVgTNQ7XkeCEZZkdIkLLDcEVNsGe7TazhA== X-Received: by 2002:a05:6000:1289:: with SMTP id f9mr802188wrx.5.1592521361163; Thu, 18 Jun 2020 16:02:41 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id c201sm619159wmd.4.2020.06.18.16.02.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 16:02:40 -0700 (PDT) From: zimoun To: Jan Nieuwenhuizen , 41908@debbugs.gnu.org Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' In-Reply-To: <867dw4vwh8.fsf@gmail.com> References: <87blli11pi.fsf@gnu.org> <867dw4vwh8.fsf@gmail.com> Date: Fri, 19 Jun 2020 01:02:39 +0200 Message-ID: <864kr8vuy8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41908 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sorry, I hit C-c C-c in the wrong buffer and sent the email before finished it. :-) CC: Ludo because I do not really understand all the new machinery and what is the correct solution: - remove/tweak the file "~/.cache/guix/authentication/channels/guix"" or - use "--disable-authentication" or - is it a real bug? :-) ? On Fri, 19 Jun 2020 at 00:29, zimoun wrote: > It seems related to the new machinery about authentication, i.e., I guess: > > 838ac881ec * time-machine: Add '--disable-authentication'. [...] > But with the new option "--disable-authentication", it works -- even it > is maybe not what you want. What do you have in the file ~/.cache/guix/authentication/channels/guix? Well, basically if I run with a fresh ~/.cache/guix/authentication/channels/guix, it works as expected: --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=36640207c9543e48cd6daa92930f023f80065a5d -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to 3664020 (664 new commits)... Computing Guix derivation for 'x86_64-linux'... / --8<---------------cut here---------------end--------------->8--- however, if I re-run the exact same command, it fails: --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=36640207c9543e48cd6daa92930f023f80065a5d -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' is not related to introductory commit of channel 'guix' --8<---------------cut here---------------end--------------->8--- and the file says: --8<---------------cut here---------------start------------->8--- $ cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("36640207c9543e48cd6daa92930f023f80065a5d") --8<---------------cut here---------------end--------------->8--- Well, I do not know if it does not come from 'start-commit', 'end-commit' and 'authenticated-commits' in guix/channels.scm: (authenticate-channel). All the best, simon From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 19 17:18:04 2020 Received: (at 41908) by debbugs.gnu.org; 19 Jun 2020 21:18:04 +0000 Received: from localhost ([127.0.0.1]:56949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmOOi-0005Ku-8a for submit@debbugs.gnu.org; Fri, 19 Jun 2020 17:18:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmOOg-0005KQ-74 for 41908@debbugs.gnu.org; Fri, 19 Jun 2020 17:18:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57526) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmOOa-00050s-VI; Fri, 19 Jun 2020 17:17:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39344 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmOOZ-0001lA-PI; Fri, 19 Jun 2020 17:17:56 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jan Nieuwenhuizen Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' References: <87blli11pi.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 Messidor an 228 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, 19 Jun 2020 23:17:53 +0200 In-Reply-To: <87blli11pi.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Wed, 17 Jun 2020 11:27:53 +0200") Message-ID: <87366qeovy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41908 Cc: 41908@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, (+Cc: Marius.) Jan Nieuwenhuizen skribis: > $ guix pull --commit=3D559491ea5b36b89b2a2f9d48dacf6a2d7e219910 > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > Building from this channel: > guix https://git.savannah.gnu.org/git/guix.git 559491e > [...] > hint: Run `guix pull --news' to read all the news. > > 11:23:19 janneke@dundal:~/src/guix/master > $ guix time-machine --commit=3D36640207c9543e48cd6daa92930f023f80065a5d -= - environment hello > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' is n= ot related to introductory commit of channel 'guix' > > [1]11:23:25 janneke@dundal:~/src/guix/master > git log --pretty=3Doneline | grep 36640207c9543e48cd6daa92930f023f80065a5d > 36640207c9543e48cd6daa92930f023f80065a5d quirks: Build 'compute-guix-deri= vation' modules with 2.2 when needed. I think =E2=80=98commit-relation=E2=80=99 is right: the two commits are unr= elated. AIUI, commit 36640207c9543e48cd6daa92930f023f80065a5d was made on master (May 29) after commit 9edb3f66fd807b096b48283debdcddccfea34bad (May 26). Thus, they really existed in different branches, and they=E2=80=99re unrelated. So we probably need to choose another introductory commit, one on =E2=80=98master=E2=80=99, and that has to be the merge commit for =E2=80=98= staging=E2=80=99 (8ab70bae52f8d4b6356ec3b8a88cebf9debe8520, June 13!). That sucks because that means that any branch forked before that is not mergeable. That includes at least =E2=80=98core-updates=E2=80=99 (but ther= e are few commits there, so it can be rebased, I think.) I don=E2=80=99t think we can relax the relation check with the introductory commit or we=E2=80=99d allow jumping anywhere. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 19 17:18:35 2020 Received: (at control) by debbugs.gnu.org; 19 Jun 2020 21:18:35 +0000 Received: from localhost ([127.0.0.1]:56952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmOPD-0005Lg-JN for submit@debbugs.gnu.org; Fri, 19 Jun 2020 17:18:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmOPB-0005LT-I5 for control@debbugs.gnu.org; Fri, 19 Jun 2020 17:18:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57533) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmOP6-00055y-B2 for control@debbugs.gnu.org; Fri, 19 Jun 2020 17:18:28 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39348 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmOP5-0001me-IG for control@debbugs.gnu.org; Fri, 19 Jun 2020 17:18:27 -0400 Date: Fri, 19 Jun 2020 23:18:26 +0200 Message-Id: <871rmaeov1.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #41908 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) severity 41908 serious quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 19 19:22:28 2020 Received: (at 41908) by debbugs.gnu.org; 19 Jun 2020 23:22:28 +0000 Received: from localhost ([127.0.0.1]:57003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmQL6-00023t-7b for submit@debbugs.gnu.org; Fri, 19 Jun 2020 19:22:28 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmQL3-00023f-Tb for 41908@debbugs.gnu.org; Fri, 19 Jun 2020 19:22:27 -0400 Received: by mail-wm1-f65.google.com with SMTP id u26so9708349wmn.1 for <41908@debbugs.gnu.org>; Fri, 19 Jun 2020 16:22:25 -0700 (PDT) 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=FZTFa5zQjcbyt89au4L+UpDdk5eSC0zBcP9QlJfim5U=; b=HjA49Yt+J1rXyMOchIToidyFQuccmQlo0i94UAqM9+QAY6VMfbuhQWUfPI/xx3kJo7 EThYvq4H83U4KkwHddCBJub4gMqzy/KpOAoupNjLRg5Z6qotdDxxP5GKD6VGgU02+8Wk 6z8g1VcoQ2R/TC2mqez232+Ag/cH7/STpuY9q//C5WZrfOKIgyPpjbsmjgd3DV0sLb/u bu32ZGQcROIWboSV21oT+6JRPH051EvAdSs3A1lzILEramy4xsnoSFQZgi52hK+vTzbS Aeq5ImmojPJ+0yi7vG7RFAsizuT9IU3hqjkTXotDulW4GKZ6ShO8b0Jt0zVOaUhyVDlr Buyg== 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=FZTFa5zQjcbyt89au4L+UpDdk5eSC0zBcP9QlJfim5U=; b=h5sXUn1r0O1PD/IE8QwIoX9BaoU4l7Ii22KaDYDOwog8fMM6gLmStZC+i1mligeQZy odRHoh0Tk6A9TM6KuBNcvv2/+SXSYLcAzocbB6CWH0D4lFvBfkE3/aQnJPgAPFlsONFb tBMq5/XsCBjShCKCIi10rVI1xUwV9Xr7zKzFEE3fKLlCH2fMm1QtF2jYLPmOtdlF19QO LwxF0wJzs3SSDodEiRx3OcPSw2uKRsWAaFi2AdArwl9tDaFcqS08ORCvkzp9ZERXOo8Q TZ+SEZ87L9bmFnsGPnGUWCWeYepdwjVnCj175xsNfNhBBTaUo2sfVWH8C72tG8kQmVz5 UBZw== X-Gm-Message-State: AOAM5303daMXGj+zOffPviiXL4i1Aug2+8qI9Mb5BhdUBGFgAesBKyA6 vuWoJoW74lUdWF25YsjY7cY= X-Google-Smtp-Source: ABdhPJxM3U+7hboR8pT+s3+44YYCm2cHdGheP/Y/VH4feETJMYBmmBz8/9v1Sfs++A96sYUnKIpHqA== X-Received: by 2002:a1c:a385:: with SMTP id m127mr5639582wme.112.1592608939764; Fri, 19 Jun 2020 16:22:19 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id l1sm9079757wrb.31.2020.06.19.16.22.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 16:22:18 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Jan Nieuwenhuizen Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' In-Reply-To: <87366qeovy.fsf@gnu.org> References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> Date: Sat, 20 Jun 2020 01:22:17 +0200 Message-ID: <86366qtzdi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41908 Cc: 41908@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, On Fri, 19 Jun 2020 at 23:17, Ludovic Court=C3=A8s wrote: > (+Cc: Marius.) Not sure you +CC'ed Marius. So I did. > I think =E2=80=98commit-relation=E2=80=99 is right: the two commits are u= nrelated. > > AIUI, commit 36640207c9543e48cd6daa92930f023f80065a5d was made on master > (May 29) after commit 9edb3f66fd807b096b48283debdcddccfea34bad (May > 26). Thus, they really existed in different branches, and they=E2=80=99re > unrelated. > > So we probably need to choose another introductory commit, one on > =E2=80=98master=E2=80=99, and that has to be the merge commit for =E2=80= =98staging=E2=80=99 > (8ab70bae52f8d4b6356ec3b8a88cebf9debe8520, June 13!). > > That sucks because that means that any branch forked before that is not > mergeable. That includes at least =E2=80=98core-updates=E2=80=99 (but th= ere are few > commits there, so it can be rebased, I think.) > > I don=E2=80=99t think we can relax the relation check with the introducto= ry > commit or we=E2=80=99d allow jumping anywhere. I do not know if I add noise but below what I observed and it is not what I am expecting. For the record, the commit history. Maybe I misread, well I think the first 2 commits used for pulling and the 5 others used for time-machine are/were each on the same branch, i.e. they are related (direct path), and the 2 groups (pull vs time-machine) are/were not in the same branch. And I do not think the issue comes from the branching. --8<---------------cut here---------------start------------->8--- 559491ea5b * gnu: Transmission: Clean up the package definition. e7a7a483bc * gnu: papirus-icon-theme: Update to 20200602. [...] 41a2d6a8b9 * gnu: emacs-evil: Update to 1.14.0. [...] e70e097882 * size: Document that positional arguments can be store items. [...] b56cbe8974 * syscalls: Properly match %HOST-TYPE. 36640207c9 * quirks: Build 'compute-guix-derivation' modules with 2.2 when = needed. 60b81ec2f3 * gnu: emacs-2048-game: Update home page. --8<---------------cut here---------------end--------------->8--- This first sequence appears expected: --8<---------------cut here---------------start------------->8--- guix pull --commit=3De7a7a483bc -p /tmp/a cat ~/.cache/guix/authentication/channels/guix cat: /home/simon/.cache/guix/authentication/channels/guix: No such file or = directory /tmp/a/bin/guix time-machine --commit=3D36640207c9 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to 3664020 (664 new commits)= ... cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("36640207c9543e48cd6daa92930f023f80065a5d") /tmp/a/bin/guix time-machine --commit=3Db56cbe8974 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to b56cbe8 (1 new commits)... cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("b56cbe8974c328a6c7bc28906478ef1b191ada4c" "36640207c9543e48cd6daa92930f023f80065a5d") --8<---------------cut here---------------end--------------->8--- Then this one is not for me: --8<---------------cut here---------------start------------->8--- /tmp/a/bin/guix time-machine --commit=3D60b81ec2f3 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... guix time-machine: error: '60b81ec2f324c18d026e9ae05199493bc644960b' is not= related to introductory commit of channel 'guix' /tmp/a/bin/guix time-machine --commit=3Db56cbe8974 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... guix time-machine: error: 'b56cbe8974c328a6c7bc28906478ef1b191ada4c' is not= related to introductory commit of channel 'guix' /tmp/a/bin/guix time-machine --commit=3D36640207c9 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' is not= related to introductory commit of channel 'guix' --8<---------------cut here---------------end--------------->8--- Why I cannot go to 60b81ec2f3? I mean I cannot go before the first time-machine I did which is unexpected for me. Why I cannot re-do the same time-machine twice? I pull again but it is not the point. :-) --8<---------------cut here---------------start------------->8--- guix pull --commit=3D559491ea5b -p /tmp/b cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("b56cbe8974c328a6c7bc28906478ef1b191ada4c" "36640207c9543e48cd6daa92930f023f80065a5d") /tmp/b/bin/guix time-machine --commit=3D36640207c9 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' is not= related to introductory commit of channel 'guix' /tmp/b/bin/guix time-machine --commit=3D41a2d6a8b9 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to 41a2d6a (7 new commits)... cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("41a2d6a8b9294a6eb8e97aaefd569e755f5f461e" "b56cbe8974c328a6c7bc28906478ef1b191ada4c" "36640207c9543e48cd6daa92930f023f80065a5d") /tmp/b/bin/guix time-machine --commit=3De70e097882 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... guix time-machine: error: 'e70e097882699865f63eabc5fb29b4fe4468a97b' is not= related to introductory commit of channel 'guix' --8<---------------cut here---------------end--------------->8--- Well, again it is not expected for me that 36640207c9 is not reachable even it is already authenticated. But it is similar than previously, I guess. However, because 41a2d6a8b9 is descendant, then it is reachable. The surprise to me is that e70e097882 which is in direct relation between the two authenticated commits 41a2d6a8b9 and b56cbe8974 is not reachable. BTW, from a security perspective, it is easy to cheat by removing some commits so the file ~/.cache/guix/authentication/channels/guix should be protected: read-only and only writable by the daemon. Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 20 06:41:13 2020 Received: (at 41908) by debbugs.gnu.org; 20 Jun 2020 10:41:13 +0000 Received: from localhost ([127.0.0.1]:57395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmavw-0003iZ-Nl for submit@debbugs.gnu.org; Sat, 20 Jun 2020 06:41:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmavh-0003hj-UP for 41908@debbugs.gnu.org; Sat, 20 Jun 2020 06:41:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37585) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmavb-0002jp-Rq; Sat, 20 Jun 2020 06:40:51 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41166 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmavb-0001Yb-43; Sat, 20 Jun 2020 06:40:51 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> <86366qtzdi.fsf@gmail.com> Date: Sat, 20 Jun 2020 12:40:49 +0200 In-Reply-To: <86366qtzdi.fsf@gmail.com> (zimoun's message of "Sat, 20 Jun 2020 01:22:17 +0200") Message-ID: <87tuz6auku.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41908 Cc: 41908@debbugs.gnu.org, Marius Bakke , Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Ah yes, what you observed is interesting. If you first travel to a current-ish commit, it gets properly authenticated and cached. >From then on, since 36640207c9543e48cd6daa92930f023f80065a5d is in the closure of the commit you just pulled, it=E2=80=99s authenticated, and you = can travel back to it. It makes perfect sense. Conversely, if you try to go directly to 36640207c9543e48cd6daa92930f023f80065a5d (e.g., with an empty cache), all we can say is that we can=E2=80=99t authenticate it because it=E2=80=99= s unrelated to the introductory commit. So it=E2=80=99s logical, even if surprising. It also means that the problem sort of =E2=80=9Cgoes away=E2=80=9D by itself. zimoun skribis: > BTW, from a security perspective, it is easy to cheat by removing some > commits so the file ~/.cache/guix/authentication/channels/guix should be > protected: read-only and only writable by the daemon. It=E2=80=99s 600 of course. What we could do is ignore it if it=E2=80=99s = not 600 when we open it. Crucially: we cannot and should not restrict what the user can do for the sake of security. Users can pass =E2=80=98--disable-authentication=E2= =80=99, they can run binaries taken from the net, whatever; it=E2=80=99s their machine. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 20 09:58:53 2020 Received: (at 41908) by debbugs.gnu.org; 20 Jun 2020 13:58:54 +0000 Received: from localhost ([127.0.0.1]:58598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jme1F-0002Lt-J7 for submit@debbugs.gnu.org; Sat, 20 Jun 2020 09:58:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jme1C-0002Lf-SY for 41908@debbugs.gnu.org; Sat, 20 Jun 2020 09:58:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39065) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jme17-0006yE-Gk; Sat, 20 Jun 2020 09:58:45 -0400 Received: from ti0006q161-3115.bb.online.no ([88.95.106.80]:57844 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jme16-0007Dt-9I; Sat, 20 Jun 2020 09:58:44 -0400 From: Marius Bakke To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Jan Nieuwenhuizen Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' In-Reply-To: <87366qeovy.fsf@gnu.org> References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> Date: Sat, 20 Jun 2020 15:58:41 +0200 Message-ID: <87v9jldejy.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41908 Cc: 41908@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi, > > (+Cc: Marius.) > > Jan Nieuwenhuizen skribis: > >> $ guix pull --commit=3D559491ea5b36b89b2a2f9d48dacf6a2d7e219910 >> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu= .org/git/guix.git'... >> Building from this channel: >> guix https://git.savannah.gnu.org/git/guix.git 559491e >> [...] >> hint: Run `guix pull --news' to read all the news. >> >> 11:23:19 janneke@dundal:~/src/guix/master >> $ guix time-machine --commit=3D36640207c9543e48cd6daa92930f023f80065a5d = -- environment hello >> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu= .org/git/guix.git'... >> guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' is = not related to introductory commit of channel 'guix' >> >> [1]11:23:25 janneke@dundal:~/src/guix/master >> git log --pretty=3Doneline | grep 36640207c9543e48cd6daa92930f023f80065a= 5d >> 36640207c9543e48cd6daa92930f023f80065a5d quirks: Build 'compute-guix-der= ivation' modules with 2.2 when needed. > > I think =E2=80=98commit-relation=E2=80=99 is right: the two commits are u= nrelated. > > AIUI, commit 36640207c9543e48cd6daa92930f023f80065a5d was made on master > (May 29) after commit 9edb3f66fd807b096b48283debdcddccfea34bad (May > 26). Thus, they really existed in different branches, and they=E2=80=99re > unrelated. > > So we probably need to choose another introductory commit, one on > =E2=80=98master=E2=80=99, and that has to be the merge commit for =E2=80= =98staging=E2=80=99 > (8ab70bae52f8d4b6356ec3b8a88cebf9debe8520, June 13!). > > That sucks because that means that any branch forked before that is not > mergeable. That includes at least =E2=80=98core-updates=E2=80=99 (but th= ere are few > commits there, so it can be rebased, I think.) > > I don=E2=80=99t think we can relax the relation check with the introducto= ry > commit or we=E2=80=99d allow jumping anywhere. > > Thoughts? Uff, sorry for the incomplete 'staging' rebase. I did not realize that .guix-authorizations was missing completely in the earlier commits of that branch; I only focused on getting Brice's commit authorized. Yes core-updates needs to be rebased too because of this. And yes, not a lot of commits yet. So let's move the introductory commit and rebase core-updates on top, I can take care of the latter in a few days. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7uFhEACgkQoqBt8qM6 VPosNAgAs6JdqrmP7XwNY00gfm7lcxRym78lZfIRePmhmTXiB4RTSmWU5DcwvFex AZHZbvk15SnpJtMDosorZeZ/uVbmUlGx1WLimDVDUu24Ezc1Mls4yfUVrUeNnDPi LEr3oRB09lSY1PYJOiKLG2HiEXZekY8h9/Y8gg0ymfeHmSo09t1l6SkW+e4bLlHo AAnS+dbsasPYRNh9lDe2eEjQwM+QOi3KvaGc4XYzMLMNMM+Uff41bbguoFC1pLXK PlxRmDYunzUwPvSJ7xfcluHdx/WQ6+fRsfD9n6H3BisMDZuanEMPSAFry/+UQNNz Ch3vBLJr7F+slb29BNnMw9gEfmMZxA== =UxPD -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 21 11:43:28 2020 Received: (at 41908-done) by debbugs.gnu.org; 21 Jun 2020 15:43:28 +0000 Received: from localhost ([127.0.0.1]:60747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn280-0007c3-7m for submit@debbugs.gnu.org; Sun, 21 Jun 2020 11:43:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn27x-0007bn-Sq for 41908-done@debbugs.gnu.org; Sun, 21 Jun 2020 11:43:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53933) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jn27r-0002HD-PR; Sun, 21 Jun 2020 11:43:19 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45296 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jn27r-0002T5-00; Sun, 21 Jun 2020 11:43:19 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jan Nieuwenhuizen Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> Date: Sun, 21 Jun 2020 17:43:17 +0200 In-Reply-To: <87366qeovy.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Fri, 19 Jun 2020 23:17:53 +0200") Message-ID: <875zbka0h6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41908-done Cc: 41908-done@debbugs.gnu.org, Marius Bakke X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Sunday hackers! Ludovic Court=C3=A8s skribis: > Jan Nieuwenhuizen skribis: > >> $ guix pull --commit=3D559491ea5b36b89b2a2f9d48dacf6a2d7e219910 >> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu= .org/git/guix.git'... >> Building from this channel: >> guix https://git.savannah.gnu.org/git/guix.git 559491e >> [...] >> hint: Run `guix pull --news' to read all the news. >> >> 11:23:19 janneke@dundal:~/src/guix/master >> $ guix time-machine --commit=3D36640207c9543e48cd6daa92930f023f80065a5d = -- environment hello >> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu= .org/git/guix.git'... >> guix time-machine: error: '36640207c9543e48cd6daa92930f023f80065a5d' is = not related to introductory commit of channel 'guix' >> >> [1]11:23:25 janneke@dundal:~/src/guix/master >> git log --pretty=3Doneline | grep 36640207c9543e48cd6daa92930f023f80065a= 5d >> 36640207c9543e48cd6daa92930f023f80065a5d quirks: Build 'compute-guix-der= ivation' modules with 2.2 when needed. > > I think =E2=80=98commit-relation=E2=80=99 is right: the two commits are u= nrelated. > > AIUI, commit 36640207c9543e48cd6daa92930f023f80065a5d was made on master > (May 29) after commit 9edb3f66fd807b096b48283debdcddccfea34bad (May > 26). Thus, they really existed in different branches, and they=E2=80=99re > unrelated. Thinking more about it, I think the test that leads to the error above is in fact bogus (that=E2=80=99s what you were hinting at, Simon). Namely,= it reads: (define commits ;; Commits to authenticate, excluding the closure of ;; AUTHENTICATED-COMMITS. (commit-difference end-commit start-commit authenticated-commits)) ;; When COMMITS is empty, it's either because AUTHENTICATED-COMMITS ;; contains END-COMMIT or because END-COMMIT is not a descendant of ;; START-COMMIT. Check that. But that=E2=80=99s wrong: If START-COMMIT and END-COMMIT are unrelated, then =E2=80=98commit-difference=E2=80=99 will return a whole lot of commits (tho= se who are not both in the closure of START-COMMIT and that of END-COMMIT). The difference between 36640207c9543e48cd6daa92930f023f80065a5d and 9edb3f66fd807b096b48283debdcddccfea34bad is a set of 664 commits, as shown with =E2=80=9Cgit log --oneline 9edb3f6..3664020 | wc -l=E2=80=9D or = by calling =E2=80=98commit-difference=E2=80=99. Those 664 commits are those that were made on master between 9edb3f66fd807b096b48283debdcddccfea34bad=E2=80=99s parent on master, and 36640207c9543e48cd6daa92930f023f80065a5d. They can be authenticated just fine. If someone passed =E2=80=98--allow-downgrades=E2=80=99 and tries to jump to= an unrelated commit, authentication will fail on some commit. So I think the test was just enforcing an additional restriction that was unnecessary. I removed that test in e4a4287c5fb51c0e47431606df5ee78b953d71f8; we can keep the introductory commit unchanged, all is good! Let me know what you think. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 21 12:17:21 2020 Received: (at 41908) by debbugs.gnu.org; 21 Jun 2020 16:17:21 +0000 Received: from localhost ([127.0.0.1]:60813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2em-00008k-0F for submit@debbugs.gnu.org; Sun, 21 Jun 2020 12:17:21 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:37817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2ek-00008W-Co for 41908@debbugs.gnu.org; Sun, 21 Jun 2020 12:17:18 -0400 Received: by mail-wr1-f47.google.com with SMTP id a6so12324656wrm.4 for <41908@debbugs.gnu.org>; Sun, 21 Jun 2020 09:17:18 -0700 (PDT) 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=/jhb9un67Wd6g7vcN0Ggoh7EPHdDWwuJwHP9XMverg4=; b=GXRTo0scBF0kzq53KUn3sw7BtpdugOKKY+xmU+Hd4GBHiGxIah+NJ2IIHZf91CWx6m DBs2+ijqKDYoxAGpofu7bmHECvDRC4Uf3d+of/nYxjqxO+RI6CCoF/mMfybs5H1c/0Kc rgfXvQs6tujOWzDXftVFcwlJ+WbqWCHCEuf48R+LMeEAmrWj/sv7bewGDQfknrmxaU5+ 8c33ESt8aYLBCTDZk4oa0gNrf82gdkP4XhSApTbXWhSZ/RHGbgW6jE1N0nNhEgwAg303 CH23mXNX4KfihYxDLIhWmAWRGkPrlvtpdte3rn4z1SSGIStqrucmeVJrkhNJPQSi5iU1 74KQ== 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=/jhb9un67Wd6g7vcN0Ggoh7EPHdDWwuJwHP9XMverg4=; b=bPZesjjUp/EM4b/mv2GpmnwxjLlumcvTZBSwusN+d/CUOViZUUa06Mw/E93qYeM4Ra /3rPJXk6jQxPgpfs9HbdkqpwykF8S1BEEFBw0WTw4/6J10INIvs7CDwRtUqf6EupdhjB L25WeODxGI3aRV0MWgANxMKxdplya6wDLlWU2K0uMRHhHF7ndERwN0KuSIP59+SQG0OG aTY3W9KqYp3wGrxbX+mPJDAClQZw2xWLj+hpQu50ZERBINT5srgJuDdaJJdvZDoH5MoF Nwv44qI7KpQIgPv132TVP6tiusXM4zKxXe/TTIXmpM2GwjxGHSg8UA6Iqns9K9yFkNbA FqWA== X-Gm-Message-State: AOAM533ZY7ey31VB4zzAp26gTCViGjdISlDeb0KIcHgs5UCinABNEey6 SqLNV9D14rtcprb5ymh1oiQ+BROizYo= X-Google-Smtp-Source: ABdhPJxI1cj23qCowJAVKm6B5UAXOMJUEVdevzfX0oFIUgpU1/UMx3D2mRaMrBqtp8VYoXGa6kYiiA== X-Received: by 2002:a5d:4244:: with SMTP id s4mr12227195wrr.5.1592756232477; Sun, 21 Jun 2020 09:17:12 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id 30sm9988591wrm.74.2020.06.21.09.17.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 09:17:11 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' In-Reply-To: <87tuz6auku.fsf@gnu.org> References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> <86366qtzdi.fsf@gmail.com> <87tuz6auku.fsf@gnu.org> Date: Sun, 21 Jun 2020 18:17:10 +0200 Message-ID: <86mu4ws8ah.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41908 Cc: 41908@debbugs.gnu.org, Marius Bakke , Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, On Sat, 20 Jun 2020 at 12:40, Ludovic Court=C3=A8s wrote: > zimoun skribis: >> BTW, from a security perspective, it is easy to cheat by removing some >> commits so the file ~/.cache/guix/authentication/channels/guix should be >> protected: read-only and only writable by the daemon. > > It=E2=80=99s 600 of course. What we could do is ignore it if it=E2=80=99= s not 600 when > we open it. This could help. :-) > Crucially: we cannot and should not restrict what the user can do for > the sake of security. Users can pass =E2=80=98--disable-authentication= =E2=80=99, they > can run binaries taken from the net, whatever; it=E2=80=99s their machine. Well, I have not thought deeply to an attack, but the point is to protect the user when they runs "guix pull" alone i.e., they can trust the server. An attack could be for example an email with an attachment, click, then boum: tweak ~/.config/guix/channels.scm and ~/.cache/guix/authentication/channels/guix, then the user runs "guix pull" which the expectation that everything is checked and authenticated and in fact no, they is talking to malicious server. Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 21 12:18:18 2020 Received: (at 41908-done) by debbugs.gnu.org; 21 Jun 2020 16:18:18 +0000 Received: from localhost ([127.0.0.1]:60817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2fi-0000AV-4Y for submit@debbugs.gnu.org; Sun, 21 Jun 2020 12:18:18 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:40701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2fg-0000AH-RO for 41908-done@debbugs.gnu.org; Sun, 21 Jun 2020 12:18:17 -0400 Received: by mail-wr1-f52.google.com with SMTP id h5so14307450wrc.7 for <41908-done@debbugs.gnu.org>; Sun, 21 Jun 2020 09:18:16 -0700 (PDT) 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=JelFZYxgsR428K/MyXQu16/BIh/tDRXvQkpxQU6+SiU=; b=KImfj9eq5AAEqlPPeLU/uKVBlSbvCAzKmXojvNVKugXQB1CnaLyEL9lca3sLfFaRhk l6N2+/ydZJ5u8sY8zXITgNuUcG51ZEa0gAQPLk4HR/Nh666xjxUESpfsF+7SnKYxlLHr GgHVJ6oD5WedJ+1z4FiT+aW415eKFBokqCsp5STDLydByDrX+4NkRx+JaSx/RubC1RLx tqxXL0701+ejzQH6/CSljOH6x986JT444HEiAD40ER/ALchjcttG+JpvFen+6LkGNc3D nh6XYKs0ngI9wyyhplHxsYlyqh77Kj3GNEyBNeW59sofkL0qeE42vsPK0dxQ54lBh20G GNsw== 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=JelFZYxgsR428K/MyXQu16/BIh/tDRXvQkpxQU6+SiU=; b=dNDbxaQcFeEENRMxw3XXT4maTuBUKqaasN1bqMdqe62qhSvWClFO86RlHiES3C3ncS BjjcvdtTXYvjV6L5ySFKbIs/ExlPQsxCYYSY/xGLpLWV+6FnBXposjnr7vpBjVH5hAOC PLSxscmVOmsbthr9PJjY6YkUZVqLewl1qrn9Oa0MSkYo4XYKLTHB5HyhnycD8F4YbPR8 BNq9wIkw9lHK5tww7+VhIRlHkOiHuVHaPgm0DbLXG4hQrgT2meJydycDfz2uF839YWY3 tWo4aN9oHVHtz+YaWeoySIK7h+3cmMQoyOxtBA8sKdpNUHlTydXg7EaVZLVvNFtfSm+l +iaA== X-Gm-Message-State: AOAM53221T66TKyWBJJGsmi91rNs4MiARX/ySELsF2xQsIxR7923E1Fn j84ZkfB2sIPLOKkQYSldS8LvcPMe8+I= X-Google-Smtp-Source: ABdhPJwPYqn7H1KeKcp2qJF2NY6uOZvYD3eF1Db4MSZRgnvcTzT9sHdP5Lqx3Wkxi9wKtSFHXECFNQ== X-Received: by 2002:adf:f542:: with SMTP id j2mr210454wrp.61.1592756291048; Sun, 21 Jun 2020 09:18:11 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id 67sm14828525wrk.49.2020.06.21.09.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 09:18:10 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Jan Nieuwenhuizen Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' In-Reply-To: <875zbka0h6.fsf@gnu.org> References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> <875zbka0h6.fsf@gnu.org> Date: Sun, 21 Jun 2020 18:18:09 +0200 Message-ID: <86lfkgs88u.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41908-done Cc: 41908-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, On Sun, 21 Jun 2020 at 17:43, Ludovic Court=C3=A8s wrote: > I removed that test in e4a4287c5fb51c0e47431606df5ee78b953d71f8; we can > keep the introductory commit unchanged, all is good! Let me know what > you think. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 22 04:01:41 2020 Received: (at 41908) by debbugs.gnu.org; 22 Jun 2020 08:01:41 +0000 Received: from localhost ([127.0.0.1]:33239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnHOf-0005NE-IP for submit@debbugs.gnu.org; Mon, 22 Jun 2020 04:01:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnHOc-0005My-5T for 41908@debbugs.gnu.org; Mon, 22 Jun 2020 04:01:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37862) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnHOW-0004ys-Pg; Mon, 22 Jun 2020 04:01:32 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=47028 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jnHOV-00063L-5R; Mon, 22 Jun 2020 04:01:31 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> <86366qtzdi.fsf@gmail.com> <87tuz6auku.fsf@gnu.org> <86mu4ws8ah.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Messidor an 228 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: Mon, 22 Jun 2020 10:01:29 +0200 In-Reply-To: <86mu4ws8ah.fsf@gmail.com> (zimoun's message of "Sun, 21 Jun 2020 18:17:10 +0200") Message-ID: <87zh8v7cme.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41908 Cc: 41908@debbugs.gnu.org, Marius Bakke , Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, zimoun skribis: > On Sat, 20 Jun 2020 at 12:40, Ludovic Court=C3=A8s wrote: >> zimoun skribis: > >>> BTW, from a security perspective, it is easy to cheat by removing some >>> commits so the file ~/.cache/guix/authentication/channels/guix should be >>> protected: read-only and only writable by the daemon. >> >> It=E2=80=99s 600 of course. What we could do is ignore it if it=E2=80= =99s not 600 when >> we open it. > > This could help. :-) Done in 41939c374a3ef421d2d4c6453c327a9cd7af4ce5. >> Crucially: we cannot and should not restrict what the user can do for >> the sake of security. Users can pass =E2=80=98--disable-authentication= =E2=80=99, they >> can run binaries taken from the net, whatever; it=E2=80=99s their machin= e. > > Well, I have not thought deeply to an attack, but the point is to > protect the user when they runs "guix pull" alone i.e., they can trust > the server. An attack could be for example an email with an attachment, > click, then boum: tweak ~/.config/guix/channels.scm and > ~/.cache/guix/authentication/channels/guix, then the user runs "guix > pull" which the expectation that everything is checked and > authenticated and in fact no, they is talking to malicious server. I don=E2=80=99t really see how the attachment would modify a local file, but even if that=E2=80=99s a possibility, it=E2=80=99s beyond the scope of Guix= : we cannot prevent users from shooting themselves in the foot. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 22 04:55:05 2020 Received: (at 41908-done) by debbugs.gnu.org; 22 Jun 2020 08:55:05 +0000 Received: from localhost ([127.0.0.1]:33287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnIEL-0006w5-6L for submit@debbugs.gnu.org; Mon, 22 Jun 2020 04:55:05 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnIEG-0006vS-3L for 41908-done@debbugs.gnu.org; Mon, 22 Jun 2020 04:55:03 -0400 Received: by mail-wr1-f66.google.com with SMTP id o11so8087677wrv.9 for <41908-done@debbugs.gnu.org>; Mon, 22 Jun 2020 01:54:59 -0700 (PDT) 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=It4viQnfhIb92A25QEdw/FFKf10Wzvr6v7bp85hsCzw=; b=rw4H1JaPz1ZtO3B6ycvymztA3eF7paFiqJn6GgOJMMwZgin9xyD2CRqOk+3yPhS/pq Q+9MdMcG+8lTITlKN0lcpQvfRh+YIzMf0uqBrsmoz/sJ83N5ij9LKQO/0mI+Rv8o6TA6 gkTFgv159Nuc7pLlq9R+fn06QfsII6jZyZ/QMhr90YZcmS5T5YZbwa3wVsITFPnGN06s jhQPCa7wuu52ux5GqaWtPuVCsJAJiQVhYkhpWrXn20FTUv38X3py+yyw39iUsgqXw6xv vmsKsjLIO0G0qvKih1H2XhlGE6jVRFRGwXylzffkWlkrmgrIy9bAY7aZ5Esa+PgJDXCF Bu3w== 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=It4viQnfhIb92A25QEdw/FFKf10Wzvr6v7bp85hsCzw=; b=oMivi0A59P+bX8kUfzyOqIHxi9rv+sS5ZfxPfktk6bjCX61QtDA2DDIpyNzPbWwtAg +0NyjIiv51EjOihuCl3LjAZ9AiFilf23U+DrURgSJgeiUClqzFS2K3uFjySVsAIrlTUx X428a61vV9UljBYPY39kGuTjOQ00nnXrB4Bq9qJ4xX63rT74uKkpRwgHt9cSCrDm4JYe J+Z2lEWJGCZfqyod44E+JQt0HWQZRljSlWaww4qCeCfBVNRVq8yTw4vYFRwHMYew6oW/ Vnaqsp18Oqdgf6z/vHvu52VgVkVANJxif79s1Zt/0YkB2MvVavPZwxwSY2MA37Y9re4J KzoQ== X-Gm-Message-State: AOAM531idWqyX4i4BMlaaJHYD2u0owBORAuHqtTp0T42Y1IGL3IhR3WS twB30CQpbOLhM5+Z8NejHWOHBdjrLNg= X-Google-Smtp-Source: ABdhPJwE91tWCkRUuf9sS+uRPUB0iz12nZJ1d6zU4KfCCVeSeql3d+P2w4zQy6venjf9YtynpRQiAw== X-Received: by 2002:a5d:40ca:: with SMTP id b10mr10605222wrq.56.1592816093775; Mon, 22 Jun 2020 01:54:53 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id g144sm6674011wme.2.2020.06.22.01.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 01:54:53 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Jan Nieuwenhuizen Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' In-Reply-To: <875zbka0h6.fsf@gnu.org> References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> <875zbka0h6.fsf@gnu.org> Date: Mon, 22 Jun 2020 10:54:52 +0200 Message-ID: <86imfjsco3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41908-done Cc: 41908-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, On Sun, 21 Jun 2020 at 17:43, Ludovic Court=C3=A8s wrote: > I removed that test in e4a4287c5fb51c0e47431606df5ee78b953d71f8; we can > keep the introductory commit unchanged, all is good! Let me know what > you think. Now the sequences never return an error. Nice! For the record, the history is: * 41a2d6a8b9 (newer) * e70e097882 (between) * 36640207c9 (older) --8<---------------cut here---------------start------------->8--- $ guix pull --commit=3De4a4287c5fb51c0e47431606df5ee78b953d71f8 -p /tmp/c $ cat ~/.cache/guix/authentication/channels/guix cat: /home/simon/.cache/guix/authentication/channels/guix: No such file or = directory --8<---------------cut here---------------end--------------->8--- Let consider this first sequence. --8<---------------cut here---------------start------------->8--- $ /tmp/c/bin/guix time-machine --commit=3De70e097882 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to e70e097 (668 new commits)= ... $ cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("e70e097882699865f63eabc5fb29b4fe4468a97b") $ /tmp/c/bin/guix time-machine --commit=3D41a2d6a8b9 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to 41a2d6a (4 new commits)... $ cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("41a2d6a8b9294a6eb8e97aaefd569e755f5f461e" "e70e097882699865f63eabc5fb29b4fe4468a97b") $ /tmp/c/bin/guix time-machine --commit=3D36640207c9 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Usage: guix COMMAND ARGS... $ cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("41a2d6a8b9294a6eb8e97aaefd569e755f5f461e" "e70e097882699865f63eabc5fb29b4fe4468a97b") --8<---------------cut here---------------end--------------->8--- However, the commit 36640207c9 is not considered as authenticated, right? So, the older authenticated commit is the first commit used by time-machine, right? Let consider this second sequence. --8<---------------cut here---------------start------------->8--- $ rm ~/.cache/guix/authentication/channels/guix $ /tmp/c/bin/guix time-machine --commit=3D36640207c9 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to 3664020 (664 new commits)= ... $ /tmp/c/bin/guix time-machine --commit=3D41a2d6a8b9 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Authenticating channel 'guix', commits 9edb3f6 to 41a2d6a (8 new commits)... $ cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("41a2d6a8b9294a6eb8e97aaefd569e755f5f461e" "36640207c9543e48cd6daa92930f023f80065a5d") $ /tmp/c/bin/guix time-machine --commit=3De70e097882 -- help Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Usage: guix COMMAND ARGS... $ cat ~/.cache/guix/authentication/channels/guix ;; List of previously-authenticated commits. ("41a2d6a8b9294a6eb8e97aaefd569e755f5f461e" "36640207c9543e48cd6daa92930f023f80065a5d") --8<---------------cut here---------------end--------------->8--- The commit e70e097882 between 36640207c9 and 41a2d6a8b9 is not considered as authenticated, right? Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 23 03:36:13 2020 Received: (at 41908-done) by debbugs.gnu.org; 23 Jun 2020 07:36:13 +0000 Received: from localhost ([127.0.0.1]:35366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jndTZ-0000wd-3M for submit@debbugs.gnu.org; Tue, 23 Jun 2020 03:36:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jndTU-0000wP-Ry for 41908-done@debbugs.gnu.org; Tue, 23 Jun 2020 03:36:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57816) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jndTO-00019U-7P; Tue, 23 Jun 2020 03:36:02 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52464 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jndTN-0006H4-KV; Tue, 23 Jun 2020 03:36:01 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> <875zbka0h6.fsf@gnu.org> <86imfjsco3.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Messidor an 228 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: Tue, 23 Jun 2020 09:35:59 +0200 In-Reply-To: <86imfjsco3.fsf@gmail.com> (zimoun's message of "Mon, 22 Jun 2020 10:54:52 +0200") Message-ID: <87d05q5j4w.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41908-done Cc: 41908-done@debbugs.gnu.org, Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Simon, zimoun skribis: > $ /tmp/c/bin/guix time-machine --commit=3D36640207c9 -- help > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > Usage: guix COMMAND ARGS... > > $ cat ~/.cache/guix/authentication/channels/guix > ;; List of previously-authenticated commits. > > ("41a2d6a8b9294a6eb8e97aaefd569e755f5f461e" > "e70e097882699865f63eabc5fb29b4fe4468a97b") > > > However, the commit 36640207c9 is not considered as authenticated, > right? So, the older authenticated commit is the first commit used by > time-machine, right? Note that it=E2=80=99s the closure of the commits listed in the cache that= =E2=80=99s considered authenticated. So not every commit is listed. Does that make sense? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 23 04:42:37 2020 Received: (at 41908-done) by debbugs.gnu.org; 23 Jun 2020 08:42:37 +0000 Received: from localhost ([127.0.0.1]:35410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jneVo-0002a6-W3 for submit@debbugs.gnu.org; Tue, 23 Jun 2020 04:42:37 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jneVl-0002Zs-U2 for 41908-done@debbugs.gnu.org; Tue, 23 Jun 2020 04:42:35 -0400 Received: by mail-wm1-f65.google.com with SMTP id 22so1313320wmg.1 for <41908-done@debbugs.gnu.org>; Tue, 23 Jun 2020 01:42:33 -0700 (PDT) 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=q91j/LSPt6N0kdNgwV0dGyTi+IQ0dVd3LcG9gzJ17Ig=; b=KjXdjfPajByR3RbK4O0axRc+B6tDewIVH3am5jjw/2v91pe7Jr/CdY1iznFm93k4rY gU1cuRqOaAKNQZQT/q+Bs17plk+O5LRY+Xia4QWZw4Q8OT+jb7QbDnOnzlqbCLU8JRxO Slz4kF9fGxFNzHsl3JRGSoJMozYLDtfXXG2GqCBhS62kaqyCHcnzCpcxEWFGegtV8gp2 auH9m0xg8m2+CsgNsXKLhGQwT6cXR22dAlHae78pYVohU1jou29U2fRcaoFGIjcfZcWr eFHDnw4rgTZ9kdT4SL8npFu/oQXC5cQ/B/vLVwJ81I3hXY8Y0KxUgAeLEOYHBVhNPRWj WHtg== 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=q91j/LSPt6N0kdNgwV0dGyTi+IQ0dVd3LcG9gzJ17Ig=; b=joQz9NK/d3ZQCzPyYrwwckLLn2PQJDqbP0urNKUAfmv4EO41Rsy4LIFD/JIpN98bbt BKxBgKQOIDloS7RdHI8LwRjYk/PJUpW0d6s165E2UDSohobdR+BKEXBNlUSmNYWX+bA8 kOg0d+1faZOwqo/ttzISIEa3yWjmtdmor8bSQhS1Y2C79jVmqdCI3Dynt7jMVncGtPgN KQ0fzt88s4qrAo3E2I5upLTvMwoLEOYCdjzYHVKcLhbhJz55xGeZYjN6MKrhUK66knGk 03tEeB+iCHm2sMJEQN58bvnYRHjRXf+xXyBMy0xb1urslh6BfpzVTrB4StWQLZ+qgobA Tx8w== X-Gm-Message-State: AOAM532cYqoUeu2VOYfuB7H4JgIveJ7eZ1UwxIx+bH1VRAvaxC7urh0L o5tGiPzBiTmaNLpZ/uQZncMItkCAlRM= X-Google-Smtp-Source: ABdhPJzQgyoD41o36uHr89oL3/EXSyRbynopMSpCee2ySEPSbiHhh2bzvFDCXLaW4Zr3UkyS0GgCNQ== X-Received: by 2002:a1c:2cd7:: with SMTP id s206mr21976086wms.109.1592901747412; Tue, 23 Jun 2020 01:42:27 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id r7sm2592840wmh.46.2020.06.23.01.42.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 01:42:26 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' In-Reply-To: <87d05q5j4w.fsf@gnu.org> References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> <875zbka0h6.fsf@gnu.org> <86imfjsco3.fsf@gmail.com> <87d05q5j4w.fsf@gnu.org> Date: Tue, 23 Jun 2020 10:42:25 +0200 Message-ID: <86d05qrx5a.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 41908-done Cc: 41908-done@debbugs.gnu.org, Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, On Tue, 23 Jun 2020 at 09:35, Ludovic Court=C3=A8s wrote: > Hi Simon, > > zimoun skribis: > >> $ /tmp/c/bin/guix time-machine --commit=3D36640207c9 -- help >> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu= .org/git/guix.git'... >> Usage: guix COMMAND ARGS... >> >> $ cat ~/.cache/guix/authentication/channels/guix >> ;; List of previously-authenticated commits. >> >> ("41a2d6a8b9294a6eb8e97aaefd569e755f5f461e" >> "e70e097882699865f63eabc5fb29b4fe4468a97b") >> >> >> However, the commit 36640207c9 is not considered as authenticated, >> right? So, the older authenticated commit is the first commit used by >> time-machine, right? > > Note that it=E2=80=99s the closure of the commits listed in the cache tha= t=E2=80=99s > considered authenticated. So not every commit is listed. > > Does that make sense? Just to be sure to understand: 1- * 41a2d6a8b9 (newer) 2- * e70e097882 (between) 3- * 36640207c9 (older) 4- * xxxxxxxxxx (first authenticated commit) >From a fresh cache, a) if #2 is authenticated, because it is descendant of #4, it is stored and all the commits between (closure), i.e., #3 should be considered as authenticated. b) then if #1 is authenticated, because it is a descendant of the last authenticated i.e. #2, it is stored in the cache. c) now let try #3. It is considered authenticated because in the closure of #4 and #2. Yes it makes sense. All is good. :-) (And the assumption is: if Guix does not raise then it means that the commit is authenticated.) Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 23 04:53:58 2020 Received: (at 41908-done) by debbugs.gnu.org; 23 Jun 2020 08:53:58 +0000 Received: from localhost ([127.0.0.1]:35428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnegn-0002r6-Qc for submit@debbugs.gnu.org; Tue, 23 Jun 2020 04:53:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnegm-0002qp-23 for 41908-done@debbugs.gnu.org; Tue, 23 Jun 2020 04:53:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58556) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnegf-0004lT-AZ; Tue, 23 Jun 2020 04:53:49 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=52752 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jnege-0003fg-RV; Tue, 23 Jun 2020 04:53:49 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#41908: guix time-machine fails; XXXX is not related to introductory commit of channel 'guix' References: <87blli11pi.fsf@gnu.org> <87366qeovy.fsf@gnu.org> <875zbka0h6.fsf@gnu.org> <86imfjsco3.fsf@gmail.com> <87d05q5j4w.fsf@gnu.org> <86d05qrx5a.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Messidor an 228 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: Tue, 23 Jun 2020 10:53:46 +0200 In-Reply-To: <86d05qrx5a.fsf@gmail.com> (zimoun's message of "Tue, 23 Jun 2020 10:42:25 +0200") Message-ID: <87blla40yt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41908-done Cc: 41908-done@debbugs.gnu.org, Jan Nieuwenhuizen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) zimoun skribis: > Just to be sure to understand: > > 1- * 41a2d6a8b9 (newer) > 2- * e70e097882 (between) > 3- * 36640207c9 (older) > 4- * xxxxxxxxxx (first authenticated commit) > > From a fresh cache, > > a) if #2 is authenticated, because it is descendant of #4, it is stored > and all the commits between (closure), i.e., #3 should be considered as > authenticated. > > b) then if #1 is authenticated, because it is a descendant of the last > authenticated i.e. #2, it is stored in the cache. > > c) now let try #3. It is considered authenticated because in the closure > of #4 and #2. > > Yes it makes sense. All is good. :-) Yup, looks correct. :-) > (And the assumption is: if Guix does not raise then it means that the > commit is authenticated.) Exactly. I know it=E2=80=99s disappointing, but it=E2=80=99s one of these = features that=E2=80=99s pretty much invisible until you run into troubles. Ludo=E2=80=99. From unknown Thu Sep 11 12:42:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 21 Jul 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator