From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eK97L70AY2DtVAEAgWs5BA (envelope-from ) for ; Tue, 30 Mar 2021 12:43:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MKV5Kb0AY2BFNAAAB5/wlQ (envelope-from ) for ; Tue, 30 Mar 2021 10:43:09 +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 1F0FC196DC for ; Tue, 30 Mar 2021 12:43:09 +0200 (CEST) Received: from localhost ([::1]:40024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRBpz-0000Oz-SQ for larch@yhetil.org; Tue, 30 Mar 2021 06:43:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRBpn-0000N2-Rj for help-guix@gnu.org; Tue, 30 Mar 2021 06:42:56 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:35480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRBpd-0001wW-2i for help-guix@gnu.org; Tue, 30 Mar 2021 06:42:55 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 5e237abc; Tue, 30 Mar 2021 10:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=yba9t6HJYaoHK4vIlciOtW5F1cGtRsDGeNLHtlHcu2Y=; b=M82IAGBwSs0q Rk7iuEoO/utki0i6SP43fSTKuyz/OoHEWwuOlqnDhjuLnmoNFXkFRhA48nslgoEy Dblzus3PQKTiMdLWXV9BG2WUHurJX3hGNvjFCUtTA2XDdylNE7F836g0WcVfGCoW n1zC0lZNYPQvO/YPdqybXnZEF43B4G8RV+rIiQcw4QdFuO1WkX/uUsfOTm114dZW 2+bH7c38jbEya8FHnw3zV0smW/+RGgUHNcfVRoiCUxAqQDK26bjOtWhM1e1rpXna WTIcLFa45mUFoQQphvCTtPU0ytQqVCSqiitAWKoxNNGRq69C4svBxJcHY65aq8qQ Bty79M+XxQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 261f441d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 30 Mar 2021 10:42:39 +0000 (UTC) Date: Tue, 30 Mar 2021 06:42:29 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Subject: Re: symbolic links for --profile argument To: help-guix@gnu.org,Fulbert From: Julien Lepiller Message-ID: Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu 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, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617100989; 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:dkim-signature; bh=CVf3XxapjtIo/ekLwQtPj98P4+U2GtF2+oonnpwO9Q0=; b=ESZPfzfgoSznvJo7FEoM8S/+xAKsl2Y49/7iPzQAQAh9f4cBkcweKJCSAprnQgdrPHF8sz SVwjR5/0GHQa6mT54SSdSp38ZRHKKhSEiwauMiW/qyK1vkyYoPpI7TCdObMKiW+eSETyt0 7PNF9uLRFr6gJEQ1aSEHXheNVYRnyFS79a6HRAfEuQLZYeCt8dQhlpEc+OtoaP4xYoIj+f s68XtS4evcbcny9jr8UsUi+p3IKVrSFjJr5bCi5MmkS8Yg7vA781o7m81jDlZBquhTzLnk O2H0+zXFI33HKvz/Azhc47/a/AgwnqLTgRxHfbvjbj2rfGYtLB0Gogb4yaR3hw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617100989; a=rsa-sha256; cv=none; b=q5qo1BkE1Zm4bM5Bb1+mrbsNJ7LMwnA36ll2d027sWxDeVGN+wEmvFkdjo0L3z9yphtf6I IEBqacNjCO0+cs9cIeuS3AUnfIyCgiqRvz66vO6pryrZrORUTUOynJZrBTHLQMpAH/U40w Urt6jDjVQDvXycTvfQ+F3Axu1/0LbCHBgaZZzv9Yju8gkjIamlL5/xh41K9NdTl5+00srQ ykliN7JfKzFsLjtqJdWAA8pTJnbEZj0N5bhcJrpRxzVbOE+EImPA7W41juZkKpEqjqBfDj OL8Yy/i5GUSbMbmV1np6n7/5dM4/pvrzELRBDrmmilV9QpV/lvCopkIHNNqriw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=M82IAGBw; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=lepiller.eu header.s=dkim header.b=M82IAGBw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 1F0FC196DC X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ee+o6IluVHSk Hi, The first and third commands are equivalent=2E I believe the second comman= d will replace =2Eguix-profile with a symlink to =2Eguix-profile-1 which wi= ll link to the store=2E The last command should fail, because you can't cre= ate a store item that way=2E I think guix environment --profile will create a profile and symlink direc= tly to the store, without creating generations=2E Guix package and its alia= ses (update, remove, install) as well as guix pull create a generation, so = their --profile option has the same behavior=2E HTH! Le 30 mars 2021 03:49:04 GMT-04:00, Fulbert a =C3= =A9crit : >Hello and thanks for visiting my question ! > >It is a stupid one, but just to be sure : > >Given > >~~~{=2Ebash} >$ readlink ~/=2Eguix-profile >/var/guix/profiles/per-user/fulbert/guix-profile > >$ readlink -f ~/=2Eguix-profile >/gnu/store/2sj11f64c9cgw40gkjy024vjl688zp7k-profile >~~~{end} > >Will the following commands produce exactly the same result ? > >~~~{=2Ebash} >$ guix package -m ~/default=2Escm >$ guix package -m ~/default=2Escm -p ~/=2Eguix-profile >$ guix package -m ~/default=2Escm -p >/var/guix/profiles/per-user/fulbert/guix-profile >$ guix package -m ~/default=2Escm -p >/gnu/store/2sj11f64c9cgw40gkjy024vjl688zp7k-profile >~~~{end} > >=E2=80=A6 and more generally, any guix command taking a `--profile` argum= ent=E2=80=AF?