From patchwork Fri Apr 4 03:22:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 2893 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0F14627BBEA; Fri, 4 Apr 2025 04:24:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.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_MSPIKE_H2, 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 B2DE227BBE2 for ; Fri, 4 Apr 2025 04:24:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u0XfE-0006xc-CD; Thu, 03 Apr 2025 23:24:16 -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 ) id 1u0Xf5-0006vY-Rj for guix-patches@gnu.org; Thu, 03 Apr 2025 23:24:08 -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 ) id 1u0Xf3-0002li-Uk; Thu, 03 Apr 2025 23:24:05 -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=1F4M5Vo89KodRgNjikNvnl7RdzTkeiEqbW/RnDVELA8=; b=ki85zdpPv2NuqUAij6g13mgAukODrsWVA5Eg4hAywF2dNEFgqLn7dN90FsJD4YEx16k4c9QNnNF1TkE6UnCDmfWAUQDJBr3uM0e3RdAswJDjyZLzvmDmsfsA/e+L8Cv3Br833MLzrDaVZLSiLTSacl86B6lhcWx1mWVNojFKem6HY+uhg6LQVSvnIU2qp3qBUsahAINSp3kgI4BcrRTZCg6phP3DYZ6PXNj7G70PploGa5bm0kAj4//9QczsbmY6UY0Qn4n9RPIZUHT/+6vZ5Mt0ELyCUnKaflMD2g1T8wp52cEAOITAgBuXp0bgzszx+wiYJEz2GTQI6pB9Uswxsg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u0Xf0-0002c0-TY; Thu, 03 Apr 2025 23:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77522] [PATCH v4 0/6] system: /etc/profile: Rearrange to avoid search path duplication. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: andrew@trop.in, janneke@gnu.org, ludo@gnu.org, tanguy@bioneland.org, guix-patches@gnu.org Resent-Date: Fri, 04 Apr 2025 03:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77522 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77522@debbugs.gnu.org Cc: Hilton Chain , Andrew Tropin , Janneke Nieuwenhuizen , Ludovic =?utf-8?q?Court=C3=A8s?= , Tanguy Le Carrour X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andrew Tropin , Janneke Nieuwenhuizen , Ludovic =?utf-8?q?Court=C3=A8s?= , Tanguy Le Carrour Received: via spool by submit@debbugs.gnu.org id=B.17437370309955 (code B ref -1); Fri, 04 Apr 2025 03:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Apr 2025 03:23:50 +0000 Received: from localhost ([127.0.0.1]:36534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u0Xeo-0002aT-5e for submit@debbugs.gnu.org; Thu, 03 Apr 2025 23:23:50 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49128) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u0Xel-0002Zw-7x for submit@debbugs.gnu.org; Thu, 03 Apr 2025 23:23:47 -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 ) id 1u0Xee-0006rw-Kp for guix-patches@gnu.org; Thu, 03 Apr 2025 23: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 ) id 1u0Xec-0002h8-Tj for guix-patches@gnu.org; Thu, 03 Apr 2025 23:23:40 -0400 From: Hilton Chain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1743737016; h=from:from: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; bh=1F4M5Vo89KodRgNjikNvnl7RdzTkeiEqbW/RnDVELA8=; b=YeBvrr+rMq339gsaPmLGJBjuzzJ87DbAqkxg4dXeC3+IE5PWxNpLDrYPS2E6PEagwSl3+r lbBr7/lHpp8Ol9Szqln/ABlJuBdXgE3iMcq2u7nWpKYbacdkQ9QGsYAsmpyaczM/gCQ7hh Ej7+cPOSvHp7mhOVhfQW/XmvZ3x6LmwKwSQiJztNouBBK4YT/CE/iPqjzq7GVYcdN2BlOI V1gInL2uaoCERPWEXYAjYyWIxrZpt3DTlvA95LewZBkq5joiyPAt1LrXYn5Op80HOXWvF5 zGWZrAR91QziwgMQv3HeoXyB4JGcrLz+7UUyP2JleAG3j2lq+O3c7lSgI3jQjw== Date: Fri, 4 Apr 2025 11:22:57 +0800 Message-ID: MIME-Version: 1.0 X-MS-Reactions: disallow 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 V3->V4: * Adjust commit message. * Set search paths conditionally depending on the profile to use and its existence. Hilton Chain (6): system: /etc/profile: Group profile sourcing. system: /etc/profile: Rearrange to avoid search path duplication. system: /etc/profile: Set up extra environment variables for Guix Home. system & home: profile: Address issues reported by ‘shellcheck’. guix-install.sh: Group profile sourcing. guix-install.sh: Set up extra environment variables for Guix Home. etc/guix-install.sh | 75 ++++++++++++--------- gnu/home/services.scm | 22 ++++-- gnu/home/services/shells.scm | 10 ++- gnu/system.scm | 127 ++++++++++++++++++++++------------- gnu/system/shadow.scm | 10 --- 5 files changed, 144 insertions(+), 100 deletions(-) base-commit: c6d27c20f4685a9ac1299974f6ace42ae29f474d prerequisite-patch-id: 08fa38ca1e61c773052671339b78799f19fb7f60 prerequisite-patch-id: 8763dd40cf9636f189605f7c370fdab3a48fdd01 prerequisite-patch-id: 70fb73c726e320e1fc8955869fe6a5c004865dab prerequisite-patch-id: dabc51301c0f5a8821b0375b5d37c7af071e56dd prerequisite-patch-id: 0ffe8413c71d28a2c68e7fe8b5bfee9b83a88980 prerequisite-patch-id: 900161be0df3089f9b6d4e4c6364164126fff864 prerequisite-patch-id: 7a12188174719ef588b198133867cad643f71973 prerequisite-patch-id: 06e918ef4f6858026c61d53a148903b09cadef3e --- 2.49.0