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 ms11 with LMTPS id yJ03IdV37F6RZgAA0tVLHw (envelope-from ) for ; Fri, 19 Jun 2020 08:31:17 +0000 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 CLI8HdV37F7OEgAAB5/wlQ (envelope-from ) for ; Fri, 19 Jun 2020 08:31:17 +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 03AFD9408E6 for ; Fri, 19 Jun 2020 08:31:17 +0000 (UTC) Received: from localhost ([::1]:53464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmCQd-0004Nx-Tf for larch@yhetil.org; Fri, 19 Jun 2020 04:31:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmCQB-0004NQ-1B for guix-devel@gnu.org; Fri, 19 Jun 2020 04:30:47 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:43277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmCQ9-00041X-19; Fri, 19 Jun 2020 04:30:46 -0400 Received: by mail-wr1-x435.google.com with SMTP id l10so8797595wrr.10; Fri, 19 Jun 2020 01:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=mYhU0gsrGA5t/H6PqUQ7a5adO3PNYr1BjVGzd+as7WA=; b=N+ikX25S151W9PBcIkmJOPHSBsQvNMblxAfpdcGROuExIgOtEzsFIt24jcObLKLi8J SymLAE6zniyKCOV7EWeKIoG3/tsWoGFtrfYTln0hqlk34JLPaSvc0hT59vnNadYytLs7 EWgf+n1Xe1RtQnIrrPKz90bD+HSrn3TCuGSvNsugjBaYWaOuQQBNx5k6qcbs9knxuvUF T+VYbPzCX/BtNKp4qA9dLD9NXbp8E5TjntWrlIPSRbLgKqVC0hP2vCGQAsf3ecRD/fET xFKzTzc2oZ7eM1Z9qWcKHSN227a+02ou+epKWnAGKTbei5ZgSKn+zqqw+ThhAQmQZDbp 3UwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=mYhU0gsrGA5t/H6PqUQ7a5adO3PNYr1BjVGzd+as7WA=; b=dcrjhZP24zOzvY+Ms+U3L3EZNGsfb/qt61l7TrViTtVBM1f+S8IMDq6bFD25e8WZ8F b7+7YVj7FHKcJackejv/aig4V/rTPUxRUPDi177BGXZzBYC9s2VjwVRwP4sV7NjkQQp4 /fVq6njnYN7+SVl3rnZf3ZlHaNX0bSKsSLvJYHKAp8VWQ3p8hMwpPAswhxMkWuvHnsUM fggM9xY7Oh0ue3wPr6hu497ktaXqxyBesdvPUuYCGfME7TeA+BI8GjMC3RoDcCne7WPd Daq/hBcL17HkHCR3QSebTDAKPIHI+44PTp8Z5ZlZSSQb+BX7fMOen11caWE1tPbB83EC 7WlA== X-Gm-Message-State: AOAM533R0m7jLy/fEXWJ3C2xONpvcRXW+rVRtUGJD7krQ/sDgtZOJN6S svqJAA3b5E6yp9w0p6oiuFVctVe1ShE= X-Google-Smtp-Source: ABdhPJwU8841mxhbTyh/3bizAY+pUcBaFl2vQ1J6Wtm7SeAwA7pgxfaGbFrCV9tM0WPaIqM7pFe8Ww== X-Received: by 2002:adf:e590:: with SMTP id l16mr2658327wrm.383.1592555442398; Fri, 19 Jun 2020 01:30:42 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id o10sm6273622wrq.40.2020.06.19.01.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 01:30:41 -0700 (PDT) From: zimoun To: elaexuotee@wilsonb.com Subject: Re: how to "guix pack" a profile? In-Reply-To: <35IQNXNGMD4MQ.2U3WRPXMLCVVA@wilsonb.com> References: <338KGSFKQGP1E.23382XUCMS8T3@wilsonb.com> <87v9juwvn0.fsf@gnu.org> <87d062ne8a.fsf@ambrevar.xyz> <87y2opu0ue.fsf@gnu.org> <86lfko92fj.fsf@gmail.com> <871rmfwdfp.fsf@gnu.org> <2AU8F0YU6YV9A.3KVDEJ754D654@wilsonb.com> <86sgevqg8q.fsf@gmail.com> <268B906X3RZH5.3NHG3ABUCOVPN@wilsonb.com> <861rmexgwf.fsf@gmail.com> <35VODTGT3A8OP.2ZYCBD56EYVPN@wilsonb.com> <861rmcvssb.fsf@gmail.com> <35IQNXNGMD4MQ.2U3WRPXMLCVVA@wilsonb.com> Date: Fri, 19 Jun 2020 10:30:40 +0200 Message-ID: <86sgerv4nj.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::435; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=N+ikX25S; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: R8WFa+BULt0P Dear, On Fri, 19 Jun 2020 at 11:52, elaexuotee@wilsonb.com wrote: > What Pierre (and others?) initially proposed---what I am > re-proposing---is that we put a blob of Guile into the profiles that > is capable of uniquely and completely generating the profile where it > resides. Others? For example me. With Pierre, we spent some time at Guix Days to propose a new format. > 1. Composable profiles, This is already possible. > 2. Sharing "light" profiles buy sending only the "recipe.scm" instead > of an entire container. I am not sure to get what is a "light" profile but from my understanding what you want here already exist and it is manifest.scm+channel.scm. > 3. guix archive --manifest > 4. guix profile --manifest-from-recipe /recipe.scm > > The last one there is intended to be the tool for "migrate from > imperative to declarative" user profile management, starting from a > given profile. See below. >> What you describe here is exactly what Pierre and other have >> proposed. And the work-to-do is to prototype the format of what you >> called "recipe.scm", which means equivalently in the previous emails >> change the format of /manifest. > > I agree. However, in previous emails I have tried to make a rebuttal > to Ludo's argument than the best we can do is *approximate* a > manifest.scm. > > See https://lists.gnu.org/archive/html/guix-devel/2020-02/msg00098.html: I have the impression that the discussion is going nowhere. Make what you called "recipe.scm" or modify ">>> (Ludo) >>>> As far as faithfulness is concerned, we should also keep in mind >>>> that we don=E2=80=99t always have all the information needed to recons= truct >>>> what=E2=80=99s in a profile. For example, we lack information about t= he >>>> package transformation options that were used (if any), >>> >>> (Pierre) >>> Like `--with-input'? I didn't think of this. Can't we extend the >>> format then to include all transformation options, with future-proof >>> provisions? >> >> (Ludo) >> We couldstore package transformations as manifest entry properties. >> >> However, that=E2=80=99ll be an approximation: the exact implementation of >> =E2=80=98--with-input=E2=80=99, for instance, can vary over time. This snippet of quotation shows that it is not "easy" for the general case. And the transformation using "--load-path" has not been evoked. For example: --8<---------------cut here---------------start------------->8--- (define-module (foo) #:use-module (guix packages) #:use-module (guix profiles) ;; imagine it is used #:use-module (gnu packages base)) (define (crazy-transformation pkg) "Could do really complicated things" (package (inherit pkg) (name (string-append "ex-" (package-name pkg))))) (define bonjour (package (inherit hello) (name "bonjour"))) (define-public crazy-bonjour (crazy-transformation bonjour)) --8<---------------cut here---------------end--------------->8--- then "guix install -L /path/to/foo ex-bonjour". > However, with `time-machine' and a given `guix environment' or `guix > profile' invocation, we are able to deterministically resolve a > /gnu/store/-profile, no? Better yet, this is in a future-proof > way, no? If that is so, then why not canonify this profile recipe in > guile code instead of what is needed now: guile + bash? What am I > missing here? You are missing the difficulty to make it concretely, I guess. :-) > Just to be clear, I would be more than thrilled with a --from-profile > option to `guix pack'. However, I am trying to make a case that "first > class profiles" is both feasible and may pay back more in maintenance > cost than it consumes. Thank you for the ideas. Especially the two ones: 1. create an environment from a profile 2. pack a profile Well, I do not know if they will happen but it should be cool to have. I am going to move on since we already raised all the points, I guess. :-) All the best, simon