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 GMAaEif6wmL+KAAAbAwnHQ (envelope-from ) for ; Mon, 04 Jul 2022 16:33:11 +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 A2XlESf6wmLyVgAA9RJhRA (envelope-from ) for ; Mon, 04 Jul 2022 16:33:11 +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 07984E434 for ; Mon, 4 Jul 2022 16:33:11 +0200 (CEST) Received: from localhost ([::1]:59506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8N8Q-0000UJ-3C for larch@yhetil.org; Mon, 04 Jul 2022 10:33:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8Mec-0005di-Qk for guix-devel@gnu.org; Mon, 04 Jul 2022 10:02:23 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:51964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8Mea-0001Jl-Cv for guix-devel@gnu.org; Mon, 04 Jul 2022 10:02:22 -0400 Received: by mail-wm1-x332.google.com with SMTP id m184so5484086wme.1 for ; Mon, 04 Jul 2022 07:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=ER0nU/RTIm1462CpaG/LDUcJlUTyvo9e0W7elxVAZ7U=; b=APoXJkyxOm8WtuSkpfaWY/G2XMANWowOFiZ6uzAkQGILNG3FybbruQF2HAsHoTCFVt 9obY90k9NIwaS/rax3jaeZ9FcdxKHpEoUSQn7C1xd/EJ/urGjM2QTCzzjOkFBySU5T// eipEsOev+DiJpx3ZUwF+8XacaX1g61Kke4GstQoMijz6zIGBxSQL6LBh3/uh9c87TEIK 6nq0SUpDBZ8tiyOEs85WiGCMdUYVp+5etvQCsxdfZdLuMSl3bz2fmZWfJq8hGU78EC9q 1XapHTKWTTlUgc8QthrDM9YcM7XJPhw3Fqh6UhOBqcn/iSizJN4UwPt2U2LZtTAuTYew Pbtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=ER0nU/RTIm1462CpaG/LDUcJlUTyvo9e0W7elxVAZ7U=; b=zyol9tvOP9QPzTNi27DiRb3oPO3UKnloJiz/dv3jJJ/BKuooP9m9OUsg+gHtg9G/dh 2dRo8TUDZsbVTmzX4qPmH5h/Kfos0JfNLAAEJtFjP9iagi7oeY6BHZF89IRAhGlD0lMO j6mu8KP0msUpJAbA0BURRAlqvm72hKbrd6HAvYgCrWSMXb5/NWKZkd7ahB+VyRFYxaXX nrQ8PSERL++K+tUylWn5cpraVZdM631OwRIzzpt4Rmuk5Xlh6uwH3iZPp4sb4Qq3dbeQ CSBVK1nVObg5wYu65ccXiPmLsHSjM4JPfGaDT1qrknQ9+g2TGWydbmmYsfX9TOvym4x0 mpuw== X-Gm-Message-State: AJIora/yUmf5yltUer+95VOIIpgiE91cq+2hmywKxd/eOh99/HclDT1Y qf4MkAxmR02ayMsvBSwLGXOSaJK65X4= X-Google-Smtp-Source: AGRyM1t8h0rV5Zkz8p/qFalx1Y6nQYd+cGasvONKvbjKtYDTSOhzBqGDeAwDQNsIHtp8V8HYeXxj+g== X-Received: by 2002:a05:600c:1797:b0:3a0:38a7:8675 with SMTP id x23-20020a05600c179700b003a038a78675mr32966345wmo.120.1656943338642; Mon, 04 Jul 2022 07:02:18 -0700 (PDT) Received: from lili ([88.126.110.68]) by smtp.gmail.com with ESMTPSA id o4-20020a5d6484000000b0020d02262664sm30055054wri.25.2022.07.04.07.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 07:02:18 -0700 (PDT) From: zimoun To: Hartmut Goebel , guix-devel Subject: Re: Shall updaters fall back to other updaters? In-Reply-To: <71902b16-4c29-c2f3-c99b-c103f3f6647c@crazy-compilers.com> References: <71902b16-4c29-c2f3-c99b-c103f3f6647c@crazy-compilers.com> Date: Mon, 04 Jul 2022 16:02:14 +0200 Message-ID: <86tu7xyo0p.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1656945191; 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=ER0nU/RTIm1462CpaG/LDUcJlUTyvo9e0W7elxVAZ7U=; b=am7ICqaZk5NXrPB7uOY+MP6Ik1aGCdPkD104P9cgYhUHHY01VpVnrVQbmCVdbHDLZqLyVJ kvmQ/DPX1Gj30PK3cjo/nPhytOzL+kpSnbKnBPsOliw94AB+jJ0xlTzfmW5OVTrdMFxaYV 9O6kDzc+wkZo5V1X0NbJwujjGWhZEWo5gEg2DDbzFJcvSeP9PU3f2MJLsam/I0lEHW0oZG tV1SNH4+1o4KqlF6bpa0wRzcN+x3YhrHDRG9tONPKFqq4yeGeYdBHjzEkt5AVbNSFbkbwP nCtLSNnxbaeoROlzpojD9zRjPKj3bxIiMaWCs5p7hU8OB3DVaVeHdQucIGozbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656945191; a=rsa-sha256; cv=none; b=P2c+LWqpFi6hjOItRa1mhIa2+Ad2xxn0XL9coAWnO0KCrb3j9qPtGurlf2agIYERpys+h3 YdDT01HB+mYev3RxK4YUMg2oxf/MXp1/r5Zr7mFZSoIvzAvyr/qzYYwq6z3FXpixglr06z mBVE7H81qV4/TwS3VsmoIF+JteBiUbnQ311tHhXjIfOtBV4nHuWHIy5TPMURtFcGNcVm/p w804d7qp5dPcNfN+Lz0iFEmOeFU/G80EhFKCGINtvzb3Yj1UEEqW3KwCtAL5nipCuIk1uI I14RXB1IU70fzoCGFp2rnOrAhQWihVISxqsHMWyRize69ldd/dodbQNCue2P5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=APoXJkyx; dmarc=pass (policy=none) header.from=gmail.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: -7.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=APoXJkyx; dmarc=pass (policy=none) header.from=gmail.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: 07984E434 X-Spam-Score: -7.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: EzyqTzhYnsXa Hi, 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 b= ecause it depends on how the filesystem tree is walked. Therefore, indeed =E2=80=99importer-modules=E2=80=99 from (guix upstream) i= s not sorted and the order is non-deterministic. (Note that =E2=80=99fold-packages=E2=80=99 from (guix packages) is not dete= rmining too, if I remember correctly.) Well, make =E2=80=99all-modules=E2=80=99 deterministic requires some benchm= ark because it could like to some time penalty; even if the order does not matter. Some commands are already enough slow for adding an extra penalty. ;-) Maybe sorting =E2=80=99%updaters=E2=80=99 would be enough; something like, --8<---------------cut here---------------start------------->8--- (define %updaters ;; The list of publically-known updaters. (delay (sort (fold-module-public-variables (lambda (obj result) (if (upstream-updater? obj) (cons obj result) result)) '() (importer-modules)) (lambda (u1 u2) (string8--- Cheers, simon