From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MHsbJa+tumKe4AAAbAwnHQ (envelope-from ) for ; Tue, 28 Jun 2022 09:28:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qCUmJa+tumLsuAAA9RJhRA (envelope-from ) for ; Tue, 28 Jun 2022 09:28: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 C4D9828B69 for ; Tue, 28 Jun 2022 09:28:46 +0200 (CEST) Received: from localhost ([::1]:53460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o65eP-0007BO-Bo for larch@yhetil.org; Tue, 28 Jun 2022 03:28:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o64kL-0000Sk-C3 for help-guix@gnu.org; Tue, 28 Jun 2022 02:30:50 -0400 Received: from cczrelay02.in2p3.fr ([134.158.66.142]:56974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o64kI-0004DM-TM for help-guix@gnu.org; Tue, 28 Jun 2022 02:30:49 -0400 Received: from [192.168.1.11] (buc10-1_migr-88-170-139-253.fbx.proxad.net [88.170.139.253] (may be forged)) (authenticated bits=0) by cczrelay02.in2p3.fr (8.14.4/8.14.4) with ESMTP id 25S6UffT003544 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 28 Jun 2022 08:30:42 +0200 Message-ID: Date: Tue, 28 Jun 2022 08:30:42 +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> <791b01c6-2b63-b9b3-3f52-c9e1796bc1a1@iphc.cnrs.fr> <87czeuw1xd.fsf@gmail.com> From: Emmanuel Medernach In-Reply-To: <87czeuw1xd.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=134.158.66.142; envelope-from=Emmanuel.Medernach@iphc.cnrs.fr; helo=cczrelay02.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=1656401326; 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=DN0DF2XCOi+/Qr791htzZyXn0joAQfkc/jTQY+40Lo8=; b=KbfVipV4p/Uvcl481GtcDc34FqjWnG4TLoYWM2U//gx8DsYpJdiTJrNI904WH7LdBxWeLB INbW4xUT7MnhCl/h3irGAThwZ7IvzwmcEpx6663/oYL4Q8+i9AX1EpJbOsoHAW9Wk+NUWF tJKzlhQvau/d6AuVjaYPJaNYu3sEfaz7wTToavln8kAXcnXQ2MmRTFqVz46z8PL4wIIXJi WSrF5YwbNJkVcc9gJ7mJAB+KVPKRdF20qBZ8P66zjjE53mWhL8ILHKQtuLGWjF/xfna1bU dHU5KM7R3FxPkwPLuKKa2NFY1r9SHAUHJNOImSHGvImubLI+zGLLGh6Pvf7pzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656401326; a=rsa-sha256; cv=none; b=gkTi/2l6Zh0eE3lD+kYYIo1+x0h0QJBP1wyF+ouovkELV7R8yPVZJHpd37XtT6ttvL86w0 TB3uaGXCo472jcXSJQAHwLa9Ym6dyKNYcNj0Uyv1T3OMFpxEsuRPOWTA5A7IyGuCNzhCqL Hp2+J0A2Piax8d/h0JdF6JteEdTZPVvIHy0Uup8Zte4cmtWDc2xlE6TjEkaE+caDwalwbd QLaXGXb7TLQKXtDTRwmOiGLbxOm6PBS51U9ESprW0fxj/UOYa1S7x7z423tvGbQuUk7DwD HbM+gY50FEtdw2Md3smkVKFzA6Q2X6WrZdamKFEbByk8pKsG+/z7sEcNqgTS+Q== 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.55 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: C4D9828B69 X-Spam-Score: -3.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: e0SKXJztSYuy Le 27/06/2022 à 17:39, zimoun a écrit : > Hi, > > On Mon, 27 Jun 2022 at 16:51, Emmanuel Medernach wrote: > >> 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 > Here you are installing in the profile ’profile-A’… > >> [Machine B]$ guix package --list-installed  | sort | awk '//{ print $1 >> "@" $2; }' > …and here, you are listing the packages in the default profile > ~/.guix-profile. Instead you should run, > > machine-B$ guix package -p profile-A -I Thanks, here is the result: $ guix package -p profile-A -I glibc   2.31    out /gnu/store/ksy2b6fwfmz40gjajvspl87ia4vsfzj7-glibc-2.31 gcc-toolchain   4.9.4   out /gnu/store/frmwyxb8zl8vwd7840gb7j526c4dzxh0-gcc-toolchain-4.9.4 make    4.3     out /gnu/store/4k33n2nhsnnaxk2ip75gj7xiqdjns5hq-make-4.3 cmake   3.19.2  out /gnu/store/4axd987cf0bpkshybl1w7g5hp9yqm660-cmake-3.19.2 zlib    1.2.11  out /gnu/store/rykm237xkmq7rl1p0nwass01p090p88x-zlib-1.2.11 icu4c   68.2    out /gnu/store/hjggah4g7vb4db3c62lmmpqplv5g4drh-icu4c-68.2 pcre    8.44    out /gnu/store/k0aqiy7yx8n28dvm3f0a04ka5sd8y950-pcre-8.44 gsl     2.6     out /gnu/store/xq64iaxx2gmlcgnipj31wjxlf1yd2g2p-gsl-2.6 But glibc is 2.31 instead of 2.33 > > Last, as Julien pointed out, it might be possible that on ’Machine-A’ > the packages are from various states. You can give a look at: > > machine-A$ guix package --list-generations > > and so, it is possible that the packages you installed do not match the > current state of Guix. For instance, you could compare: > > machine-A$ guix package --export-channels > machine-A$ guix pull -f channels > > Well, if you did: > > guix pull > guix install gsl > guix pull > guix install pcre > guix pull > guix zlib > etc. > > the profile is not composed by only one state therefore it cannot be > replicated. Only a rough approximation can be made. > > Or if you did: > > guix install gsl pcre icu4c etc. > guix pull > > then “guix describe” does not provide the Guix state of the installed > packages. Thank you, yes packages installed are always evolving. I will now promote to use manifests. Best regards, Emmanuel > > Cheers, > simon