From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MI0BFKxY22B0FgAAgWs5BA (envelope-from ) for ; Tue, 29 Jun 2021 19:30:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yEOyD6xY22BcHgAAbx9fmQ (envelope-from ) for ; Tue, 29 Jun 2021 17:30:20 +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 70EE124179 for ; Tue, 29 Jun 2021 19:30:19 +0200 (CEST) Received: from localhost ([::1]:53804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyHYu-0007QH-Kt for larch@yhetil.org; Tue, 29 Jun 2021 13:30:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyHYh-0007Oo-Op for bug-guix@gnu.org; Tue, 29 Jun 2021 13:30:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43695) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyHYh-0003aC-1O for bug-guix@gnu.org; Tue, 29 Jun 2021 13:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyHYg-00033n-UN for bug-guix@gnu.org; Tue, 29 Jun 2021 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#20255: 'search-paths' should respect both user and system profile. Resent-From: Alex Kost Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 29 Jun 2021 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20255 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Maxim Cournoyer Received: via spool by 20255-submit@debbugs.gnu.org id=B20255.162498774211663 (code B ref 20255); Tue, 29 Jun 2021 17:30:02 +0000 Received: (at 20255) by debbugs.gnu.org; 29 Jun 2021 17:29:02 +0000 Received: from localhost ([127.0.0.1]:55241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyHXi-00031u-8J for submit@debbugs.gnu.org; Tue, 29 Jun 2021 13:29:02 -0400 Received: from mail-lj1-f182.google.com ([209.85.208.182]:38497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyHXg-00031Z-At for 20255@debbugs.gnu.org; Tue, 29 Jun 2021 13:29:01 -0400 Received: by mail-lj1-f182.google.com with SMTP id x20so25330346ljc.5 for <20255@debbugs.gnu.org>; Tue, 29 Jun 2021 10:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=5GC+0M+Ew3B7iu5Re6kh+StjbrlECHUVyd8mnr9smkk=; b=YuP4bFL4ybEb3SSr8lAz8wMYuRp3biBSRDoeuM3ylM5a4OlMmwy/lS554YCGckCRwL 052N0G5X0teb+TzW1mxXcQVCffxvxfSy/iFGqoJV/+bOVbCGjL86mkTtEuayYjp3BUH6 Hm2iTlw7hFIYfipr29ke2jSI1MGL+6xafgYaHP7NrnXTXOuT4xQXeO9JPQAxz6RpxLiV KR8zP09iZqLdwiahDTJrxu8ih+deYB8JQVyCXHjgd5xJJn222nCBjKm/p3EG2s7k4SUY j5k7SWBWqW6mGs5ESxgjqqNwS4z05Iw5Q49I9Eb5c67uKOGl5AUHzKtXfKcirJF4sQQG 9Eew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=5GC+0M+Ew3B7iu5Re6kh+StjbrlECHUVyd8mnr9smkk=; b=ByGOrfeE+yNralxLHpEmuLktx6ctlVLDvh3tSeIafc214S2BKjCXJDvIvMS79qG4nY UMj4FykDmSua4bDrCuX4SjoltOiwd0AlJGzCwGotN6POcNJm4JrmYJqBnAM4G+b50/hx C69NR5XNehfJxToayoL8ymv4/UXyC4o8aMpH13FCbmnFU9ky+soZNHDVZQhSYGYgDCWZ vVCBUn9QaKgqOL6WK+qeGCSJQLrkE3ChThWiP9MXbwnmzHTLENJKs3J2qXCPtBkpATfa PMQXbVMUPlrM1xF23kr99l2dQJeJTXeq/iwbz6WKCb6SCTiMoIUltuDyizJfpWZgMlpB VShg== X-Gm-Message-State: AOAM53165pRsnObxbbW7THM9e2cBaqNlRWSyklo3/fUmDj4zfvtOBUfZ T7SdqJHQIPq+Hq2nBRLIKfE= X-Google-Smtp-Source: ABdhPJz/uskR8HNH+ZWAMWmJhP/RtYpnbfJBxiQHrCJlX9IbQoebk7B/XUpc0dJceVsXqJW1m1LXWw== X-Received: by 2002:a2e:969a:: with SMTP id q26mr4750630lji.89.1624987734122; Tue, 29 Jun 2021 10:28:54 -0700 (PDT) Received: from leviafan ([217.107.194.17]) by smtp.gmail.com with ESMTPSA id h3sm1681423lfg.204.2021.06.29.10.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 10:28:51 -0700 (PDT) From: Alex Kost References: <87eeun97ur.fsf@gmail.com> <874kdlxsfl.fsf_-_@gmail.com> <8735t3d3wf.fsf@gmail.com> <87im1ywq64.fsf@gmail.com> Date: Tue, 29 Jun 2021 20:29:08 +0300 In-Reply-To: <87im1ywq64.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 28 Jun 2021 00:48:03 -0400") Message-ID: <8735t0inq3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: iyzsong@gmail.com, 20255@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624987819; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=5GC+0M+Ew3B7iu5Re6kh+StjbrlECHUVyd8mnr9smkk=; b=EskPeTRHZgWJq3imSRPeTeiNfHpmn+mGUC9BTQOP2JzTpIZqNsmAF85aOuTCQR/UFat9hz OoTQS+GTLU+H1uld5sdYi6H61w8/YrHaHpgaFGwcchAyRFPVr2cygCY0Kwg6weyKGbMNWU 64eZXnxesBrI/s3HKwplbD/pJStMc/jQftGGVrmh/QfnzMjbDhoPIvi0aGFhA7NQxbsg9O qG816us191qT1vckAQWQE4Nli/uL+2/jJ4+yXWVHxa1JwGoMY1PIgfxzI1xiqPjWk7A1wb 7AWWFfJwD96p0Ous8YaZgNA5790fW7qK/T39WYuZUhznvg/u2w3jFLCsjZhsRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624987819; a=rsa-sha256; cv=none; b=J87mjcBp9z0AtGJlCO26nUipRzE64dq9ofHEfSLNV1kBiMucsCniW260euAtTKOoPWTI7P U0w/xXK3FtehOV0yXyYF/PXKWYHKEa7P1eiuhXp80fisdcDl2cQOeJGdpFm7oz2JMwsIox qm+17CWWsBaEw9agAGSdJ74isBEuiQslqiOlbW0qs9C4wwlCUSJvB80iTjE2Oqu/lO/UOR fjgyVpdKmP8ZX5V5EGw/Ikh4yJJgN3wY828a8skv2QipAh9mUh4Q0CZgihAzW6MxBO8Tfw gAXU9bzSFinp857WqX8tEwnzi+o6Z5bB1K5AZDkfC9FgjTAZIqhpstykDU/w4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=YuP4bFL4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=YuP4bFL4; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 70EE124179 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: Lw3vLPBGPtay Maxim Cournoyer (2021-06-28 00:48 -0400) wrote: > Alex Kost writes: [...] >> I can modify /etc/profile with any "normal" linux distribution but I >> cannot do it with the Guix System. And I find it awful that you think >> it should stay like that. I am for providing as much freedom for a user >> (to configure their system) as possible. >> The current /etc/profile is bearable for me, but if you add a "guix ..." >> call there without providing a way to modify that file, I will probably >> stop using the Guix System. >> >> Or maybe there is a hacky way to change /etc/profile ? If so, please >> share a code how this can be done. (Then I will not complain anymore) > > Thanks for the reply! I just wanted to make sure the extra energy to be > spent on the search & implementation of a better solution would not be > in vain; now I that know that it won't! > > I like the idea proposed by Leo Prikler; the one about giving the > possibility to users to override the list of default profiles considered > under a file such as ~/.config/guix/default-profiles. > > The default would be to load both combine the environment variables of > the system and user profiles using 'guix package --search-paths', but a > user could opt-out of that by providing an empty file, or customize the > list of profiles the way they'd like. > > Would that be an acceptable solution from your point of view? Sure! Any solution that I can configure for my needs is good for me, thank you! -- Alex