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 cDLSOvUgK1+EYQAA0tVLHw (envelope-from ) for ; Wed, 05 Aug 2020 21:13:25 +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 kDrMNvUgK19ieAAA1q6Kng (envelope-from ) for ; Wed, 05 Aug 2020 21:13:25 +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 48A0A940630 for ; Wed, 5 Aug 2020 21:13:25 +0000 (UTC) Received: from localhost ([::1]:44666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3Qiw-00075O-JB for larch@yhetil.org; Wed, 05 Aug 2020 17:13:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3Qiq-00075H-6E for help-guix@gnu.org; Wed, 05 Aug 2020 17:13:16 -0400 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]:43460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3Qio-0000t8-Jc for help-guix@gnu.org; Wed, 05 Aug 2020 17:13:15 -0400 Received: by mail-il1-x12a.google.com with SMTP id y18so30204194ilp.10 for ; Wed, 05 Aug 2020 14:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=mrGa8lEXXmh5bj9umDaD2upVE0xu1TKmWtdXiLgXd+Y=; b=WCO/WyHVXKkQHi7rQ++GPPeaB/DyWXP2fAxBkOzG3gHyVKyZHdPjqPQ/JacHT4vRln 2OsNXRtVMdwia+fkmTI40qgsnuzWgcXd1F4yd5fWCh0WXlL8Gq6vyMfxEhXI9FATzKZ9 8u0DFWiyfkWLG/9fK3diMSH0rzan3VmznCQ/IK75TPhFVC5RzaNx73bL4IRIBmHAxwo1 evyZojTWnL+dZMDRumbufn/c8CKgapcCVgJRr9yCQs7JBGSl7G9fuDmJG6nx+Xzu/KBr YzGOaqICesN2qnFTr2+E8AAjug6m7K0ib02rNdpWF5KF3K5Wncgwcc9hhutYN7DhV9xS HT4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mrGa8lEXXmh5bj9umDaD2upVE0xu1TKmWtdXiLgXd+Y=; b=g+A96zIkxA/HNiee/1KFIgt7yQAzqNP5aBwz1+RT6xUvXqWDFHzVKqAxlXue8VJjOY Zv0PSgRrI+dIRJKr/AV0i9X89GVzp8sKEUeuRdmiGVnLg/p9aRH2lTe30nOX6C+gPAXd FT3fbhIFiCRx1lzMNpnjB4+GPb++LicXKoyl08XjhWvxslIy8cN1VUkSRdJXU+fBLu/1 m/u6DNoBqLnmBOJ9pYQ3QRg+bH3EkR+T50vxiIjMv/H5h7AH8Go7xoUmz3iIT1eHwCdT YWxriJILZF5I+0Zkj5HgNWgf4KcnFxiBwKLCUrz1UG9tko0IdYQigEaCG8vUdAM6q8bv BmUA== X-Gm-Message-State: AOAM532taWhv20Y4seRKV9OVzwwl+0VIheMwzUdWdXSvcBcrRNHNRkup MKo9vtVA07Q8E93DyBs5tRBjokF2/Tgw5wLFUfkqMoAY X-Google-Smtp-Source: ABdhPJyHOBxAKzJj7dYqBc5q9CmiF/cj84uRIaGydhyzL0cB2DVluRkt8YcK741ZlUOHl/dkuvmav2mLGTVWZtY5IN4= X-Received: by 2002:a92:bb92:: with SMTP id x18mr5763679ilk.64.1596661992720; Wed, 05 Aug 2020 14:13:12 -0700 (PDT) MIME-Version: 1.0 References: <3652e456.dag@gnui.org> In-Reply-To: <3652e456.dag@gnui.org> From: hot12shots Date: Wed, 5 Aug 2020 21:13:01 +0000 Message-ID: Subject: Re: Using --search-paths with multiple profiles To: Dmitry Alexandrov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::12a; envelope-from=hot12shots@gmail.com; helo=mail-il1-x12a.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=ham autolearn_force=no X-Spam_action: no action 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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=WCO/WyHV; dmarc=pass (policy=none) header.from=gmail.com; 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-Spam-Score: -1.71 X-TUID: 45VVm43f2/+L On Tue, Aug 4, 2020 at 5:01 PM Dmitry Alexandrov wrote: > Alas, it won=CA=BCt help much on top of foreign distribution, where they = often are not. True, good point! On Guix native systems I've discovered another problem as well: the PATH assignment output by `--search-paths=3Dprefix` can mask /run/setuid-programs by prepending other path items in front of them, so PATH has to be fixed manually after applying this change to ensure sudo etc. don't break. > > The only caveat I'm aware of is that the multiple `guix` invocations ar= en't instantaneous, so one might not want to use this if sourcing their .pr= ofile from .bashrc or equivalent, as it would add some init time to every s= hell invocation. > > But one should never source profiles from ~/.bashrc in any case! They ar= e supposed to sourced by login shell only. In other words, there is ~/.pro= file (or ~/.bash_profile) for that. It's definitely a nonstandard usage, but I think some people do it. More simply, though, one might want to have .bashrc just activate the extra Guix profiles, without sourcing .profile. This would be a workaround to avoid having to restart the login session in order to get access to newly activated profiles in a shell environment.