Message ID | cover.1742043963.git.hako@ultrarare.space |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BA73E27BBEA; Sat, 15 Mar 2025 13:24:22 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C4F8F27BBE2 for <patchwork@mira.cbaines.net>; Sat, 15 Mar 2025 13:24:21 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1ttRUl-0007wO-C3; Sat, 15 Mar 2025 09:24:07 -0400 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 <Debian-debbugs@debbugs.gnu.org>) id 1ttRUk-0007wA-4x for guix-patches@gnu.org; Sat, 15 Mar 2025 09:24:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ttRUh-0005IE-DK; Sat, 15 Mar 2025 09:24:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=AXGbx2N8d2tREn1QlcjQrZUeL1qBvATg+M2kXtOLUO8=; b=T0xR0iM8vt2hnwBJku0GONEnDYaXdCi0CXVMwpXCtlfCEQHkMtOpBHq/rRiS8lFN+prI3tnt8ce4u9Y1ZJ7M2r1AoltBd94ujH66HkQtiIQDLEeZo+baD6yqjFHU3tFqSgUQznaV6UcG+EihHL62UdorIojCRaADeMBMoOfbxyjTuxh1CXvZyxfvwwSDKvtxTpc8u7keuZ5JboKr4OplLVxdNRi8mIZlFjjgoq2N1VUn5DrxCQLhU0q5V4RbrA/FwIpmXVe3yY+PyWSh2PqJ9UKdiRR9+6KzTHu7NKBNA5MWPfvy8rejnRxVGI5oFTYMU2fn8TDSTOuQ2wdpuBq75w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1ttRUg-0002AL-Gz; Sat, 15 Mar 2025 09:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77035] [PATCH 0/2] home: setup-environment: Avoid prepending duplicated PATH. Resent-From: Hilton Chain <hako@ultrarare.space> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: andrew@trop.in, janneke@gnu.org, ludo@gnu.org, tanguy@bioneland.org, guix-patches@gnu.org Resent-Date: Sat, 15 Mar 2025 13:24:02 +0000 Resent-Message-ID: <handler.77035.B.17420450338298@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77035 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77035@debbugs.gnu.org Cc: Hilton Chain <hako@ultrarare.space>, Andrew Tropin <andrew@trop.in>, Janneke Nieuwenhuizen <janneke@gnu.org>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Tanguy Le Carrour <tanguy@bioneland.org> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andrew Tropin <andrew@trop.in>, Janneke Nieuwenhuizen <janneke@gnu.org>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Tanguy Le Carrour <tanguy@bioneland.org> Received: via spool by submit@debbugs.gnu.org id=B.17420450338298 (code B ref -1); Sat, 15 Mar 2025 13:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Mar 2025 13:23:53 +0000 Received: from localhost ([127.0.0.1]:39852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1ttRUX-00029m-Bq for submit@debbugs.gnu.org; Sat, 15 Mar 2025 09:23:53 -0400 Received: from lists.gnu.org ([2001:470:142::17]:38736) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <hako@ultrarare.space>) id 1ttRUQ-00029S-Sa for submit@debbugs.gnu.org; Sat, 15 Mar 2025 09:23:50 -0400 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 <hako@ultrarare.space>) id 1ttRUJ-0007qq-R7 for guix-patches@gnu.org; Sat, 15 Mar 2025 09:23:40 -0400 Received: from mx.boiledscript.com ([2a01:4f8:10b:392::42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <hako@ultrarare.space>) id 1ttRUH-0005Gs-PB for guix-patches@gnu.org; Sat, 15 Mar 2025 09:23:39 -0400 From: Hilton Chain <hako@ultrarare.space> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1742045015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=AXGbx2N8d2tREn1QlcjQrZUeL1qBvATg+M2kXtOLUO8=; b=M/UXrwYFgunwZdnzhwLhbLlHo+hej9GAqHJAOtLlg0r6oE5lUQv+7gBi0fMJW3e5b0EbTq pUU+lygoDjWNVoNEOkW/I9SwHQ4dQriJnl1WF2uZ7pnSq1ak0goQ4YAMoGPeVHsp9C7MTG ixcyDv2Ycbi7lkyYvi8QGlk2d4RoscxBQ8dPOwGLX5trsfZXtk6A8WhObGsY8yMtTwfQ7l qyj/Ry4RDFzXhM1I8dVcDBWRoFVRklLJqD21cH0Dee60wgj3/hG6umsh5PyM7tK89Q7X6F D8D/3blZIkyghPg0bMjeLmJ2OpXuEFaUroyPBZcaKRf2fWl0w1iMh0CBm3qMvA== Date: Sat, 15 Mar 2025 21:23:22 +0800 Message-ID: <cover.1742043963.git.hako@ultrarare.space> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a01:4f8:10b:392::42; envelope-from=hako@ultrarare.space; helo=mx.boiledscript.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
home: setup-environment: Avoid prepending duplicated PATH.
|
|
Message
Hilton Chain
March 15, 2025, 1:23 p.m. UTC
Hi Guix, Here's a patch series following my comments in https://issues.guix.gnu.org/63009#10, Currently on a Guix System, PATH entries is in the following order: --8<---------------cut here---------------start------------->8--- ~/.guix-home/profile/bin ~/.guix-home/profile/sbin /run/privileged/bin ~/.config/guix/current/bin ~/.guix-home/profile/bin ~/.guix-home/profile/sbin ~/.guix-profile/bin ~/.guix-profile/sbin /run/current-system/profile/bin /run/current-system/profile/sbin --8<---------------cut here---------------end--------------->8--- With this change, it will be changed to: --8<---------------cut here---------------start------------->8--- /run/privileged/bin ~/.config/guix/current/bin ~/.guix-profile/bin ~/.guix-profile/sbin ~/.guix-home/profile/bin ~/.guix-home/profile/sbin /run/current-system/profile/bin /run/current-system/profile/sbin --8<---------------cut here---------------end--------------->8--- I haven't changed guix-install.sh yet, so the following remains on foregin distros: --8<---------------cut here---------------start------------->8--- ~/.guix-home/profile/bin ~/.guix-home/profile/sbin ~/.guix-profile/bin ~/.guix-profile/sbin --8<---------------cut here---------------end--------------->8--- If you agree with [PATCH 1/2], I'll change guix-install.sh too. Thanks Hilton Chain (2): gnu: system: Order imperative profiles first in etc/profile. home: setup-environment: Avoid prepending duplicated PATH. gnu/home/services.scm | 14 +++++++++++++- gnu/system.scm | 6 +++--- 2 files changed, 16 insertions(+), 4 deletions(-) base-commit: 3cc51c3e7447ab4f590d530fa66f65b6152ab109 -- 2.48.1