From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cGkgKROT1mAoiwAAgWs5BA (envelope-from ) for ; Sat, 26 Jun 2021 04:38:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gFTFJBOT1mBoQQAAbx9fmQ (envelope-from ) for ; Sat, 26 Jun 2021 02:38:11 +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 F3F1513346 for ; Sat, 26 Jun 2021 04:38:10 +0200 (CEST) Received: from localhost ([::1]:44858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwyCu-0002ma-HX for larch@yhetil.org; Fri, 25 Jun 2021 22:38:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwyCo-0002mN-Eb for bug-guix@gnu.org; Fri, 25 Jun 2021 22:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwyCo-0006J6-7i for bug-guix@gnu.org; Fri, 25 Jun 2021 22:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwyCo-0005xj-28 for bug-guix@gnu.org; Fri, 25 Jun 2021 22:38: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: Sat, 26 Jun 2021 02:38: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.162467503122814 (code B ref 20255); Sat, 26 Jun 2021 02:38:02 +0000 Received: (at 20255) by debbugs.gnu.org; 26 Jun 2021 02:37:11 +0000 Received: from localhost ([127.0.0.1]:46989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwyBz-0005vt-10 for submit@debbugs.gnu.org; Fri, 25 Jun 2021 22:37:11 -0400 Received: from mail-qt1-f181.google.com ([209.85.160.181]:36653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwyBx-0005vb-9M for 20255@debbugs.gnu.org; Fri, 25 Jun 2021 22:37:09 -0400 Received: by mail-qt1-f181.google.com with SMTP id r20so9055833qtp.3 for <20255@debbugs.gnu.org>; Fri, 25 Jun 2021 19:37:09 -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=kS2QpeLsQgmYGHaoCmiZ5bmu/9XDZe1nabV6COYMHdA=; b=O5J/CBcWojQJUzZG5F+HF4ObEVeg40Q8UxWDN0n7jh4QADNEM+67VcjvtegG5Eg1Fj 1f+bGRjxP/iVTfoBY7rt22K6hHuPv8+hBwS8cdGNbYwetDYNBv7ZHFxuRwrxn7b1h89z IB3tSU//NcVAKAXxEWdKex3zQCkHCvZqJghOb9vQL6d1oKoAbxftH1qoDQS9u7rvluX4 8A4IlzTwdnrAQYqNVPGxM3/XHNolLzvUzHKmWRDKVpjxf/oW0As/p5s/wAOO2p8klkzU xKnA6+37OLeQAimHJBMzWH+BjyYpSDG7Qxne1OI8Bw5UXNneyA6SVEOTp96oAOmUnEwW r6HA== 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=kS2QpeLsQgmYGHaoCmiZ5bmu/9XDZe1nabV6COYMHdA=; b=fGZ9zM+VLVSwqcQ8JcnM/EIPtBWALlqai4gakLBNTrOCqhfxNPWxVnxz3RbaEcE9cC YzGbyL4HeXcqK9iFMlnJgHM/zzUchAyR7Es8Flb5Yu7E5rKjrTpqHctTJzCElAn7XCf/ olNWhuUsrLTeyo+uccV4Aqqv2mviITxzUFJNylzASaNIc0cLLbXE+yvWXhOpBKDsaV7q kvW9GlQaByGxpcyr3CrWL99AuUrspzbgKcMSSVzqUiHGUGJRYDPgM2PfieObkE7fDPc7 oCR8au7gZTSHp3bKSH/KED7clVIh8RkcsLLqCk5LHHe7xJwA0ucgyCT2Cd//5oJvGoW5 2DGw== X-Gm-Message-State: AOAM532CmHvgBopgK5uqaR4iaYjOaQa4EdLgxhMLF8FMDyQ4Hmx7UAgq 1fVq2kf6oGCb+kdBUki72E0= X-Google-Smtp-Source: ABdhPJzyXyXX3ZW68bWLWcgW2NcQVrCNiMRnfHBGs2uRylTY1DYoxnkQt8cn0BZ0EnGzj5wOo9XGxA== X-Received: by 2002:ac8:5901:: with SMTP id 1mr11851967qty.45.1624675023650; Fri, 25 Jun 2021 19:37:03 -0700 (PDT) Received: from hurd (dsl-10-149-111.b2b2c.ca. [72.10.149.111]) by smtp.gmail.com with ESMTPSA id y18sm4792638qtx.6.2021.06.25.19.37.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Jun 2021 19:37:03 -0700 (PDT) From: Maxim Cournoyer References: <87eeun97ur.fsf@gmail.com> Date: Fri, 25 Jun 2021 22:37:02 -0400 In-Reply-To: <87eeun97ur.fsf@gmail.com> (Alex Kost's message of "Fri, 21 Feb 2020 20:18:52 +0300") Message-ID: <874kdlxsfl.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: 20255@debbugs.gnu.org, iyzsong@gmail.com 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=1624675091; 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=kS2QpeLsQgmYGHaoCmiZ5bmu/9XDZe1nabV6COYMHdA=; b=DvyFT68VwcTBmi0ad3N25z1wsa4Vo7lJ2SSsAb3pGj3A2pbv7DunWOKGAlOgtsgth1VRFH +iWIZogzhLA7e6JWqZL1tr/gbEGU/eCuLIAHnw990E+XEuYTkfaNNGLQrYnQl5f4JrE3Vq 6OUxpKg6qb5XWtd7UfQvZwnSU3CXQDOWD/aFZ7HKcN0dJuRNYcU5pahZ9g+d4EXmQN+d4r tikfYp51BrrdPMQxGiwze0MogQRh/88ES+r0VSNN3uvyEspbBjoKqXUln2gRq1NJi4z03m CARqZCzjtlNR4QmDgXr4OUgZ0RSGlColNi7M+xJy0WttLgMVBlY15nk5oL6t1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624675091; a=rsa-sha256; cv=none; b=e47WVPoErGTz+bm1YEZr3pg0BAs061SSeQUkuIRv7b46TYdh0lUstiDtoKwWMADQvSFivF TkvV7+ksE0VRMXC6kIbQdk4bekbrS5juOeAdewaT3ygEKl5moMEViO+EylvJjonrcgw7pg iPp/Y7UKwjwVvZcTePrGk/cgWBjqeShLq6nua1DjlU4epcwG/Mdvg3YgHdWeuV/V3jLDXn ouuLcfLZShUBzdKvxPqPCRKAnfr4v12ij9m6IiJpRMvyJCaJRTDEmCBDgHkZEw+/oCfqiX vpOlCuOP2cyVyQ1V04njVBeq2BBHqdnZe+aKEqMa9ZUjCVdx5Nsq6dZeGIn2lg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="O5J/CBcW"; 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.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="O5J/CBcW"; 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: F3F1513346 X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: tH7+Tjkyft9s Hello, Alex Kost writes: > zimoun (2020-02-21 16:53 +0100) wrote: > >> Dear, >> >> What is the status of the bug#20255 [1]? >> It is old; the last activity seems back on 2015, November. So let resume. >> >> The issue is, e.g.: >> - perl installed into the system profile >> - perl-xml-parser installed into an user profile >> Then "guix package --search-paths" does not set correctly XML::Parser. >> >> >> Fixes had been pushed: dedb17a and b2a7223 and cc3de1d. >> >> The final fix is still missing. Because it is a controversial patch >> [2] :-) i.e., running 'guix' in '/etc/profile'; see these lines of the >> patch: >> >> + eval `/run/current-system/profile/bin/guix package \\ >> + -p /run/current-system/profile \\ >> + -p \"$HOME/.guix-profile\" --search-paths` >> >> >> The friendly "protest" [3] is about turning these lines optional via >> an environment variable. I am not sure to follow where the discussion >> had been going then. > > As for me, I am OK with any default setting as long as there is a way to > change it. I recall Ludovic proposed a patch that allowed to customize > "/etc/profile" and I was happy about it, but he changed his mind on that > patch so it was never committed. 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 :-). Thank you, Maxim