From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GMnyDWMzWGFGpgAAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 12:24:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yKWcCWMzWGGbIgAAB5/wlQ (envelope-from ) for ; Sat, 02 Oct 2021 10:24:35 +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 C53D22AAB3 for ; Sat, 2 Oct 2021 12:24:34 +0200 (CEST) Received: from localhost ([::1]:52362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWcC1-0002Jh-TP for larch@yhetil.org; Sat, 02 Oct 2021 06:24:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWcBX-0002GV-Pr for guix-patches@gnu.org; Sat, 02 Oct 2021 06:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWcBX-0000CS-ID for guix-patches@gnu.org; Sat, 02 Oct 2021 06:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWcBX-0007Z8-FL for guix-patches@gnu.org; Sat, 02 Oct 2021 06:24:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] [PATCH 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: Sat, 02 Oct 2021 10:24: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.163317019228971 (code B ref 50960); Sat, 02 Oct 2021 10:24:03 +0000 Received: (at 50960) by debbugs.gnu.org; 2 Oct 2021 10:23:12 +0000 Received: from localhost ([127.0.0.1]:57967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWcAi-0007X1-FP for submit@debbugs.gnu.org; Sat, 02 Oct 2021 06:23:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWcAX-0007UP-Bz for 50960@debbugs.gnu.org; Sat, 02 Oct 2021 06:23:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49202) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWcAS-0007fe-6g; Sat, 02 Oct 2021 06:22:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36460 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 1mWcAR-0007gb-TF; Sat, 02 Oct 2021 06:22:56 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sat, 2 Oct 2021 12:22:38 +0200 Message-Id: <20211002102240.27815-8-ludo@gnu.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211002102240.27815-1-ludo@gnu.org> References: <20211002102240.27815-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=1633170274; 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=XOewvOYYwmwKGIaTm3Bqq2WtrKH/7zET/s9bn/FC0w0=; b=d9fBtts3Xv6yNpvgCz/vM9ZT+hI9qHGQfxMAUYg1ReNC83RIxEsUrI7q0LnRKEuss7hZXi Um0ju+50cbDbT6RY/nBc9FqlNjXCUe2HFUjqDFXNOeamH08N5iF3KA4hxE0QukRQzYtyWW hKoq/1NEgb1pR/cEuLGNFUT865OL23TmLT1F3oqhqZhPLU+CL8fXDTRMaUlft8CZvMHxxA xIbQ1b4AohqLhgRvXYoJhPqYZ7ejucbgbv2CLlzeH+nylcPZJBu7160d0e+XyuCZK23KZ5 XxpinKYnKzVL7JLmoApi2dk40ibBmselOP2fUN+mmkMkqDIPWwgMneb6uC3NZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633170274; a=rsa-sha256; cv=none; b=W6FnCwAet+JlfE9tS1wuRoD6LA2Ai/QmiJmCDsY7Ifejgf0J44yFXOnnKm4MSQdfSVFWj5 ofbPJrNNA03SaC8Xe/yPhrSA5KeFhfhJaZE4unfJHjekeN7/xOpFp67U8ZSYNFKqrznbO9 k3qO89zDE13S0KRFiB3GwydP245RPAVOm9wNIA4oVeS9UakfqdQKvooVxxDB2yey6Zh+BC AI/Jew3IINfiCNsS10z6n/OQcbFdZOQ14fWyDKOfKplRtjU7x2tg/P8ACaZvF5ncU+oC45 ohg1AmfkDG7ZixKBCe7t7vjMOYAebjx2pmg7mW3/FGkfZL56X5KZGCPtiaLiZw== 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: 2.79 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: C53D22AAB3 X-Spam-Score: 2.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: HqqBrEA4iRWR 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 @@ #: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