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 YE0pAV47t2NQegEAbAwnHQ (envelope-from ) for ; Thu, 05 Jan 2023 22:04:30 +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 wLUVAV47t2PVKAAAauVa8A (envelope-from ) for ; Thu, 05 Jan 2023 22:04:30 +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 D3EB03C289 for ; Thu, 5 Jan 2023 22:04:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDXPL-000739-S5; Thu, 05 Jan 2023 16:04:16 -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 1pDXP9-0006yr-An for guix-patches@gnu.org; Thu, 05 Jan 2023 16:04:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDXP7-0004d7-W1 for guix-patches@gnu.org; Thu, 05 Jan 2023 16:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDXP7-0004yX-Pa for guix-patches@gnu.org; Thu, 05 Jan 2023 16:04:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60112] [PATCH] website: Add post about guix shell fhs option. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Jan 2023 21:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60112 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 60112@debbugs.gnu.org, jman Received: via spool by 60112-submit@debbugs.gnu.org id=B60112.167295263219110 (code B ref 60112); Thu, 05 Jan 2023 21:04:01 +0000 Received: (at 60112) by debbugs.gnu.org; 5 Jan 2023 21:03:52 +0000 Received: from localhost ([127.0.0.1]:53080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDXOy-0004yA-GP for submit@debbugs.gnu.org; Thu, 05 Jan 2023 16:03:52 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:14775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDXOv-0004xs-Ub for 60112@debbugs.gnu.org; Thu, 05 Jan 2023 16:03:51 -0500 Date: Thu, 05 Jan 2023 21:03:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1672952623; x=1673211823; bh=dnnTBVSgbkqDT0fIPf7mlQkn1dO1yb/DVFOECp6+/og=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=TRkRWauDuSl31X9qP1fzgHqMrsKU8606lFxjiOceQnMQYCc5MAozB60eUnhi/rtTt tyj//S6jzUGlVxkPBgL6K9uPCgvTkGafaGzMVG/HvuebFIl+oeIYtofGcw5bEn+ttE vtndVSPQilaTwC7Py4ouhOcbb2seeuEkfqUHTiC5KS0edJDn5SFrEGEnYFBpbYNbCo FWyuUJRXJ3Prs/mZcTfWTehKh1bEh9ynZxjC8WPCvKl3o4E3gXLjjQFOxcLUU1AkKX Ohvpv6T8ip//7A//7hWvvjbr8SwyfJNmlfL2KpNVYHURfHyx94muqiXMOF4JNNAXZt rGB9kZpEUlrNA== Message-ID: <878rigk82r.fsf@protonmail.com> In-Reply-To: <87pmbs3de0.fsf_-_@gnu.org> References: <44635a7b-f8dc-4bea-935a-15e6a41ffa88@sporksmith.net> <87fscqjioe.fsf@protonmail.com> <87lemiyx4d.fsf@city17.xyz> <87pmbs3de0.fsf_-_@gnu.org> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches From: John Kehayias via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672952669; h=from:from:sender:sender:reply-to: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: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=dnnTBVSgbkqDT0fIPf7mlQkn1dO1yb/DVFOECp6+/og=; b=sM+KjVjDhb6M9h0tgVPx7raHh8qp5o+idl3PyKd9qNhbYom3cVUdaUkJq/3d/MnpkQIGzF G4BvXCi2yBopW4Dd7ESyT0fN/hcHZb+IRxiK6w/f3xBHTu3RRjLD9L8IRw8ySMxqh3yoPe KllrukANWLE57Xt3Q4IR9IesakScrpunHqoVWqNziDaFbkZyXkdb3A+bLjhsCcETBQYlbI FD85h9AEWKZ5R6a+BW8gaVK5u9eUsd+Ox7ViXAGcZtLA+KtC8FKQ2S6lFl2LzCTt/xF/F5 E9DJcp1Zw50+QrFiMfTIxF6FqELVyfpp1mJqoApFr3kr2YGoMDElrhgJ55lpBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=TRkRWauD; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672952669; a=rsa-sha256; cv=none; b=kL+J8B4daayu8w3yae6aMI5HBLg4xjwMJFwxIWIPbcoXhfdiOnl5m9ZOl3IHQEDz+4gMj1 SigGz+LX94MkCQaEmPpCzBYKCNxvP64EBaeOr3B9rAZ43rHvLID+u53KMlAuTfxzCswrmL xAg3kVwzRAmzHFoRepbL9eZvmhDn+iUEf0idCGtRb+FyaoNjLNpaoX2jOCv52UWa7PhHx5 od+HTFScc6uwu+hEHc8abawJBAT5oiMw/jy2ifW2Qw9cMhPz9fmcOCR12HCvMpzB5Y6neV IkllIw38CwRV3LHQOZqVGawhypJ2R5Uq4DAfCOEFm8KkzPicL3sXVFU4bnOMXw== X-Spam-Score: -2.06 X-Migadu-Queue-Id: D3EB03C289 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=TRkRWauD; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.06 X-TUID: /WLmLpgJZqID On Thu, Jan 05, 2023 at 10:00 PM, Ludovic Court=C3=A8s wrote: > Hi jman, > > jman skribis: > >> Hello and sorry for getting into this comment thread. >> >> I have posted a few days ago a question about preserving env vars >> when creating a container with FHS emulation: >> > > The =E2=80=98PATH=E2=80=99 environment variable, and only this one, is ov= erridden > unconditionally when using =E2=80=98--emulate-fhs=E2=80=99; quoth = =E2=80=98environment.scm=E2=80=99: > > (when emulate-fhs? > ;; When running in a container with EMULATE-FHS?, override $PATH > ;; (optional, but to better match FHS expectations), and generate > ;; /etc/ld.so.cache. > (setenv "PATH" "/bin:/usr/bin:/sbin:/usr/sbin") > (invoke "ldconfig" "-X")) > > Other variables are preserved, as in this example: > > $ FOO=3Dbar guix shell -CF -E ^FOO coreutils -- env | grep FOO > FOO=3Dbar > > HTH! > > Ludo=E2=80=99. Now filed by jman as after discussion o= n #guix. I think it is a bug (say you want to preserve PATH as you have som= e scripts in ~/.local/bin for example) and I have a patch to fix. I'll send= it to that bug and CC you (Ludo=E2=80=99) as well. John