From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4D8WKXUAJWB8MwAA0tVLHw (envelope-from ) for ; Thu, 11 Feb 2021 10:01:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yDvcJHUAJWBcGwAAbx9fmQ (envelope-from ) for ; Thu, 11 Feb 2021 10:01:25 +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 4719D940105 for ; Thu, 11 Feb 2021 10:01:25 +0000 (UTC) Received: from localhost ([::1]:46006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lA8mp-0002m7-VN for larch@yhetil.org; Thu, 11 Feb 2021 05:01:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53258) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lA8mU-0002jg-JZ for guix-patches@gnu.org; Thu, 11 Feb 2021 05:01:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lA8mU-0000ld-C6 for guix-patches@gnu.org; Thu, 11 Feb 2021 05:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lA8mU-0006tt-Aw for guix-patches@gnu.org; Thu, 11 Feb 2021 05:01:02 -0500 Subject: bug#46291: [PATCH] environment: Allow starting from existing profile Resent-From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Thu, 11 Feb 2021 10:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46291 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Lars-Dominik Braun Cc: 46291-done@debbugs.gnu.org Mail-Followup-To: 46291@debbugs.gnu.org, iyzsong@outlook.com, lars@6xq.net Received: via spool by 46291-done@debbugs.gnu.org id=D46291.161303760926448 (code D ref 46291); Thu, 11 Feb 2021 10:01:02 +0000 Received: (at 46291-done) by debbugs.gnu.org; 11 Feb 2021 10:00:09 +0000 Received: from localhost ([127.0.0.1]:57829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lA8ld-0006sW-K2 for submit@debbugs.gnu.org; Thu, 11 Feb 2021 05:00:09 -0500 Received: from mail-oln040092253080.outbound.protection.outlook.com ([40.92.253.80]:16888 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lA8lb-0006qT-6e for 46291-done@debbugs.gnu.org; Thu, 11 Feb 2021 05:00:09 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AeEoRZVLlAJ4XX9DVdHEFlU+A7I8EXrvxR3z3GkMXaVntHhMylkh00ls+rgAJTl4KTW7r7zXRW9esd/eC3BYTmS51bjPlJl8SWkPJXVCCMQN0lATZ7EkV1aPTWoWxVUcCsuGU2+vVdZdpdV63WtkgzIXuuQSbCQst7ZWxbysjrzQR5yNivgBtoPYthzPeVa6V8MeiutK3ZGXeuW1JO0d7UicttQjazeXpDWA0Jp5mig0142R8Pn50OI4nE4xzhSZJ5qX+HqcIFlh7uRVBS4r5YdMaBFEtpBA4OV+6x4KMN1+D2FYwFEsQmcnv+wSEr3ik1E/P/kP/50JUbF4i8NLJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kXV4wobdT9CPqrYumJZUgtZ52XQulYtTYDz/BKMkhz4=; b=RNz3KG0P7o8saquTvry0cwCChR1Q3Irqp6W5+/jgS08GdbLYGnoI8R+oPhiAoEyopsO/UnBkYPH8VZ4Fp4gsqs46r0upb0VJdGTD3lRS2xf47vMv9nGsl7URiG+FBo6Zltc9lH+tKWy5dbMpkPEUuLERxb+2Q79UoLxz4ZTRoB3s/5z2ODEqShz6Xy7tY1Fhu89DeAcFpRUzDo6Eo4PgyEA/Ib3lABohh9LSP+LNu+d2G2sD4rSsHuI55+OuNd/J0Ytt24PUKL7dXLwlXz/bZ6ShNsXErsnhKJSfQtOK2eVHUinD+JU28JBxDTp7HTQ6cAcnuA8S+FXp/6JL3do+7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kXV4wobdT9CPqrYumJZUgtZ52XQulYtTYDz/BKMkhz4=; b=ouNrs215DvdAUnG/qfk7swU0H86emHNA600EWzygn4Tcl0f84ASJBEUGc4K7MTFrgdF9I9OeUPst0I7NsmW1vHF0BBddxJ2SicTEp7cevN4X7ZIW14GZzLlHlYaCngHHxktlgka5yxotZ7S7aazS0yEG8Vj/F/VmddcSY4hSC5bdePhruXWxM84SIvZ/hHBbYSBOMQQ/+BqaM9Qav5gDH4AmC9KJYWCLvmMosqxLK4spql5zkE42/SNdlFjA+pv/D7YfyECS6YjlPOIlNJwA+/GHDj9UYlcLo7ETk7tXA2OR297lpgyoCN1CAKnAHVQA/xt6Hvvtmnjpt9UQ1qGnlg== Received: from SG2APC01FT060.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::46) by SG2APC01HT217.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::339) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Thu, 11 Feb 2021 09:59:54 +0000 Received: from OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM (2a01:111:e400:7ebd::47) by SG2APC01FT060.mail.protection.outlook.com (2a01:111:e400:7ebd::409) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Thu, 11 Feb 2021 09:59:54 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C9CB321E5253A3CD30A981132654B1E9897873C568A2D2137880EC8C6234E965; UpperCasedChecksum:3ACA8D1790CE6370A2AE93C1582A4DD78FFBD0443C4DB8A23EE55913AFC8D6B4; SizeAsReceived:7534; Count:46 Received: from OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM ([fe80::4987:bbf2:2bff:6b22]) by OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM ([fe80::4987:bbf2:2bff:6b22%5]) with mapi id 15.20.3846.031; Thu, 11 Feb 2021 09:59:54 +0000 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: Date: Thu, 11 Feb 2021 18:01:31 +0800 In-Reply-To: (Lars-Dominik Braun's message of "Thu, 4 Feb 2021 11:13:20 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Content-Type: text/plain X-TMN: [YKPmFtM7pEbpGtBTr1N5rLt/Ecdw947J2kdPoahdRC5Vv9abIG+kFRCf+XsdCUaE] X-ClientProxiedBy: AM0PR10CA0054.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::34) To OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:ec::11) X-Microsoft-Original-Message-ID: <877dneditg.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (2409:8a62:378:f4a0:2f1:f5ff:fe18:6bb) by AM0PR10CA0054.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.26 via Frontend Transport; Thu, 11 Feb 2021 09:59:52 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: bb904efb-78c6-4d5c-df33-08d8ce73c7b5 X-MS-TrafficTypeDiagnostic: SG2APC01HT217: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j/XZ7elZRAX8quATAGLcIJHqc9/4G9+YECKuH0KPggaFSzOmSrxjU1HdurPfSS1MJnENi6J8N4OaCAqLV9kitiIEgC7gi2cDoMOoEXgr/nQIrMExgsb3qjz7zJwoggbiqQ1JPKKP0RaLYvHQ2orYJWwHYv+JvnwD89SNzIX6zS4V97cO/nJD0+rOIJZdm8sQtmmq1aAtBn4+TtkljQ7pFz9WTuzWxl5b3AJRyNMTQhYOZkrVyRjiz0CnEEqP9EnUdpnnbanLHqYm4aASAWCGd9XTfD/43/IkfCMdOmHwvr+ETirXXbqAczywO6Qgj17JaYf1Jg4jBj4QgTQBvWXS+lgl9ZAI55JrRakeYguh8L5jOloeIIH/cIhmcYNZDwj3RLWqgrzEHFlqD2D+bI4TFA== X-MS-Exchange-AntiSpam-MessageData: +yM3XCOMBz798Y28Dg46NppEQU74Gd9fkAl5fLuNtVYrwVWuRqZ66MDhP/yqjqw/0lNY1xsk1ADxr6E041RGG6AdVhewxDIzwek/8bk2ZzbfsLTAp9Z7WskB/PSyvmINte5H4P5/RHvSzR1gdnZAq7/eZn1gyrIBkFW+QKyzYja/Hffq4czznaacd4w3ppBgiaVGS5nYkp+PcYOMkrxG7w== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb904efb-78c6-4d5c-df33-08d8ce73c7b5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2021 09:59:54.5447 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT060.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT217 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 X-Migadu-Spam-Score: 0.74 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=outlook.com header.s=selector1 header.b=ouNrs215; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed)" header.from=outlook.com (policy=none); 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: 4719D940105 X-Spam-Score: 0.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: OCf1HnVYqpIN Lars-Dominik Braun writes: > Hi everyone, > > the attched patch allows starting a `guix environment` from an existing > profile. Our use-case is this: We have profiles, created by > > guix package -p /path -i & > > because we need to parse desktop files in /path/share/applications. Also > this does the heavy-lifting (substitutes/building/grafting) upfront once > and not when starting an environment. Then we start an application from > this profile using > > guix environment -C [&] -p /path -- jupyterlab [&] > > This is much faster (10x) for large profiles (i.e. JupyterLab) than > > guix environment -C [&] -m manifest.scm -- jupyterlab [&] > > and makes sure the environment is exactly the same as > > source /path/etc/profile > > I think there have been many discussions about how `guix environment` > should work and this is certainly not the silver bullet, but it.s a huge > improvement for us with very limited code changes required. Look excellent to me, pushed, thank you!