From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IIfZOJGZxWKNOAAAbAwnHQ (envelope-from ) for ; Wed, 06 Jul 2022 16:17:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kAndOJGZxWI/zAAA9RJhRA (envelope-from ) for ; Wed, 06 Jul 2022 16:17:53 +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 B386C279C7 for ; Wed, 6 Jul 2022 16:17:53 +0200 (CEST) Received: from localhost ([::1]:44066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o95qi-0005zc-G9 for larch@yhetil.org; Wed, 06 Jul 2022 10:17:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o95pv-0005oZ-2C for guix-devel@gnu.org; Wed, 06 Jul 2022 10:17:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o95pu-0001i2-2g; Wed, 06 Jul 2022 10:17:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=OpJ9Pzp91j0vzyxJphWGMgb5MyYxhdnNMB7WuzHTPGE=; b=BsjJ1wZN+NeDH7W5i6RE a83tMp9Wtc+ZFAU/WHW6js7f4JAy7c4aek4NLsiaaM8C2PG1UyE6KAE04TAFz3bT4UbbMJGBx6LJS Kcv07VAsJSg9IfbjLN78OlCykGIUUPAUz3SVTzDNUZGRpaQiiWKhCoc5zIymrMQuz2DR3wRAyT4Oo 5x3E4I1p4e62If9QDn6I+23yIDE6G9U8Waih2uRn5J6fNfjvSp+PvZCQz1lEGncHTCQsQ0jNEJTGb 5SkkUsCqwTT2hMtz9Symtqqa1u6MZLPEoHFZMu018XCvoNkhRGfap88XsFfj1rE9S0WC+8URAw6Jl s2mU07IJp3mOGQ==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35674 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o95pt-0003LF-MD; Wed, 06 Jul 2022 10:17:01 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Cc: Hartmut Goebel , guix-devel Subject: Re: Shall updaters fall back to other updaters? References: <71902b16-4c29-c2f3-c99b-c103f3f6647c@crazy-compilers.com> <86tu7xyo0p.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 18 Messidor an 230 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour de la Gesse 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: Wed, 06 Jul 2022 16:16:59 +0200 In-Reply-To: <86tu7xyo0p.fsf@gmail.com> (zimoun's message of "Mon, 04 Jul 2022 16:02:14 +0200") Message-ID: <87o7y22un8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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.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=1657117073; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=OpJ9Pzp91j0vzyxJphWGMgb5MyYxhdnNMB7WuzHTPGE=; b=DiWJbPtE2fCXvrv7IyuxcaQfVOkEJiCGKIBlE8occXr7QmC3DJ75vyfIR6dZWk27EYILz7 uYsd59dXwvLTDm48xmK5gKWqFxcR+ZbiCnAPMRk0urCU0fIIQP9i33wXcWb/r1ax+g4kNU VS4lX+4rJq0QkQdV455A19QUrO2I3Tti2UhKjWGCqmszDBaV5O+6BidCKd3azJ4QyI7Bed 3YU6aLs45tF7oRya16UmfK+SStXJ7xALd6hID4YCl+OucnSTb7SRpxlzHigIvQX2JkUkme qm3XyTgDHaMOk2bSJZU1TfJcjnwLV3p32UFo7W16XUuhe1aUb2FbGETjYW4Teg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657117073; a=rsa-sha256; cv=none; b=fN+G+HkDQM8RNom498GGwxYBjXxKsPj9lXfPzNNkkOgj7gnhnHI1OX/WjGIv6LciJSLK9G QHiYsApKTL/no3X8/8fmeI+2jXXSIwltj0I96Y1UawgQjiHgd/AQmoP7F+C6iDffo5sssi AfB//pkKuvQf9cg7fwnv/ih06jg0Lm8tNd4lR0ZP2OTcIV9xCB8flmz2HxBq44Kh3PF8J5 5JMsK+lwloVSVHuHa3EEvGdWTfwZngCt2Bg4Kublf4nyrZYB3QxUSC9tuac61mNcHMUv8l HK4kecyBxcmCSrWY5DoaidQ2nhphdYhkuxLzec1Q9WtK489vjU+AZPqjgylppg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BsjJ1wZN; dmarc=pass (policy=none) header.from=gnu.org; 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: -5.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=BsjJ1wZN; dmarc=pass (policy=none) header.from=gnu.org; 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: B386C279C7 X-Spam-Score: -5.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: q3ZWz38pRGla Hi, zimoun skribis: > On Thu, 30 Jun 2022 at 10:58, Hartmut Goebel wrote: > >> BTW 2: Which updater is used for each package is non-deterministic. > > From (guix discovery), =E2=80=99all-modules=E2=80=99 is not deterministic= because it > depends on how the filesystem tree is walked. Nope! =E2=80=98all-modules=E2=80=99 *is* deterministic because it builds u= pon =E2=80=98scheme-files=E2=80=99, which is deterministic and documented as su= ch. > Maybe sorting =E2=80=99%updaters=E2=80=99 would be enough; something like, > > (define %updaters > ;; The list of publically-known updaters. > (delay (sort (fold-module-public-variables (lambda (obj result) Whether =E2=80=98fold-module-public-variables=E2=80=99 is deterministic dep= ends on whether =E2=80=98module-map=E2=80=99 is deterministic, which in turn depend= s on =E2=80=98hash-map->list=E2=80=99, which is not deterministic AFAICS. So what we could do is replace uses of =E2=80=98module-map=E2=80=99 with a = variant that sorts variables. That said, the only case where it can influence updater order is when several of them are defined in the same module. Thoughts? Ludo=E2=80=99.