From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4PUnLwLRbWFkigAAgWs5BA (envelope-from ) for ; Mon, 18 Oct 2021 21:54:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KOLtKgLRbWHdVAAAB5/wlQ (envelope-from ) for ; Mon, 18 Oct 2021 19:54:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 57597128FD for ; Mon, 18 Oct 2021 21:54:42 +0200 (CEST) Received: from localhost ([::1]:37040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcYiX-00016s-Gb for larch@yhetil.org; Mon, 18 Oct 2021 15:54:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcYhw-0008Ns-G5 for guix-patches@gnu.org; Mon, 18 Oct 2021 15:54:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37139) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcYhv-0003yb-7l for guix-patches@gnu.org; Mon, 18 Oct 2021 15:54:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcYhv-0000RA-6s for guix-patches@gnu.org; Mon, 18 Oct 2021 15:54:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH v3 08/10] environment: Autoload some modules. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Oct 2021 19:54:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50960 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50960@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.16345867851560 (code B ref 50960); Mon, 18 Oct 2021 19:54:03 +0000 Received: (at 50960) by debbugs.gnu.org; 18 Oct 2021 19:53:05 +0000 Received: from localhost ([127.0.0.1]:48672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcYgy-0000P0-PS for submit@debbugs.gnu.org; Mon, 18 Oct 2021 15:53:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcYgl-0000Mj-HP for 50960@debbugs.gnu.org; Mon, 18 Oct 2021 15:52:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51640) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcYgg-0002o6-99; Mon, 18 Oct 2021 15:52:46 -0400 Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:60778 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcYgf-0007lj-UO; Mon, 18 Oct 2021 15:52:46 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Mon, 18 Oct 2021 21:52:17 +0200 Message-Id: <20211018195219.13898-9-ludo@gnu.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211018195219.13898-1-ludo@gnu.org> References: <20211011213809.17482-1-ludo@gnu.org> <20211018195219.13898-1-ludo@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634586882; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=nzeSeadB3qaNhL4+5WsDAQpRWQZJlD2xGxu3AaaY/x0=; b=j0srRZD7nYttZ/Oa0fJRdPKhhiPxV2JftqwP5lLIx/Yf99pDt+0qecmDf1JqP6+hrgOIV7 1hp65AFeAE85B5tr78/wwonGfLLYP0vMWUyD0+ooTstRaNl+tI0NoV7I1UGpqvWfu+9VkY WSnBkuD8ZFK8T1vq3u8VdC1hrKThfM0L62WLBCpGa4/K/OYtGmlUuXQ2ewXWWwpO6AZRti 8VHr+81McREZUqvOHnP6iLWbRDCw3gsCk8nxCWkVBD6aBa+Vaw3sLamwouOOm3/VLBOSLD Y0ZUQ4YmvaA7Uk6APCFGMFn0+aTBiyxCuRCHtHIitVrIMLFihGG8nQi9pspHKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634586882; a=rsa-sha256; cv=none; b=UCWMwmj5kLJVW8QwZQNoQNsHZDzYAGc8xwANtX0OmS/LLIba6AXghCM0CngMvmF+IzGKYF qSyDmiRvDSkQLzFo4FfqfS/7LO2Bv8m//FirqbK/Wyx+hqw9vcqUAFDyZv1wNo7hGsqReV 8fk9IZm2ZGviDbdlAAEtvYNknnB7bn/vvIbR1oHcm8TQPRpOnCZyxQaBZRWx/YdtavNK6H zL+NZpJ2fzbWvnUZMmGW5sQ1k2r88mSzpDw2PkrXtWCyreaOS3apsVPprCmvNPROOLl4Dx 0D+X84R8K6LvpGkeOkmFXOp06/fEX0BvWA8es44SRukgq+VryIUgYhKppnLNhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.57 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 57597128FD X-Spam-Score: 3.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: UMfqED75ul9o This further speeds up the 'guix environment -p PROFILE' case. * guix/scripts/environment.scm: Autoload a bunch of modules. --- guix/scripts/environment.scm | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index e23d52df39..05a43659da 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -34,15 +34,18 @@ (define-module (guix scripts environment) #:use-module (guix scripts) #:use-module (guix scripts build) #:use-module (guix transformations) - #:use-module (gnu build linux-container) - #:use-module (gnu build accounts) - #:use-module ((guix build syscalls) #:select (set-network-interface-up)) - #:use-module (gnu system linux-container) + #:autoload (gnu build linux-container) (call-with-container %namespaces + user-namespace-supported? + unprivileged-user-namespace-supported? + setgroups-supported?) + #:autoload (gnu build accounts) (password-entry group-entry + password-entry-name password-entry-directory + write-passwd write-group) + #:autoload (guix build syscalls) (set-network-interface-up) #:use-module (gnu system file-systems) - #:use-module (gnu packages) - #:use-module (gnu packages bash) - #:use-module ((gnu packages bootstrap) - #:select (bootstrap-executable %bootstrap-guile)) + #:autoload (gnu packages) (specification->package+output) + #:autoload (gnu packages bash) (bash) + #:autoload (gnu packages bootstrap) (bootstrap-executable %bootstrap-guile) #:use-module (ice-9 match) #:use-module (srfi srfi-1) #:use-module (srfi srfi-11) -- 2.33.0