From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +NpBE2Ap5171MwAA0tVLHw (envelope-from ) for ; Mon, 15 Jun 2020 07:55:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qPYfD2Ap5141SgAA1q6Kng (envelope-from ) for ; Mon, 15 Jun 2020 07:55:12 +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 088B09401CF for ; Mon, 15 Jun 2020 07:55:12 +0000 (UTC) Received: from localhost ([::1]:33224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkjxX-00033X-0Z for larch@yhetil.org; Mon, 15 Jun 2020 03:55:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkjxO-00033K-BO for guix-devel@gnu.org; Mon, 15 Jun 2020 03:55:02 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:52975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkjxM-0000l3-Fr for guix-devel@gnu.org; Mon, 15 Jun 2020 03:55:02 -0400 Received: by mail-wm1-x333.google.com with SMTP id r9so13603943wmh.2 for ; Mon, 15 Jun 2020 00:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=d3RZoj9Gpq7/2gzREW66ZeMHQPD3z84Ssj1ZTumNQ6g=; b=NzCDgb2tI6nJN/fQ4/Ti5j9u8D4NDe8IasD+5hdPR/bWMlw/0K1AmqW7skgGtX0dk/ fxy3V7tXz9MdnCtE3HvZcYSa+7RAFR/H+mMrng47HldmTY4tb4gHe0zIgCo4KDH7AwI+ sXo+h9JsheBe+U+L9OckUcmBwzjVKF0R/wiZoztd2VKCRQqiCZreYrHIsfzFFyqccFw9 yZ6FLJxII/OYppSZNhQobzAyImrVKD6xGwh6sAObxXLWfGzgixdQUvBZFdMG2Hjo9/1q mhFF0mAxuqXpbcQRv4wvgulu2yjkx/IIVPObdAdQrVIwMjW2+qKSwrD0WAkTR0xGH0A8 57mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=d3RZoj9Gpq7/2gzREW66ZeMHQPD3z84Ssj1ZTumNQ6g=; b=kh+roGnjofsiUMuwSzmG7scfRHFvLuAREHAMs40MxLD7y4dro72Gh60yWHj3Yu90H4 tjrfqsoZL8wATS9efqkkUcBnXhBLuQe+8wLuEXNJnAPOBDeNs6oFJr1jyjSC/cwAxVOK TfphGVupwdMlB9GAb3g4Ip2e0wXBVARIbisYk9yEmogSH/gQOXmjd+T88gpF0dgkke0D OLVEbqoTLCzMjhKvXYjjZ09ds4jBYxTjKK3rZ861B5jCJTYzg4789omKcoQQ/lG71z31 4X5OMxXtwsYHfIkZvfJdn1Oxspo6VqEp80uBitBn6RGiAAEM70YSfm+JqjbLFFp7dom+ zyng== X-Gm-Message-State: AOAM531aaluOfPMzIJ+0fozd22ujRWzV56m5G6ZFALm4/bcoagrhEdGg 3VpOjS9v2FVdNbeu6nzJRVNjJhVUplo= X-Google-Smtp-Source: ABdhPJzi8AG615tBXyE9Cf8ntq7Fvd/ksPOiVT50OnHRr+VSg15FYfCDa6dvkJfMkfjRCrGcxupybg== X-Received: by 2002:a05:600c:218b:: with SMTP id e11mr11794742wme.162.1592207698273; Mon, 15 Jun 2020 00:54:58 -0700 (PDT) Received: from lili (57.246.195.77.rev.sfr.net. [77.195.246.57]) by smtp.gmail.com with ESMTPSA id z206sm21820274wmg.30.2020.06.15.00.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 00:54:57 -0700 (PDT) From: zimoun To: elaexuotee@wilsonb.com, guix-devel@gnu.org Subject: Re: Using --manfistest with /manifest files In-Reply-To: <338KGSFKQGP1E.23382XUCMS8T3@wilsonb.com> References: <338KGSFKQGP1E.23382XUCMS8T3@wilsonb.com> Date: Mon, 15 Jun 2020 09:54:45 +0200 Message-ID: <86mu549322.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x333.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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NzCDgb2t; dmarc=pass (policy=none) header.from=gmail.com; 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.71 X-TUID: YV+FmNbaUNeu Dear, On Thu, 11 Jun 2020 at 10:40, elaexuotee@wilsonb.com wrote: > In an attempt to tar up the *build* environment for a package to share with a > colleague, I encountered this: > > [env]$ guix pack -m $GUIX_ENVIRONMENT/manifest > (manifest ...): Wrong number of arguments > > From playing around a bit, my guess is that the `/manifest' files are > just human-readable serializations of objects and don't deserialize > back: > > $ guix environment -m ~/.guix-profile/manifest > (manifest ...): Wrong number of arguments It is more "complicated" than that. The detailed explanations are in the mega thread. :-) In short and from my understanding, going from "/manifest" to "-m manifest.scm" cannot be done in the general case because two concepts -- imperative vs declarative -- are not well aligned. Pragmatically, it means that the result could be more than often unpractical with too much inferiors. Well, only an "approximation" could be exported. Sorry I am too lazy to search, but I think I remember that at the time Pierre sent -- probably in the mega thread :-) -- a small script to extract relevant information from /manifest; the preliminary for '--export-manifest'. :-) Otherwise, let open /manifest, write an Emacs macro and extract the relevant information. ;-) Well, because I hit the same problem some time ago -- well when I raised or revived the discussion about this conversion -- I fixed for myself by converting by hand some profiles and totally changed my workflow. Now, I never use "guix install" but always "guix package -m". For temporary test, I extend the profile with "guix environment" which is on purpose because it is a temporary profile; if it is worth, I add the package to the manifest file. (Sometimes, I run "guix install foo -p /tmp/foo" to test something temporary, mainly when I try to figure out an issue that has been reported.) Each time, I run "guix package -m" or "guix update", then I run in the same time "guix describe" and track the output. Well, I have 2 kind of manifests: - the ones of my setup, living under ~/.config/guix/manifests and where I applied some recipe of [1] - the ones of projects I work on, living in the project folder and each manifest is accompanied by channel.scm (guix describe -f). And I have almost no package in ~/.guix-profile but they live separated profiles (Emacs, Python, Apps, etc.). All the best, simon 1: https://guix.gnu.org/cookbook/en/html_node/Guix-Profiles-in-Practice.html#Guix-Profiles-in-Practice