From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UBmlBchU2WDnyQAAgWs5BA (envelope-from ) for ; Mon, 28 Jun 2021 06:49:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EEI0AchU2WAcOAAAbx9fmQ (envelope-from ) for ; Mon, 28 Jun 2021 04:49:12 +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 3912023076 for ; Mon, 28 Jun 2021 06:49:11 +0200 (CEST) Received: from localhost ([::1]:56494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxjCn-0005HQ-7H for larch@yhetil.org; Mon, 28 Jun 2021 00:49:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxjCg-0005HG-I0 for bug-guix@gnu.org; Mon, 28 Jun 2021 00:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39079) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxjCg-0000OY-AR for bug-guix@gnu.org; Mon, 28 Jun 2021 00:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lxjCg-0006NT-9T for bug-guix@gnu.org; Mon, 28 Jun 2021 00:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#20255: 'search-paths' should respect both user and system profile. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 28 Jun 2021 04:49: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: Alex Kost Received: via spool by 20255-submit@debbugs.gnu.org id=B20255.162485569324456 (code B ref 20255); Mon, 28 Jun 2021 04:49:02 +0000 Received: (at 20255) by debbugs.gnu.org; 28 Jun 2021 04:48:13 +0000 Received: from localhost ([127.0.0.1]:50625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxjBs-0006MN-WA for submit@debbugs.gnu.org; Mon, 28 Jun 2021 00:48:13 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]:40719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxjBq-0006MA-Ah for 20255@debbugs.gnu.org; Mon, 28 Jun 2021 00:48:12 -0400 Received: by mail-qk1-f174.google.com with SMTP id b2so177895qka.7 for <20255@debbugs.gnu.org>; Sun, 27 Jun 2021 21:48:10 -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=/pzpqWoFy4bmhB+iX8z+JZp4S8PzMBjaDMIS/9AvI3s=; b=INw5sri4DnRK3MLjX15IjzfojOY5TFjLTWT1E7yc1ty8o6I8ijnSAmELJPHFiTfbDA Kb2q6I2f74Yzx8wQ8A4TPsXTVU3ea/GeE7ZNem+KzomwQWodVz0tPaIYu294psKk1bND IpOeM7qGSVDRipx5Sg1hYVnr8+7ioPUebw1PqSLgmlrUDOKM31Lg8Da6yXLJUkFyDN27 yjgOeTMrRrSOWUy6VeBjcuPlJ9fS8oYkNjGwxlhnaNKGumozUBa6movp61s5xeHat5Nn mSBzthk4JY4lnz+63oTWPgLNWp1XBAf/xFaomheI9kWYH+GLzkcOsiDlnTkTuNm1pG8p Ig+w== 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=/pzpqWoFy4bmhB+iX8z+JZp4S8PzMBjaDMIS/9AvI3s=; b=DEzbNlM+o2qkXCcLwjGZAPaQVx6m4qUHHfS26xhFlWuCQG6oG+r4Qbdb+5MvEPYhDH jHPAh/n1IWvZi/h9Fx83ZuTCPcNd8LFFIs5Z8KwWg5XuIdhxtZGQop/Ob/Q2ozUXcEmk 2hPDRzzMueJqFKw5eNSwjFr0espay65h4Bi5ZfwuIpRpYkkXDBWrDX436LDg/HXTPOhn 567pC/82ZxjmtddJV+Yiqe6HxO1RnIgZyb/OAJKbBlsZax/ZRowdbOJUtVWMgUKuPPCu gtMlhsDdssW5ivhytAAFeEQgboHHyxMUszkaOvw6Kg5T2xrrc6jaqIaoSPjBk5vWuVm7 x5qQ== X-Gm-Message-State: AOAM530BefSVGC4Ucccpl8k7a010H0uDRSH+4kYZvY+haEh+MosQuXiL Dx6q8IktoTDeC5i6PFFWzJg= X-Google-Smtp-Source: ABdhPJygNQl4uzcigHYlt8c2sPxGOl/F/a+UneeZX4CNsetnj8uHIuPo2v2gu0XNsIZuPwHgt6kfHA== X-Received: by 2002:ae9:e310:: with SMTP id v16mr11886872qkf.169.1624855684835; Sun, 27 Jun 2021 21:48:04 -0700 (PDT) Received: from hurd ([207.35.94.165]) by smtp.gmail.com with ESMTPSA id d20sm7689187qtw.92.2021.06.27.21.48.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jun 2021 21:48:04 -0700 (PDT) From: Maxim Cournoyer References: <87eeun97ur.fsf@gmail.com> <874kdlxsfl.fsf_-_@gmail.com> <8735t3d3wf.fsf@gmail.com> Date: Mon, 28 Jun 2021 00:48:03 -0400 In-Reply-To: <8735t3d3wf.fsf@gmail.com> (Alex Kost's message of "Sun, 27 Jun 2021 12:59:28 +0300") Message-ID: <87im1ywq64.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (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=1624855751; 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=/pzpqWoFy4bmhB+iX8z+JZp4S8PzMBjaDMIS/9AvI3s=; b=mbGTILnsxNgUsH//4vE0Melx/uY4/JZGt4pHwEzctddn4D/fXhy6Po6xkWRiKm3gjScgCq UwGCt9vUmKNhTbu+Xy3dsKB/N15kPLxyINRfa5CrLbD/ecxHY1+Ag0UclJL2L5vZ6rRwZV 54/WxpX9pzljVHyR+ITF1LpibIaDqWlOz7jF/qpZ/5dnjt7DZhjOZk3KW4HRTWQwry5rTG DeW5u9sQi/YFxVIlVCKwU8eL16jxe0VrjmLZzEhm+Z90RjZ9qS2rWDeyPLDQKLsMF9YZ4f 4OYRbOSQGMQm1t8+u6hQROGyVTnapXOLZAkfhvdaNRIyAau6aoerqIgnWhpHMQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624855751; a=rsa-sha256; cv=none; b=TG3Vgq9ueRlQ6MDdXA2ic5XwBr1GO5hDa4wYUpUonSonKdhZz7RSq4r3wv/u/ltJD7KEEj vDf9w8ozlipVtuNUXdweCq0o+ykWPDL20wsFkz2jLYAsHFImtYR717BziOosOeZPAMQ0LT ImGVu3BhdBW473XU77Nuvum4ja8tkpFpEUX/rHpg+bKTrKEpjb8SUy1DSZ2l7ynj8v42C5 Tf97zOzTNPzhUdJr+l1Azrg7tAxgLXy+qOd1BkwiJ2OThYA4qOduRQTRRVpaVOqtImBH8m x0eu5O0OeaE14c9D9QsQ1GXXXv48+8cdEJ3GuQSY4b+sWlFMk3Evhvxq+SP9GA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=INw5sri4; 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=INw5sri4; 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: 3912023076 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: +cZ0ymiP2ex3 Hi Alex, Alex Kost writes: > Maxim Cournoyer (2021-06-25 22:37 -0400) wrote: > > [...] >> Do you still have a vetted interest in the issue at hand? This is a >> serious usability problem that's been in limbo for 6 years, apparently >> for reasons of purity (not wanting to run a command in /etc/profile). >> While I share the sentiment that /etc/profile would better be 'inert' or >> static, it seems we haven't been able to come up with a better solution >> than calling 'guix package --search-paths'. Like Ludovic, I also don't >> find the idea of allowing users to override /etc/profile very appealing; >> even if undocumented, its mere presence in the operating-system field >> would be an invitation for problems. An environment variable to disable >> such basic functionality also seems backward to me. >> >> I would personally be in favor of committing the fix as-is. If < 1 s of >> wasted time on boot is an issue, I suggest to look into GNU Shepherd to >> offset it; optimization opportunities should abound :-). > > 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? Thank you, Maxim