From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YPaFKD/EuWIRBQAAbAwnHQ (envelope-from ) for ; Mon, 27 Jun 2022 16:52:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2C+OKD/EuWJbhQEA9RJhRA (envelope-from ) for ; Mon, 27 Jun 2022 16:52:47 +0200 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 B0F1476C0 for ; Mon, 27 Jun 2022 16:52:39 +0200 (CEST) Received: from localhost ([::1]:52852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5q6Q-0002o2-SO for larch@yhetil.org; Mon, 27 Jun 2022 10:52:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5q5u-0002li-QM for help-guix@gnu.org; Mon, 27 Jun 2022 10:52:06 -0400 Received: from cczrelay01.in2p3.fr ([134.158.66.141]:38752) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5q5r-0005p4-Mx for help-guix@gnu.org; Mon, 27 Jun 2022 10:52:06 -0400 Received: from [193.48.89.201] (sbgat392.in2p3.fr [193.48.89.201]) (authenticated bits=0) by cczrelay01.in2p3.fr (8.14.4/8.14.4) with ESMTP id 25REpn9b013886 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Mon, 27 Jun 2022 16:51:55 +0200 Message-ID: <791b01c6-2b63-b9b3-3f52-c9e1796bc1a1@iphc.cnrs.fr> Date: Mon, 27 Jun 2022 16:51:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Trying to replicate guix packages list on another machine Content-Language: en-US To: zimoun , help-guix References: <87r13aw51c.fsf@gmail.com> From: Emmanuel Medernach In-Reply-To: <87r13aw51c.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=134.158.66.141; envelope-from=Emmanuel.Medernach@iphc.cnrs.fr; helo=cczrelay01.in2p3.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656341559; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=8e1jJh+dDl0z4LCIogGGU76izvAXEIaalTMY1GYQpok=; b=fMwQ2axA+jV46i43N00lAxjgNKlDVAb+9VwgIjIM5FPPMDDOrW6RGzXj1f84MQuT77Fgfb GVQILOHV6/aAE5n03zpTikkoacChjocBWfhBXoCi4+1F/GdXINevDYvbuw2YiyJbhWl789 gU7G+ASv28H7LYQBTpqbDDvxlrlEjxCB3U2fehdwB5+SBIkmwWdkzHaU3QWeY2ZRETIOuG Tl6OJuYLHUUiUc9mpFZ6DKsPrUXYESsgSo33wiSEvcfSxMlr3jLHCPJGUl0sKBT4sfDam7 bRdFNL/LxeItYFNHVaLf5Fw7HGb0gjREmD7OTDqNIPDW2l5+ntUiJU8IIDDZwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656341559; a=rsa-sha256; cv=none; b=rrVW5FjqWx8Rd3dhpPE1nnHl/OtYJj595v/Xu2IG28S6kFZN96Fw/7lph04jUKUZ+YtoJa v1Rh5SjJ27Hmpf0VNs6JXXD4N3O2nbuFIdW5lnj/ZDR75gLcDg7uQeUK+V5Rll/VyjGSyf IwrFwkAqREwaUMd0VeGkzjx15b7YMPsKehRPcmWOV/ZscGv52yNcT9QgMg5AfdMmXvjRyL vzyn8DrMhWM3YXn/BL1tWtQHvN3Gj2y5hUAcNLZxrUuaIQ4Ssl8AiUJJSy0x0pvA+DTSsy lbodpjeYLMswySNHH4AbhUMyucSMlX26hCvzYjhRBAYQfOZdMWAThWE50wnMQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B0F1476C0 X-Spam-Score: -3.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: +HqZF/bj9djS Le 27/06/2022 à 16:32, zimoun a écrit : > I guess “guix describe” on ’Machine B’ is not the state specified by > ’Machine A’. From my understanding, the easiest workflow is: > > machine-A$ guix describe -f channels > state-A.scm > machine-A$ guix package --export-manifest > pkgs-A.scm > > exchange these 2 files (even, it is better that these 2 files are > versioned with the project itsefl ;-)) > > machine-B$ guix time-machine -C state-A.scm \ > package -m pkg-A.scm \ > -p profile-A > > > This way, the global state of ’Machine B’ is unchanged; in case you are > working on several projects at various states in the same time. Thanks, here is the resulting manifest: (specifications->manifest   (list "gsl"         "pcre"         "icu4c"         "zlib"         "cmake"         "make"         "gcc-toolchain@4.9"         "glibc")) [Machine B]$ guix time-machine -C ~/.config/guix/channels.scm -- package -m manifest.scm -p profile-A ... building profile with 8 packages... hint: Consider setting the necessary environment variables by running:      GUIX_PROFILE="/iphc/home/emederna/profile-A"      . "$GUIX_PROFILE/etc/profile" ... [Machine B]$ guix package --list-installed  | sort | awk '//{ print $1 "@" $2; }' cmake@3.19.2 gcc-toolchain@4.9.4 gsl@2.6 icu4c@68.2 make@4.3 pcre@8.44 zlib@1.2.11 Why is glibc missing ? Emmanuel > Hope that helps, > simon