From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 eCJOMDIo62NQTgEAbAwnHQ (envelope-from ) for ; Tue, 14 Feb 2023 07:20:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aO5kMDIo62MZIgAAauVa8A (envelope-from ) for ; Tue, 14 Feb 2023 07:20:34 +0100 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 9CE422BF4B for ; Tue, 14 Feb 2023 07:20:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRofV-0001lg-5r; Tue, 14 Feb 2023 01:20:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRofD-0001lG-TV for help-guix@gnu.org; Tue, 14 Feb 2023 01:19:40 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRofB-0001vy-KK for help-guix@gnu.org; Tue, 14 Feb 2023 01:19:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 929D7240039 for ; Tue, 14 Feb 2023 07:19:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676355574; bh=oRwYXRQXjrL4fpRY6Unw0ADjj1WzBkJJebHpYQc9ZJc=; h=From:To:Cc:Subject:Date:From; b=hLegLLT0Y3DITrBQyVbm97tBK2M6rAsfqUTKQPqWa2GAgc0Wxj7bBBDs3UMO4CzI4 2HMwR5JTzjSFvKzyT7aPFwJF3P5SPGGUD1YGYtiMv7Lvj0lCpuEFfKv7umPn6Rhpx3 6cRefKFan2x348iKbL8B7UhyCG9V3WAG0YKZzqdzeLh9nyXvCr+g1a0vlqgo3C1bMv kB0KB0uyZ/savxzNYEZHvyR50T4i5GveCjncdIPNbZuX8QY8LuQkUdr7T6uAYVkWf8 3u5DMqGKlALfnN7T1WfxlXUuenqHQabGlOhur2fQ51Oltxz8dlvR4pYVMI6TLZcgft 3YXhFuOKBm+pg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PG9z86mjbz6tmG; Tue, 14 Feb 2023 07:19:32 +0100 (CET) References: <00645283-6540-ea05-aba2-8997d32b16c1@posteo.de> <87fscnis4q.fsf@gmail.com> <877cwx6kdh.fsf@posteo.net> <87357ik8ur.fsf@gmail.com> <87cz6cal58.fsf@posteo.net> <871qmsls7y.fsf@envs.net> From: Kyle Andrews To: =?utf-8?B?5a6L5paH5q2m?= Cc: Simon Tournier , help-guix@gnu.org Subject: Re: attempt to create a profile Date: Tue, 14 Feb 2023 06:00:04 +0000 In-reply-to: <871qmsls7y.fsf@envs.net> Message-ID: <87cz6csr9p.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=kyle@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676355634; a=rsa-sha256; cv=none; b=NNq0UXylFgI8huAU0gRqS2m5rl2pPpmmuz8QnUhVxz/Ovzp8V0fWHV8VRkjjH9ekHbiJ+h pvlN0jH0V+jkNXZ3AvsGN0rviYpFEomanL9wNqOy8DHavoVSEYpql+V58hwDDsmOmFz8gc VgEdtxPLC5uEt1GrFwkH4/anIXen67TDdzDXGiSq2lHpQcxUJsjuixWRk2xIkFOCc8eHD4 RVg4AnBuDLs54Kf1bXfBGm2Yqbg6wD0rq+Y018KmV8yI/kPqcPkTIW27C4UwmWYlLxy5tf C7Wfzdgvv9WydvDdI0HlT/t4TI4BTuTtPg0rqzW8agmeC7YJBXuYItitDdyAWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hLegLLT0; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676355634; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=oRwYXRQXjrL4fpRY6Unw0ADjj1WzBkJJebHpYQc9ZJc=; b=q/WeDalDuAn22N2NcYIcC2qWBTTFGn8XhFxw1ElqrV3nU8IJQ1BGMGFl3SrEKJYIvUBs6z FzOV8deAjXp83wopx+GiGJcSQ2uchPZGPf2nRbFhaU4ZkkMQow58SQYns5UaS4NpdA8UuF LMpUKGHNuQbgOuhqW+MbDd1Rlwkv7CKHaaNZVnYlSVtm2u0Va7PMXMgJ16HTyX9bXT8F3W /lYQz1GcVoh8cYg+i1Bj+soDB26SH4keMgwtDRKuXkxN0EsW+Pr/l3jQdtUfcl+Z0s/AQD nF5NbZGzjnCH2vADs3RmF8ZMe3wVIK6PBwdirO5nfj6sMhnUld0MmnDb6uVbmg== X-Migadu-Scanner: scn1.migadu.com X-Spam-Score: -6.59 X-Migadu-Spam-Score: -6.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=hLegLLT0; dmarc=pass (policy=none) header.from=posteo.net; 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: 9CE422BF4B X-TUID: VlIzDx3A73CO This makes a lot more sense to me than sequentially sourcing $SOME/etc/profile files as currently mentioned in the cookbook. Thanks for sharing! The fact that guix package supports multiple -p arguments got me excited enough to try out a similar command with guix shell. ``` guix shell -p $HOME/my/profile/emacs -p $HOME/my/profile/rstats --container guix shell -p $HOME/my/profile/rstats -p $HOME/my/profile/emacs --container ``` Both commands ran for me. However, the first environment didn't provide Emacs. The second did provide even though it didn't run because there was no X11 available and so it errored out. It seems that multiple -p arguments to guix shell doesn't really work like I would hope. Ideally it would produce the same sort of system environment as is produced by eval'ing `guix package --search-paths` with m= ultiple profiles. =E5=AE=8B=E6=96=87=E6=AD=A6 writes: > Kyle Andrews writes: > >> In my case I am hopeful there must be some way to extend the man and info >> paths when multiple profiles are activated, and maybe that would resolve >> my particular issue. I would love a suggestion to be placed in the >> cookbook about this. > > Hello, you can merge search-paths from multiple profiles with: > > --8<---------------cut here---------------start------------->8--- > # Honor system-wide environment variables > source /etc/profile > > # Merge search-paths from multiple profiles, the order matters. > eval "$(guix package --search-paths \ > -p $HOME/.config/guix/profiles/a \ > -p $HOME/.config/guix/profiles/b \ > -p $HOME/.config/guix/current \ > -p $HOME/.guix-profile \ > -p /run/current-system/profile)" > > # Prepend setuid programs. > export PATH=3D/run/setuid-programs:$PATH > --8<---------------cut here---------------end--------------->8--- > > As discussed in #20255 and #61358.